CbmSrvIprot.h
3.82 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
/*****************************************************************************
*
* 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!
*
* 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_SRV_IPROT_H_
#define _CBM_SRV_IPROT_H_
#include "MMI_include.h"
#ifndef _CBM_CONSTS_H
#include "cbm_consts.h"
#endif
#include "MMIDataType.h"
#include "mmi_res_range_def.h"
#include "kal_general_types.h"
#include "mmi_frm_events_gprot.h"
#include "CbmSrvGprot.h"
#include "DtcntSrvGprot.h"
/*************************************************************************
* Constant values
*************************************************************************/
/* CBM service event id definition */
typedef enum
{
EVT_ID_SRV_CBM_BEARER_INFO = EVT_ID_SRV_CBM_EVT_ID_TOTAL + 1, /* bearer info event */
EVT_ID_SRV_CBM_BEARER_EVENT, /* bearer event, such as always ask or fallback */
EVT_ID_SRV_CBM_WLAN_QUERY, /* WLAN query event */
EVT_ID_SRV_CBM_WLAN_UNUSED, /* WLAN unused event */
EVT_ID_SRV_CBM_EVENT_TOTAL
} srv_cbm_event_enum;
/*************************************************************************
* Structures
*************************************************************************/
typedef enum
{
SRV_CBM_WLAN_QUERY_TYPE_NONE,
SRV_CBM_WLAN_QUERY_TYPE_STARTUP,
SRV_CBM_WLAN_QUERY_TYPE_RECONNECT,
SRV_CBM_WLAN_QUERY_TYPE_DISCONNECTED,
SRV_CBM_WLAN_QUERY_TYPE_RESWITCH,
SRV_CBM_WLAN_QUERY_TYPE_FOUND,
SRV_CBM_WLAN_QUERY_TYPE_REQUERY,
SRV_CBM_WLAN_QUERY_TYPE_AUTO_CONN,
SRV_CBM_WLAN_QUERY_TYPE_CANCEL,
SRV_CBM_WLAN_QUERY_TYPE_TOTAL
} srv_cbm_wlan_query_type_enum;
typedef void (*srv_cbm_wlan_query_cb_func_ptr)(U32 bearer_type);
/* Event structure for EVT_ID_SRV_CBM_WLAN_QUERY */
typedef struct
{
#ifdef __BUILD_DOM__
U16 evt_id; /* MMI_EVENT_ID */
U16 size; /* EVENT SIZE */
void *user_data; /* Piggyback user data */
#endif
/* DOM-NOT_FOR_SDK-BEGIN */
MMI_EVT_PARAM_HEADER /* MMI_EVENT_COMMON_HEADER */
/* DOM-NOT_FOR_SDK-END */
srv_cbm_wlan_query_type_enum query_type;
srv_cbm_wlan_query_cb_func_ptr rsp_callback; /* After getting AP list, APP need to call this cb to notify SRV. */
} srv_cbm_wlan_query_evt_struct;
extern srv_cbm_result_error_enum srv_cbm_get_real_account(U32 nw_acct_id, U32 *rel_acct_id);
extern void srv_cbm_get_wlan_prefer_setting(
srv_cbm_wlan_query_type_enum query_type,
MMI_BOOL *auto_conn,
MMI_BOOL *need_notify);
extern U8 srv_cbm_get_valid_wlan_ap_num(MMI_BOOL check_store_prof, srv_dtcnt_wlan_scan_result_struct *scan_info_p);
extern MMI_BOOL srv_cbm_get_ask_cellular_setting(void);
extern void srv_cbm_set_ask_cellular_setting(MMI_BOOL ask_cellular);
extern MMI_BOOL srv_cbm_is_wlan_query_needed(void);
extern MMI_BOOL srv_cbm_is_wlan_used_by_app(void);
#endif /* _CBM_SRV_IPROT_H_ */