comparison g23m/condat/ms/src/bmi/MmiNetwork.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 /*******************************************************************************
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
28
29
30 *******************************************************************************
31
32 Required Include Files
33
34 *******************************************************************************/
35
36
37 #ifndef _DEF_MMI_NETWORK_H_
38 #define _DEF_MMI_NETWORK_H_
39
40 /*
41 * Events from network management dialog
42 */
43 #define NETWORK_NO_SERVICE 400
44 #define NETWORK_FULL_SERVICE 401
45 #define NETWORK_SEARCH_NETWORK 402
46 #define NETWORK_NO_PLMN_XXX_AVAIL 403
47
48
49 /*
50 * NETWORK_NO_SERVICE : no parameter
51 *
52 * The mobile has no or limited service
53 *
54 * NETWORK_FULL_SERVICE : no parameter
55 *
56 * The mobile has full service. The current network as text string and in MCC/MNC format
57 * can be requested by the function network_get_plmn.
58 *
59 * NETWORK_SEARCH_NETWORK : no parameter
60 *
61 * The mobile indicates searching for a network.
62 *
63 * NETWORK_NO_PLMN_XXX_AVAIL: no parameter
64 *
65 * The network has enabled network logging, but this network is not available. The logged
66 * network can be requested by the function network_get_plmn.
67 *
68 */
69 #define SIZE_PLMN_NAME 20
70 #define SIZE_NETWORK_NAME 6
71
72 typedef struct
73 {
74 UBYTE plmn_name [SIZE_PLMN_NAME]; /* textual format of PLMN */
75 UBYTE network_name [SIZE_NETWORK_NAME]; /* numeric format of PLMN */
76 UBYTE service_provider_name[SP_NAME]; /* Marcus: Issue 1618: 24/01/2003 */
77 UBYTE roaming_indicator; /* Roaming Indicator */
78 } T_CURRENT_NETWORK;
79
80
81 /*
82 * Prototypes
83 */
84 T_MFW_HND network_create (T_MFW_HND parent_window);
85 void network_destroy (T_MFW_HND own_window);
86 void network (T_MFW_HND win, USHORT event, SHORT value, void * parameter);
87
88 /*
89 * Menu entries
90 */
91 int network_set_mode_auto (T_MFW_MNU * m, T_MFW_MNU_ITEM * mi);
92 int network_set_mode_man (T_MFW_MNU * m, T_MFW_MNU_ITEM * mi);
93 int network_pref_list (T_MFW_MNU * m, T_MFW_MNU_ITEM * mi);
94 int network_log_on (T_MFW_MNU * m, T_MFW_MNU_ITEM * mi);
95 int network_log_off (T_MFW_MNU * m, T_MFW_MNU_ITEM * mi);
96
97 USHORT nm_flag_log_on (T_MFW_MNU * m, T_MFW_MNU_ATTR * ma, T_MFW_MNU_ITEM * mi);
98 USHORT nm_flag_log_off (T_MFW_MNU * m, T_MFW_MNU_ATTR * ma, T_MFW_MNU_ITEM * mi);
99
100 void network_get_name (T_CURRENT_NETWORK * nm);
101 void network_start_full_service (void);
102 T_MFW_HND networkInit (T_MFW_HND parent_window);
103
104 #endif
105