comparison src/ui/bmi/mmiGprs.h @ 110:056d0a19ed5b

mmiGprs.h: bogotab fixes
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 09 Nov 2020 01:12:23 +0000
parents c0052fe355d3
children
comparison
equal deleted inserted replaced
109:00766e95ae43 110:056d0a19ed5b
1 /******************************************************************************* 1 /*******************************************************************************
2 2
3 CONDAT (UK) 3 CONDAT (UK)
4 4
5 ******************************************************************************** 5 ********************************************************************************
6 6
7 This software product is the property of Condat (UK) Ltd and may not be 7 This software product is the property of Condat (UK) Ltd and may not be
8 disclosed to any third party without the express permission of the owner. 8 disclosed to any third party without the express permission of the owner.
10 ******************************************************************************** 10 ********************************************************************************
11 11
12 $Project name: 12 $Project name:
13 $Project code: 13 $Project code:
14 $Module: 14 $Module:
15 $File: MmiGprs.h 15 $File: MmiGprs.h
16 $Revision: 16 $Revision:
17 17
18 $Author: Condat(UK) 18 $Author: Condat(UK)
19 $Date: 19 $Date:
20 20
21 ******************************************************************************** 21 ********************************************************************************
22 22
23 Description: 23 Description:
24 Header file for GPRS handling for MMI. 24 Header file for GPRS handling for MMI.
25 25
26 26
27 ******************************************************************************** 27 ********************************************************************************
28 28
29 $History: MmiGprs.h 29 $History: MmiGprs.h
30 30
31 15/05/2003 - SPR#1983 - SH - Updated to latest from 1.6.3 version. 31 15/05/2003 - SPR#1983 - SH - Updated to latest from 1.6.3 version.
32 32
33 $End 33 $End
34 34
35 *******************************************************************************/ 35 *******************************************************************************/
36 36
37 #ifndef _MMI_GPRS_H_ 37 #ifndef _MMI_GPRS_H_
38 #define _MMI_GPRS_H_ 38 #define _MMI_GPRS_H_
39 39
40 #ifndef WIN32 // EF GPRS testing enabled for windows 40 #ifndef WIN32 // EF GPRS testing enabled for windows
41 #undef TEST_MMIGPRS /* GPRS testing, gives extra menu functions */ 41 #undef TEST_MMIGPRS /* GPRS testing, gives extra menu functions */
42 #endif 42 #endif
43 43
44 /******************************************************************************* 44 /*******************************************************************************
45 45
46 GLOBAL DEFINITIONS 46 GLOBAL DEFINITIONS
49 49
50 /* GPRS states */ 50 /* GPRS states */
51 51
52 enum 52 enum
53 { 53 {
54 GPRS_NOTHING = -1, /* Nothing - no event to send */ 54 GPRS_NOTHING = -1, /* Nothing - no event to send */
55 GPRS_OFF = 0, /* GPRS is not attached */ 55 GPRS_OFF = 0, /* GPRS is not attached */
56 GPRS_SEARCHING, 56 GPRS_SEARCHING,
57 GPRS_ATTACHED, /* GPRS is attached */ 57 GPRS_ATTACHED, /* GPRS is attached */
58 GPRS_CONTEXT_ACTIVATE, /* PDP context is activated */ 58 GPRS_CONTEXT_ACTIVATE, /* PDP context is activated */
59 GPRS_CONTEXT_DEACTIVATE, /* PDP context is deactivated */ 59 GPRS_CONTEXT_DEACTIVATE, /* PDP context is deactivated */
60 GPRS_ERROR /* General GPRS error */ 60 GPRS_ERROR /* General GPRS error */
61 }; 61 };
62 62
63 #if (BOARD == 61) 63 #if (BOARD == 61)
64 /* EDGE states */ 64 /* EDGE states */
65 enum 65 enum
66 { 66 {
67 EDGE_NOTHING = -1, /* Nothing - no event to send */ 67 EDGE_NOTHING = -1, /* Nothing - no event to send */
68 EDGE_OFF = 0, /* EDGE is not attached */ 68 EDGE_OFF = 0, /* EDGE is not attached */
69 EDGE_SEARCHING, 69 EDGE_SEARCHING,
70 EDGE_ATTACHED, /* EDGE is attached */ 70 EDGE_ATTACHED, /* EDGE is attached */
71 EDGE_CONTEXT_ACTIVATE, /* PDP context is activated */ 71 EDGE_CONTEXT_ACTIVATE, /* PDP context is activated */
72 EDGE_CONTEXT_DEACTIVATE, /* PDP context is deactivated */ 72 EDGE_CONTEXT_DEACTIVATE, /* PDP context is deactivated */
73 EDGE_ERROR /* General EDGE error */ 73 EDGE_ERROR /* General EDGE error */
74 }; 74 };
75 #endif 75 #endif
76 76
77 typedef enum 77 typedef enum
78 { 78 {
79 MMI_GPRS_STATUS_IDLE, 79 MMI_GPRS_STATUS_IDLE,
80 MMI_GPRS_STATUS_ATTACHING, 80 MMI_GPRS_STATUS_ATTACHING,
81 MMI_GPRS_STATUS_DETACHING, 81 MMI_GPRS_STATUS_DETACHING,
82 MMI_GPRS_STATUS_DATA_COUNTER 82 MMI_GPRS_STATUS_DATA_COUNTER
83 }E_MMI_GPRS_STATUS; 83 }E_MMI_GPRS_STATUS;
84 84
85 /* SMS options */ 85 /* SMS options */
86 86
87 enum 87 enum
88 { 88 {
89 SMS_SERVICE_GPRS = 0, 89 SMS_SERVICE_GPRS = 0,
90 SMS_SERVICE_CS, 90 SMS_SERVICE_CS,
91 SMS_SERVICE_GPRS_PREF, 91 SMS_SERVICE_GPRS_PREF,
92 SMS_SERVICE_CS_PREF, 92 SMS_SERVICE_CS_PREF,
93 SMS_SERVICE_OMITTED = 0xFF 93 SMS_SERVICE_OMITTED = 0xFF
94 }; 94 };
95 95
96 /* Quality of service (QOS) parameters */ 96 /* Quality of service (QOS) parameters */
97 97
98 enum 98 enum
99 { 99 {
100 QOS_PRECED_HIGH = 1, 100 QOS_PRECED_HIGH = 1,
101 QOS_PRECED_NORMAL, 101 QOS_PRECED_NORMAL,
102 QOS_PRECED_LOW 102 QOS_PRECED_LOW
103 }; 103 };
104 104
105 enum 105 enum
106 { 106 {
107 QOS_BEST = 1 107 QOS_BEST = 1
108 }; 108 };
109 109
110 /* Callback function */ 110 /* Callback function */
111 111
112 typedef void (*T_GPRS_CB) (int);// Earlier argument not used 112 typedef void (*T_GPRS_CB) (int);// Earlier argument not used
142 142
143 LOCAL DATA TYPES 143 LOCAL DATA TYPES
144 144
145 *******************************************************************************/ 145 *******************************************************************************/
146 146
147 #define ULONG_SIZE_IN_DECIMAL 10 /* Max no. of decimal digits a ULONG can have */ 147 #define ULONG_SIZE_IN_DECIMAL 10 /* Max no. of decimal digits a ULONG can have */
148 #define KILOBYTE 1024 /* No of bytes in a kilobyte, used for data counter calculation. */ 148 #define KILOBYTE 1024 /* No of bytes in a kilobyte, used for data counter calculation. */
149 #define PLEASEWAIT_TIMEOUT 35000 /* Time for "please wait" window to time out */ 149 #define PLEASEWAIT_TIMEOUT 35000 /* Time for "please wait" window to time out */
150 150
151 /* Counter types */ 151 /* Counter types */
152 152
153 typedef enum 153 typedef enum
154 { 154 {
155 MMI_GPRS_COUNTER_UPLINK, 155 MMI_GPRS_COUNTER_UPLINK,
156 MMI_GPRS_COUNTER_DOWNLINK 156 MMI_GPRS_COUNTER_DOWNLINK
157 } T_MMI_GPRS_COUNTER; 157 } T_MMI_GPRS_COUNTER;
158 158
159 /* GPRS data */ 159 /* GPRS data */
160 160
161 typedef struct 161 typedef struct
162 { 162 {
163 T_MFW_HND mfw_gprs; /* Provide a handle to the GPRS information. */ 163 T_MFW_HND mfw_gprs; /* Provide a handle to the GPRS information. */
164 UBYTE cid; /* The context id. Starts at 1 then increments. */ 164 UBYTE cid; /* The context id. Starts at 1 then increments. */
165 UBYTE reg_status; /* Registration status */ 165 UBYTE reg_status; /* Registration status */
166 MfwHnd pleasewait_win; /* Handle for the Please Wait window */ 166 MfwHnd pleasewait_win; /* Handle for the Please Wait window */
167 MfwHnd edit_win; /* Handle for editor window */ 167 MfwHnd edit_win; /* Handle for editor window */
168 MfwHnd menu_win; /* Handler for menu windows */ 168 MfwHnd menu_win; /* Handler for menu windows */
169 char *counterstring; /* String for counter digits */ 169 char *counterstring; /* String for counter digits */
170 ULONG uplink_counter; /* Value of uplink counter */ 170 ULONG uplink_counter; /* Value of uplink counter */
171 ULONG downlink_counter; /* Value of downlink counter */ 171 ULONG downlink_counter; /* Value of downlink counter */
172 USHORT counter_type; /* TRUE if uplink counter has been requested */ 172 USHORT counter_type; /* TRUE if uplink counter has been requested */
173 UBYTE sms_service; /* Type of SMS service */ 173 UBYTE sms_service; /* Type of SMS service */
174 BOOL display; /* Whether to display "OK" windows or not */ 174 BOOL display; /* Whether to display "OK" windows or not */
175 USHORT status; /* Current status */ 175 USHORT status; /* Current status */
176 T_MFW_HND notify_win; /* Window to which to send notification */ 176 T_MFW_HND notify_win; /* Window to which to send notification */
177 T_GPRS_CB callback; /* MMI provided callback function */ 177 T_GPRS_CB callback; /* MMI provided callback function */
178 } 178 }
179 T_MMI_GPRS_DATA; 179 T_MMI_GPRS_DATA;
180 180
181 181
182 /******************************************************************************* 182 /*******************************************************************************