FreeCalypso > hg > fc-magnetite
comparison src/aci2/bmi/MmiLists.h @ 3:93999a60b835
src/aci2, src/condat2: import of g23m/condat source pieces from TCS211
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 26 Sep 2016 00:29:36 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2:c41a534f33c6 | 3:93999a60b835 |
---|---|
1 #ifndef _DEF_MMI_LISTS_H_ | |
2 #define _DEF_MMI_LISTS_H_ | |
3 | |
4 /******************************************************************************* | |
5 | |
6 CONDAT (UK) | |
7 | |
8 ******************************************************************************** | |
9 | |
10 This software product is the property of Condat (UK) Ltd and may not be | |
11 disclosed to any third party without the express permission of the owner. | |
12 | |
13 ******************************************************************************** | |
14 | |
15 $Project name: Basic MMI | |
16 $Project code: BMI (6349) | |
17 $Module: MMI | |
18 $File: MmiLists.h | |
19 $Revision: 1.0 | |
20 | |
21 $Author: Condat(UK) | |
22 $Date: 25/10/00 | |
23 | |
24 ******************************************************************************** | |
25 | |
26 Description: | |
27 | |
28 This provides the root mofule for the basic MMI | |
29 | |
30 ******************************************************************************** | |
31 $History: MmiLists.h | |
32 | |
33 xrashmic 5 Oct, 2005 MMI-SPR-29356, MMI-SPR-29357 | |
34 Using the MenuSelect Key for requesting the help info in STK menu. | |
35 | |
36 March 01, 2005 REF: ENH 29313 Deepa M.D | |
37 Isolating colour build related changes from MMI LITE flag. | |
38 The proper Feature flag COLORDISPLAY was used for all color | |
39 related changes. | |
40 | |
41 | |
42 $End | |
43 | |
44 *******************************************************************************/ | |
45 #include "mfw_mnu.h" //for mfwMnuAttr | |
46 | |
47 #define LISTS_SCROLL_UP 0 | |
48 #define LISTS_SCROLL_DOWN 1 | |
49 | |
50 #define LISTS_FAIL 0 | |
51 #define LISTS_OK 1 | |
52 | |
53 #define LISTS_MAX_ITEMS 10 | |
54 | |
55 #define SNAPSHOT_SIZE_2 2 | |
56 #define SNAPSHOT_SIZE_4 4 | |
57 #define SNAPSHOT_SIZE_6 6 | |
58 | |
59 #define LISTS_REASON_NULL 0 | |
60 #define LISTS_REASON_SELECT 1 | |
61 #define LISTS_REASON_BACK 2 | |
62 #define LISTS_REASON_TIMEOUT 3 | |
63 #define LISTS_REASON_CLEAR 4 | |
64 #define LISTS_REASON_SCROLL 5 | |
65 #define LISTS_REASON_HANGUP 6 | |
66 #define LISTS_REASON_SEND 7 | |
67 #define LISTS_REASON_CALL 8 | |
68 | |
69 | |
70 /*Event which can be sent to list window*/ | |
71 #define E_LIST_DESTROY 3 /*SPR 2132, destroy window*/ | |
72 | |
73 typedef enum | |
74 { | |
75 E_START_MELODY, | |
76 E_STOP_MELODY, | |
77 #ifdef FF_MMI_RINGTONE /* Events for Ring tone handling */ | |
78 E_SUSPEND_MELODY, | |
79 E_VISIBLE_MELODY | |
80 #endif | |
81 } e_melody_events; | |
82 | |
83 | |
84 typedef struct | |
85 { | |
86 MfwHnd win; | |
87 MfwMnuAttr *Attr; /* Menu attributes */ | |
88 MfwMnuItem *List; /* List menu text strings. */ | |
89 UBYTE ListLength; /* Number of entries in list menu. */ | |
90 UBYTE ListPosition; /* True cursor position in list menu. */ | |
91 UBYTE CursorPosition; /* Cursor position in list snapshot. */ | |
92 UBYTE SnapshotSize; /* Number of list entries to view. */ | |
93 U8 Font; /* List menu font. */ | |
94 BOOL Strings; /* TRUE = string display; FALSE = IDs */ | |
95 int LeftSoftKey; /* Left softkey text. */ | |
96 int RightSoftKey; /* Right softkey text. */ | |
97 MfwEvt KeyEvents; /* Keyboard events to be handled. */ | |
98 UBYTE Reason; /* User defined exit reason. */ | |
99 UBYTE autoDestroy; | |
100 UBYTE selectKey; //xrashmic 5 Oct, 2005 MMI-SPR-29356, MMI-SPR-29357 | |
101 //March 01, 2005 REF: ENH 29313 Deepa M.D | |
102 // Isolating colour build related changes from MMI LITE flag. | |
103 // The proper Feature flag COLORDISPLAY was used for all color | |
104 //related changes. | |
105 #ifdef COLOURDISPLAY | |
106 U32 listCol; | |
107 #else | |
108 U8 listCol;/*SPR 2686*/ | |
109 #endif | |
110 } ListMenuData; | |
111 | |
112 typedef void (*ListCbFunc)(T_MFW_HND * Parent, ListMenuData * ListData); | |
113 | |
114 typedef struct | |
115 { | |
116 T_MMI_CONTROL mmi_control; | |
117 T_MFW_HND winLists; | |
118 SHORT id; | |
119 T_MFW_HND Parent; | |
120 T_MFW_HND kbdLists; | |
121 T_MFW_HND kbdLists_long; | |
122 T_MFW_HND MenuLists; | |
123 MfwMnuAttr MenuListsAttr; | |
124 ListCbFunc Callback; | |
125 UBYTE ExitReason; | |
126 ListMenuData MenuData; | |
127 } ListWinInfo; | |
128 | |
129 /* PROTOTYPES */ | |
130 | |
131 T_MFW listDisplayListMenu (MfwHnd Parent, ListMenuData *Data, ListCbFunc cbFunc, int inUnicode); | |
132 void listsDestroy(T_MFW_HND win); | |
133 #endif /* _DEF_MMI_LISTS_H_ */ |