SimCtrl.c
2.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
/* Needed header files of the compile option in XML files, if you need others need to add here */
#include "mmi_features.h"
#include "custresdef.h"
/* Need this line to tell parser that XML start, must after all #include. */
<?xml version="1.0" encoding="UTF-8"?>
/* APP tag, include your app name defined in MMIDataType.h */
<APP id="APP_SIM_CTRL">
#if !defined(__MMI_SIM_CTRL_SLIM__)
/* When you use any ID of other module, you need to add
that header file here, so that Resgen can find the ID */
<!--Include Area-->
<INCLUDE file="GlobalResDef.h"/>
<!-----------------------------------------------------String Resource Area----------------------------------------------------->
/* String ID of you Application, we will get string from ref_list.txt for all languages */
#if (MMI_MAX_SIM_NUM == 1)
<STRING id="STR_ID_SIM_CTRL_SIM_ACCESS_ERROR"/>
#else
<STRING id="STR_ID_SIM_CTRL_SIMX_ACCESS_ERROR"/>
#endif
#endif /* !defined(__MMI_SIM_CTRL_SLIM__) */
#ifdef __SIM_HOT_SWAP_SUPPORT__
#if (MMI_MAX_SIM_NUM == 1)
<STRING id="STR_ID_SIM_CTRL_SIM_INSERTED"/>
<STRING id="STR_ID_SIM_CTRL_SIM_REMOVED"/>
#else
<STRING id="STR_ID_SIM_CTRL_SIMX_INSERTED"/>
<STRING id="STR_ID_SIM_CTRL_SIMX_REMOVED"/>
#endif
#endif /* __SIM_HOT_SWAP_SUPPORT__ */
#if !defined(__MMI_SIM_CTRL_SLIM__)
#if !defined(__SIM_HOT_SWAP_SUPPORT__) || defined(__SIM_RECOVERY_ENHANCEMENT__)
#if (MMI_MAX_SIM_NUM == 1)
<STRING id="STR_ID_SIM_CTRL_SIM_CAME_OFF"/>
#else
<STRING id="STR_ID_SIM_CTRL_SIMX_CAME_OFF"/>
#endif
#endif
#endif /* !defined(__MMI_SIM_CTRL_SLIM__) */
#if (MMI_MAX_SIM_NUM >= 2) && defined(__UMTS_RAT__)
<STRING id="STR_ID_SIM_CTRL_SIM_TIP"/>
#ifdef __MMI_3G_SWITCH__
<STRING id="STR_ID_SIM_CTRL_3G_SLOT_HINT_SWITCH_CFG"/>
#else
<STRING id="STR_ID_SIM_CTRL_3G_SLOT_HINT"/>
#endif
#endif
<!-----------------------------------------------------Image Resource Area------------------------------------------------------>
/* Image Id and path of you Application , you can use compile option in Path, but need out of "" */
<!------------------------------------------------------Menu Resource Area------------------------------------------------------>
/* Only MENUITEM need compile option, MENUITEM_ID does not need */
<!------------------------------------------------------Other Resource---------------------------------------------------------->
<SCREEN id="GRP_ID_SIM_CTRL"/>
#if (MMI_MAX_SIM_NUM >= 2) && defined(__UMTS_RAT__)
<SCREEN id="SCR_ID_SIM_CTRL_3G_SLOT_HINT"/>
#endif
#if !defined(__MMI_SIM_CTRL_SLIM__)
<RECEIVER id="EVT_ID_SRV_SIM_CTRL_AVAILABILITY_CHANGED" proc="mmi_sim_ctrl_on_sim_availability_changed"/>
#endif
#ifdef __SIM_HOT_SWAP_SUPPORT__
<RECEIVER id="EVT_ID_SRV_SIM_CTRL_EVENT_DETECTED" proc="mmi_sim_ctrl_on_sim_event_detected"/>
#endif
</APP>