currencyconvertor.c
3.35 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
/* 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"
#if (defined(__MMI_CURRENCY_CONVERTER__) && !defined(__COSMOS_MMI_PACKAGE__))
/* 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_CURRENCYCONVERTER"
#if defined(__MMI_APP_MANAGER_SUPPORT__)
package_name = "native.mtk.currencyconverter" /* Use "native.mtk." as the prefix of application name */
name = "EXTRA_MENU_CURRENCYCONVERTOR_STRINGID" /* The string to be displayed under the main menu icon */
img = "MAIN_MENU_CCONV_ICON" /* Main menu icon image */
launch = "mmi_cconv_pre_entry_app" /* Launch function of application. When tap on the icon in main menu, the function will be invoked. */
#endif /*__MMI_APP_MANAGER_SUPPORT__*/
>
/* 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,SettingResDef.h"/>
<!-----------------------------------------------------String Resource Area----------------------------------------------------->
/* String ID of you Application, we will get string from ref_list.txt for all languages */
<STRING id="STR_CURRENCYCONVERTOR_RATEINPUT"/>
<STRING id="STR_CURRENCYCONVERTOR_RATE"/>
<STRING id="STR_CURRENCYCONVERTOR_INPUT"/>
<STRING id="STR_CURRENCYCONVERTOR_LOCAL"/>
<STRING id="STR_CURRENCYCONVERTOR_FOREIGN"/>
<STRING id="ERROR_CURRENCYCONVERTOR_RATE1"/>
<STRING id="EXTRA_MENU_CURRENCYCONVERTOR_STRINGID"/>
<STRING id="STR_CURRENCYCONVERTOR_SAVE_RATE"/>
<!-----------------------------------------------------Image Resource Area------------------------------------------------------>
/* Image Id and path of you Application , you can use compile option in Path, but need out of "" */
<IMAGE id="EXTRA_MENU_CURRENCYCONVERTOR_IMAGEID">CUST_IMG_PATH"\\\\MainLCD\\\\Currency\\\\SB_OCUR.bmp"</IMAGE>
<IMAGE id="CURRENCY_CONVERTOR_IMAGE">CUST_IMG_PATH"\\\\MainLCD\\\\Currency\\\\C_RATE.bmp"</IMAGE>
#if defined(__MMI_APP_MANAGER_SUPPORT__)
<IMAGE id="MAIN_MENU_CCONV_ICON">CUST_IMG_PATH"\\\\MainLCD\\\\VUI\\\\Launcher\\\\MainMenu\\\\Icons\\\\Currency.png"</IMAGE>
#endif
<!------------------------------------------------------Menu Resource Area------------------------------------------------------>
<MENU id="EXTRA_CURRENCYCONVERTOR_MENU" type="APP_SUB" str="EXTRA_MENU_CURRENCYCONVERTOR_STRINGID" img="EXTRA_MENU_CURRENCYCONVERTOR_IMAGEID" highlight="mmi_cconv_highlight_menu"
shortcut="ON" shortcut_img="EXTRA_MENU_CURRENCYCONVERTOR_IMAGEID" launch="mmi_cconv_pre_entry_app">
</MENU>
<CACHEDATA type="double" id="CURRENCY_CONVERTOR_EXCHANGE_RATE">
<DEFAULT_VALUE> [0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF] </DEFAULT_VALUE>
<DESCRIPTION> Double cache </DESCRIPTION>
</CACHEDATA>
<!------------------------------------------------------Other Resource---------------------------------------------------------->
<SCREEN id="GRP_ID_CCONV"/>
<SCREEN id="SCR_ID_CCONV_RATE_INPUT"/>
<SCREEN id="SCR_ID_CCONV_COMPUTE"/>
<SCREEN id="SCR_ID_CCONV_SAVE_CONFIRM"/>
</APP>
#endif