CbmCuiGprot.h
7.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
/*****************************************************************************
*
* Filename:
* ---------
* CbmSrvGprot.h
*
* Project:
* --------
* MAUI
*
* Description:
* ------------
* This file contains the CBM APIs
*
* Author:
* -------
* -------
*
*============================================================================
* HISTORY
* Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*------------------------------------------------------------------------------
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
*
*------------------------------------------------------------------------------
* Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*============================================================================
****************************************************************************/
#ifndef _CBM_CUI_GPROT_H_
#define _CBM_CUI_GPROT_H_
#include "MMI_include.h"
#include "CbmSrvGprot.h"
#include "mmi_res_range_def.h"
#include "MMIDataType.h"
#ifndef __COSMOS_MMI_PACKAGE__
/*************************************************************************
* Constant values
*************************************************************************/
/*************************************************************************
* Enum values
*************************************************************************/
/* common CBM CUI event */
typedef enum
{
EVT_ID_CUI_CBM_OK = APP_CBM_BASE + 1, /* accept ok */
EVT_ID_CUI_CBM_FAIL, /* error occus and cannot display the screen */
EVT_ID_CUI_CBM_CANCEL, /* cancel */
EVT_ID_CUI_CBM_TOTAL
} cui_cbm_event_enum;
typedef enum
{
CUI_CBM_QUERY_FB_NONE,
CUI_CBM_QUERY_FB_NORM, /* normal bearer fallback cui */
CUI_CBM_QUERY_FB_WIFI_TO_PS, /* wifi to packet service fallback cui */
CUI_CBM_QUERY_FB_TOTAL
} cui_cbm_query_fb_type;
/* this strcture is used to get the event content in the callback
* when it register in group creation
*/
typedef struct
{
MMI_EVT_GROUP_PARAM_HEADER
U32 ori_account_id; /* original account id*/
U32 selected_account_id; /* selected account id */
srv_cbm_bearer_type_enum bearer_type; /* bearer type for selected account */
cui_cbm_query_fb_type fb_query_type;
} cui_evt_cbm_bearer_select_struct;
/*************************************************************************
* Structures
*************************************************************************/
/* This structure is used to define cui resource */
typedef struct
{
U16 str_id; /* application's string id which would be displayed in CUI */
U16 icon_id; /* application's icon id which would be displayed in CUI */
} cui_cbm_res_struct;
/* This structure is used to define necessary parameters */
typedef struct
{
U32 account_id; /* original account id*/
cui_cbm_res_struct res; /* screen resource */
cui_cbm_query_fb_type fb_query_type;
} cui_cbm_parameter_struct;
/*************************************************************************
* External APIs
*************************************************************************/
/*****************************************************************************
* FUNCTION
* cui_cbm_always_ask_create
* DESCRIPTION
* create always ask common UI
* PARAMETERS
* parent_id : [IN] application's group id
* RETURN VALUES
* cbm cui group id
*****************************************************************************/
mmi_id cui_cbm_always_ask_create(mmi_id parent_id);
/*****************************************************************************
* FUNCTION
* cui_cbm_always_ask_set_param
* DESCRIPTION
* set always ask parameters
* PARAMETERS
* cbm_id : [IN] cui group id
* param : [IN] cui necessary parameters
* RETURN VALUES
* void
*****************************************************************************/
void cui_cbm_always_ask_set_param(mmi_id cbm_id, cui_cbm_parameter_struct *param);
/*****************************************************************************
* FUNCTION
* cui_cbm_always_ask_set_bearer_filter
* DESCRIPTION
* set always ask cui bearer filters. For example, if you only want
* gprs and wifi bearer type displayed in always cui, you can use it.
* PARAMETERS
* cbm_id : [IN] cui group id
* bearer_type : [IN] bearer type (srv_cbm_bearer_type_enum)
* RETURN VALUES
* void
*****************************************************************************/
void cui_cbm_always_ask_set_bearer_filter(mmi_id cbm_id, U32 bearer_type);
/*****************************************************************************
* FUNCTION
* cui_cbm_always_ask_run
* DESCRIPTION
* display always ask common ui
* PARAMETERS
* cbm_id : [IN] cui group id
* RETURN VALUES
* void
*****************************************************************************/
void cui_cbm_always_ask_run(mmi_id cbm_id);
/*****************************************************************************
* FUNCTION
* cui_cbm_always_ask_close
* DESCRIPTION
* close always ask common ui
* PARAMETERS
* cbm_id : [IN] cui group id
* RETURN VALUES
* void
*****************************************************************************/
void cui_cbm_always_ask_close(mmi_id cbm_id);
/*****************************************************************************
* FUNCTION
* cui_cbm_bearer_fallback_create
* DESCRIPTION
* create bearer fallback common UI
* PARAMETERS
* parent_id : [IN] application's group id
* RETURN VALUES
* cbm cui group id
*****************************************************************************/
mmi_id cui_cbm_bearer_fallback_create(mmi_id parent_id);
/*****************************************************************************
* FUNCTION
* cui_cbm_bearer_fallback_set_param
* DESCRIPTION
* set bearer fallback parameters
* PARAMETERS
* cbm_id : [IN] cui group id
* param : [IN] cui necessary parameters
* RETURN VALUES
* void
*****************************************************************************/
void cui_cbm_bearer_fallback_set_param(mmi_id cbm_id, cui_cbm_parameter_struct *param);
/*****************************************************************************
* FUNCTION
* cui_cbm_bearer_fallback_set_bearer_filter
* DESCRIPTION
* Set bearer type filters which is allowed in bearer fallback screen
* PARAMETERS
* cbm_id : [IN] cui group id
* bearer_type : [IN] bearer type (srv_cbm_bearer_type_enum)
* RETURN VALUES
* void
*****************************************************************************/
void cui_cbm_bearer_fallback_set_bearer_filter(mmi_id cbm_id, U32 bearer_type);
/*****************************************************************************
* FUNCTION
* cui_cbm_bearer_fallback_run
* DESCRIPTION
* display bearer fallback common ui
* PARAMETERS
* cbm_id : [IN] cui group id
* RETURN VALUES
* void
*****************************************************************************/
void cui_cbm_bearer_fallback_run(mmi_id cbm_id);
/*****************************************************************************
* FUNCTION
* cui_cbm_bearer_fallback_close
* DESCRIPTION
* close bearer fallback common ui
* PARAMETERS
* cbm_id : [IN] cui group id
* RETURN VALUES
* void
*****************************************************************************/
void cui_cbm_bearer_fallback_close(mmi_id cbm_id);
#endif /* __COSMOS_MMI_PACKAGE__ */
#endif /* _CBM_CUI_GPROT_H_ */