comparison src/ui3/bmi/MmiNetwork.h @ 420:e8ddbb0837ed

src/ui3: initial import of TCS3/LoCosto BMI & MFW code
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 21 Jan 2018 03:09:00 +0000
parents
children
comparison
equal deleted inserted replaced
419:59143cd42ec7 420:e8ddbb0837ed
1 /*******************************************************************************
2
3 CONDAT (UK)
4
5 ********************************************************************************
6
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.
9
10 ********************************************************************************
11
12 $Project name: Basic MMI
13 $Project code: BMI (6349)
14 $Module:
15 $File: MmiNetwork.h
16 $Revision: 1.0
17
18 $Author: Condat(UK)
19 $Date: 25/10/00
20
21 ********************************************************************************
22
23 Description:
24
25
26 ********************************************************************************
27 Jun 23, 2006 DR: OMAPS00082374 x0pleela
28 Description: EONS Failures - unexpected output from the MMI: 2 carriers; on the top always T-Mobile
29 Solution:a) Changed the size of SIZE_NETWORK_NAME from 6 to 7
30
31
32 *******************************************************************************
33
34 Required Include Files
35
36 *******************************************************************************/
37
38
39 #ifndef _DEF_MMI_NETWORK_H_
40 #define _DEF_MMI_NETWORK_H_
41
42 /*
43 * Events from network management dialog
44 */
45 #define NETWORK_NO_SERVICE 400
46 #define NETWORK_FULL_SERVICE 401
47 #define NETWORK_SEARCH_NETWORK 402
48 #define NETWORK_NO_PLMN_XXX_AVAIL 403
49
50
51 /*
52 * NETWORK_NO_SERVICE : no parameter
53 *
54 * The mobile has no or limited service
55 *
56 * NETWORK_FULL_SERVICE : no parameter
57 *
58 * The mobile has full service. The current network as text string and in MCC/MNC format
59 * can be requested by the function network_get_plmn.
60 *
61 * NETWORK_SEARCH_NETWORK : no parameter
62 *
63 * The mobile indicates searching for a network.
64 *
65 * NETWORK_NO_PLMN_XXX_AVAIL: no parameter
66 *
67 * The network has enabled network logging, but this network is not available. The logged
68 * network can be requested by the function network_get_plmn.
69 *
70 */
71 #define SIZE_PLMN_NAME 20
72 #define SIZE_NETWORK_NAME 7 //x0pleela 23 June, 2006 DR:OMAPS00082374
73
74 typedef struct
75 {
76 UBYTE plmn_name [SIZE_PLMN_NAME]; /* textual format of PLMN */
77 UBYTE network_name [SIZE_NETWORK_NAME]; /* numeric format of PLMN */
78 UBYTE service_provider_name[SP_NAME]; /* Marcus: Issue 1618: 24/01/2003 */
79 UBYTE roaming_indicator; /* Roaming Indicator */
80 } T_CURRENT_NETWORK;
81
82 #ifdef FF_TIMEZONE
83 typedef enum
84 {
85 NitzAutomatic=0,
86 NitzOn,
87 NitzOff
88 } T_NITZ_UPDATE;
89 #endif
90
91 /*
92 * Prototypes
93 */
94 T_MFW_HND network_create (T_MFW_HND parent_window);
95 void network_destroy (T_MFW_HND own_window);
96 void network (T_MFW_HND win, USHORT event, SHORT value, void * parameter);
97
98 /*
99 * Menu entries
100 */
101 int network_set_mode_auto (T_MFW_MNU * m, T_MFW_MNU_ITEM * mi);
102 int network_set_mode_man (T_MFW_MNU * m, T_MFW_MNU_ITEM * mi);
103 int network_pref_list (T_MFW_MNU * m, T_MFW_MNU_ITEM * mi);
104 int network_log_on (T_MFW_MNU * m, T_MFW_MNU_ITEM * mi);
105 int network_log_off (T_MFW_MNU * m, T_MFW_MNU_ITEM * mi);
106 int settingsNITZ (T_MFW_MNU *m, T_MFW_MNU_ITEM *i);//x0066814
107
108 USHORT nm_flag_log_on (T_MFW_MNU * m, T_MFW_MNU_ATTR * ma, T_MFW_MNU_ITEM * mi);
109 USHORT nm_flag_log_off (T_MFW_MNU * m, T_MFW_MNU_ATTR * ma, T_MFW_MNU_ITEM * mi);
110
111 void network_get_name (T_CURRENT_NETWORK * nm);
112 void network_start_full_service (void);
113 T_MFW_HND networkInit (T_MFW_HND parent_window);
114
115 //x0pleela 08 June, 2006 DR: OMAPS00079607
116 //Adding prototype
117 #ifdef FF_CPHS
118 UBYTE getRoamingStatus(void);
119 #endif
120
121 #endif
122