comparison g23m/condat/ms/src/bmi/MmiMmi.h @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
1 #ifndef _MMIMMI_H_
2 #define _MMIMMI_H_ 1
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: MmiMmi.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: MmiMmi.h
32
33 25/10/00 Original Condat(UK) BMI version.
34
35 $End
36
37 *******************************************************************************/
38 #include "MmiResources.h" //for screen size
39 #include "mfw_win.h" //for MfwWinAttr definition
40
41
42 /*******************************************************************************
43
44 Type definitions
45
46 *******************************************************************************/
47
48
49 typedef void ( *MmiState )( int, void( * ) ( ) );
50
51
52
53
54 /*******************************************************************************
55
56 Definitions provided by the root module
57
58 *******************************************************************************/
59
60 /* Identifier ranges for applications. These are used to isolate
61 particular message numbers for particular applications, hence
62 preventing a rogue message being handled incorrectly.
63 */
64 #define MenuDummy 0
65 #define ExtrasDummy 50
66 #define StartDummy 100
67 #define IdleDummy 200
68 #define GlobalDummy 300
69 #define ServicesDummy 400
70 #define SoundsDummy 500
71 #define TimeDateDummy 600
72 #define PhbkDummy 700
73 #define OrganiserDummy 800
74 #define CallDummy 900
75 #define PinsDummy 1000
76 #define SatDummy 1100
77 #define DialogsDummy 1200
78 #define MsgsDummy 1300
79
80
81
82 /* Define window areas
83 */
84 //The following values are incorrect - but do I fix them?
85 #define LCD_SX SCREEN_SIZE_X
86 #define LCD_SY SCREEN_SIZE_Y
87
88
89
90 /* Define charging states
91 */
92 #define GlobalDefault 0x00
93 #define GlobalCharging 0x01
94 #define GlobalBatteryPower 0x02
95 #define GlobalMobileOn 0x04
96 #define GlobalDisplayFlag 0x08
97
98
99
100
101 /*******************************************************************************
102
103 Global data elements
104
105 *******************************************************************************/
106
107 /* Root module attribute structures
108 */
109 extern MfwWinAttr g_MainWin;
110 extern MfwWinAttr g_IconWin;
111 extern MfwWinAttr g_KeyWin;
112
113 /* Display screen sizes
114 */
115 extern U16 mmiScrX, mmiScrY;
116
117 /* Mode for the phone
118 */
119 extern UBYTE globalMobileMode;
120
121
122
123 /*******************************************************************************
124
125 Public Prototypes
126
127 *******************************************************************************/
128
129 void mmi_main (void); /* initial entry point */
130 void mmiInit (void); /* init MMI */
131 void mmiExit (void); /* exit MMI */
132
133
134
135 /*******************************************************************************
136
137 End Of File
138
139 *******************************************************************************/
140
141 #endif
142