CustDataRes.h
44.9 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
/*****************************************************************************
* Copyright Statement:
* --------------------
* This software is protected by Copyright and the information contained
* herein is confidential. The software may not be copied and the information
* contained herein may not be used or disclosed except with the written
* permission of MediaTek Inc. (C) 2005
*
* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
*
* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
*
* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
*
*****************************************************************************/
/*******************************************************************************
* Filename:
* ---------
* CustDataRes.h
*
* Project:
* --------
* MAUI
*
* Description:
* ------------
*
*
* 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!
*
* 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!
*
* 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!
* 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!
* 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!
* 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!
*
* 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!
* 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!
* removed!
*
* removed!
* removed!
* removed!
*
*------------------------------------------------------------------------------
* Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*==============================================================================
*******************************************************************************/
/* DOM-NOT_FOR_SDK-BEGIN */
#ifndef _PIXCOM_CUSTDATARES_H
#define _PIXCOM_CUSTDATARES_H
#include "MMIDataType.h"
#include "mmi_features.h"
// #include "CustDataProts.h"
/* 101806 E-NFB start */
#define MAX_ASSOCIATED_IDS 256
#define MAX_ASSOCIATED_LIST_IDS 256
/* 101806 E-NFB end */
#define MAX_STRING_MAP_SIZE 65535
#define MAX_IMAGE_IDS_SIZE 65535
#define MAX_IMAGE_NAMES_SIZE 65535 /* Max Images Name */
#define MAX_FONT_IDS_SIZE 65535
#define MAX_FONT_NAMES_SIZE 65535 /* Max Font Name */
/* 101205 audio resource Calvin Satrt */
#define MAX_AUDIO_IDS_SIZE 65535
#define MAX_AUDIO_NAMES_SIZE 65535 /* Max Audio Name */
/* 101205 audio resource Calvin End */
#define MAX_BINARY_IDS_SIZE 65535
#define MAX_BINARY_NAMES_SIZE 65535 /* Max Binary Name */
#define MAX_FILENAME_LEN 512 /* This defines the maximun length customizable string can have. */
/* neerajm5 */
#ifdef __MOD_SMSAL__
#define MAX_STRING_IDS 5000 /* Max StringIds to be Set by the pgmer. */
// #define MAX_IMAGE_IDS 3000 //Max ImageIds to be Set by the pgmer.
#define MAX_SCREEN_IDS 1000 /* Max ScreenIds to be Set by the pgmer. */
#define MAX_ITEMS 1000 /* Max ItemsIds used for customizing structure to be Set by the pgmer. */
#else /* __MOD_SMSAL__ */
#define MAX_STRING_IDS 5000 /* Max StringIds to be Set by the pgmer. */
// #define MAX_IMAGE_IDS 3000 //Max ImageIds to be Set by the pgmer.
#define MAX_SCREEN_IDS 1000 /* Max ScreenIds to be Set by the pgmer. */
#define MAX_ITEMS 1000 /* Max ItemsIds used for customizing structure to be Set by the pgmer. */
#endif /* __MOD_SMSAL__ */
#define MAX_COMPRESSED_ITEM 65535
#if defined __DEVAPP_RESOURCE_OUTPUT__
#define STR_DATA_FILENAME "..\\..\\VendorApp\\DevResource\\Resources\\DevAppStrRes.c"
#define STR_MAP_FILENAME "..\\..\\VendorApp\\DevResource\\Resources\\DevAppStrMap.c"
#define IMG_DATA_FILENAME "..\\..\\VendorApp\\DevResource\\Resources\\DevAppImgRes.c"
#define IMG_MAP_FILENAME "..\\..\\VendorApp\\DevResource\\Resources\\DevAppImgMap.c"
#define HW_IMAGE_FILENAME "..\\..\\VendorApp\\DevResource\\Resources\\DevAppImgDataHW.h"
#define ADO_DATA_FILENAME "..\\..\\VendorApp\\DevResource\\Resources\\DevAppAdoRes.c"
#define ADO_MAP_FILENAME "..\\..\\VendorApp\\DevResource\\Resources\\DevAppAdoMap.c"
#define HW_AUDIO_FILENAME "..\\..\\VendorApp\\DevResource\\Resources\\DevAppAdoDataHW.h"
#define MENU_DATA_FILENAME "..\\..\\VendorApp\\DevResource\\Resources\\DevAppMenuRes.c"
#define CUS_STR_RES_FILENAME "..\\DevResource\\Resources\\CustStrList.txt" /* Filename containg the array of STRING_LIST. */
#else /* defined __DEVAPP_RESOURCE_OUTPUT__ */
#define STR_DATA_META_FILENAME "..\\..\\Customer\\CustResource\\CustStrResMeta.txt" /* Filename containg the array of CUSTOM_STRING. */
#define STR_MAP_META_FILENAME "..\\..\\Customer\\CustResource\\CustStrMapMeta.txt" /* Filename containg the array of CUSTOM_STRING_MAP. */
#define STR_DATA_FILENAME "..\\..\\Customer\\CustResource\\CustStrRes.c" /* Filename containg the array of CUSTOM_STRING. */
#define STR_MAP_FILENAME "..\\..\\Customer\\CustResource\\CustStrMap.c" /* Filename containg the array of CUSTOM_STRING_MAP. */
#define IMG_DATA_FILENAME "..\\..\\Customer\\CustResource\\CustImgRes.c" /* Filename containg the array of CUSTOM_IMAGE. */
#define IMG_MAP_FILENAME "..\\..\\Customer\\CustResource\\CustImgMap.c" /* Filename containg the array of CUSTOM_IMAGE_MAP. */
#define HW_IMAGE_FILENAME "..\\..\\Customer\\CustResource\\CustImgDataHW.h"
#define ADO_DATA_FILENAME "..\\..\\Customer\\CustResource\\CustAdoRes.c"
#define ADO_MAP_FILENAME "..\\..\\Customer\\CustResource\\CustAdoMap.c"
#define HW_AUDIO_FILENAME "..\\..\\Customer\\CustResource\\CustAdoDataHW.h"
#define BINARY_DATA_FILENAME "..\\..\\Customer\\CustResource\\CustBinaryRes.c"
#define BINARY_MAP_FILENAME "..\\..\\Customer\\CustResource\\CustBinaryMap.c"
#define HW_BINARY_FILENAME "..\\..\\Customer\\CustResource\\CustBinaryDataHW.h"
#define MENU_DATA_FILENAME "..\\..\\Customer\\CustResource\\CustMenuRes.c" /* Filename containg the array of CUSTOM_MENU. */
/* Menuitem reduce memory, move registe hilite handlers to resgen */
#define MENU_HANDLER_FILENAME "..\\..\\Framework\\EventHandling\\EventsInc\\mmi_menu_handlers.h" /* Filename containg the array of HiliteHandler and HintHandler. */
#define CUS_STR_RES_FILENAME "..\\CustResource\\CustStrList.txt" /* Filename containg the array of STRING_LIST. */
#define ZIP_OUTPUT_FILE ".\\debug\\resource_compress_log.csv"
#endif /* __DEVAPP_RESOURCE_OUTPUT__ */
#define IMG_DATA_FILENAME_EXT "..\\..\\Customer\\CustResource\\CustImgResExt.c" /* 040805 CustPack: Calvin added for newly separated set of images */
#define IMG_MAP_FILENAME_EXT "..\\..\\Customer\\CustResource\\CustImgMapExt.c" /* 040805 CustPack: Calvin added for newly separated set of images */
#define HW_IMAGE_FILENAME_EXT "..\\..\\Customer\\CustResource\\CustImgDataHWExt.h"
#define JAVA_GAME_FILENAME "..\\..\\Customer\\CustResource\\CustGameDataHW.h"
#define FONT_DATA_FILENAME_EXT "..\\..\\Customer\\CustResource\\CustFontResExt.c" /* LangPack */
#define FONT_MAP_FILENAME_EXT "..\\..\\Customer\\CustResource\\CustFontMapExt.c" /* LangPack */
#define ADO_DATA_FILENAME_EXT "..\\..\\Customer\\CustResource\\CustAdoResExt.c"
#define ADO_MAP_FILENAME_EXT "..\\..\\Customer\\CustResource\\CustAdoMapExt.c"
#define HW_AUDIO_FILENAME_EXT "..\\..\\Customer\\CustResource\\CustAdoDataHWExt.h"
#define THEMES_RES_FILENAME "..\\..\\Customer\\CustResource\\ThemeRes.c" /* Filename containg the array of CUSTOM_THEMES. */
#define THEMES_RES_TABLE_FILENAME "..\\..\\Customer\\CustResource\\ThemeResTable.c" /* Filename containg the array of CUSTOM_THEMES_TABLE. */
#define THEMES_UI_FILENAME "..\\..\\Customer\\CustResource\\ThemeComponents.h" /* Filename containg the Filled Areas and Colors Declaration. */
#define THEMES_UI_FILENAME_EXTERN "..\\..\\Customer\\CustResource\\ThemeComponentsx.h" /* Filename containg the Externs for Filled Areas and Colors Declaration. */
#define GUI_SETTING_FILENAME "..\\..\\Customer\\CustResource\\Gui_Setting.h" /* Filename containg Gui settings define. */
#define BUILD_CFG_FILE "..\\inc\\BuildCfg.h" /* Filename containing the config flags */
#define CUSTOM_CFG_FILE "..\\inc\\CustomCfg.h" /* Filename containing the flag for developer first build */
#define FONT_FILENAME "..\\..\\Customer\\CustResource\\FontRes.c"
#define GIFCONVERTER_FILENAME "..\\..\\Customer\\Images\\Gifload.exe"
#define BMPCONVERTER_FILENAME "..\\..\\Customer\\Images\\Bmpload.exe"
#define EMSCONVERTER_FILENAME "..\\..\\Customer\\Images\\EMSLoad.exe"
#define EMS_IMAGE_PATH "MAINLCD\\\\SMS\\\\PIC"
#define SUBMENU_IMAGE_PATH "MAINLCD\\\\SUBMENU"
#define NFB_IMAGE_DATA_FILENAME "..\\..\\Customer\\CustResource\\CustNFBProgressImg.h"
#define NFB_IMAGE_RES_FILENAME "..\\..\\Customer\\CustResource\\CustNFBProgressImg.c"
/* 101806 E-NFB start */
#define ENFB_DATA_FILENAME "..\\..\\Customer\\CustResource\\CustENFBImgMap.c"
/* 101806 E-NFB end */
#define MMI_RG_MENU_USAGE_FILE ".\\\\debug\\\\menu_resource_usage.txt"
#define MMI_RG_IMAGE_USAGE_FILE ".\\\\debug\\\\image_resource_usage.txt"
#define MMI_RG_IMAGE_CONVERTED_INFO_FILE ".\\\\debug\\\\image_info_updated_all.txt"
#define MMI_RG_AUDIO_USAGE_FILE ".\\\\debug\\\\audio_resource_usage.txt"
#define MMI_RG_STRING_USAGE_FILE ".\\\\debug\\\\string_resource_usage.txt"
#define MMI_RG_RES_BASE_TABLE_FILE ".\\\\debug\\\\resource_base_table.txt"
#define MMI_RG_REPEAT_ID_FILE ".\\\\debug\\\\repeat_id_list.log"
#define MMI_RG_VF_OBJ_LIST_FILE "vf_obj.txt"
#define MMI_RG_VF_MODIS_OBJ_LIST_FILE "vf_modis_obj.txt"
#define MMI_RG_VF_TTF_LIST_FILE "ttf_list.txt"
#define MMI_RG_FOTA_IMG_FILE "..\\..\\Customer\\CustResource\\CustFOTAImgData.h"
/* Custom_String is the typedef array of customizable strings. */
typedef U8 CUSTOM_STRING;
/* Custom_StringMap is the mapping array btw StringId & StringNum. */
typedef U32 CUSTOM_STRING_MAP;
typedef U16 CUSTOM_STRING_MAP_16;
typedef struct Custom_StrMap_Search
{
U16 nMinStrId; /* Minimum StringID defined by the developer. */
U16 nMaxStrId; /* Maximum StringID defined by the developer. */
U16 nMapIndex; /* Index of str in Custom_String_MAP. */
} CUSTOM_STRMAP_SEARCH;
typedef struct StringResourceList
{
CUSTOM_STRING *pStringRes;
U16 nTotalStrRes;
void *pStringMap;
U16 nTotalStrMap; /* for dup str res entry, nTotalStrMap stores the high 16 bits of max offset to non dup strings*/
CUSTOM_STRMAP_SEARCH *pStrMapSearch;
U16 nTotalStrMapSearch; /* for dup str res entry, nTotalStrMapSearch stores the low 16 bits of max offset to non dup strings */
MMI_BOOL is16bit;
#if defined(__MMI_RESOURCE_STR_COMPRESS__) || defined(__MMI_RESOURCE_STR_THIRD_ROM__)
U8 *pStringResZip;
U32 nResSize;
U32 nResZipSize;
U8 *pStringMapZip;
U32 nMapSize;
U32 nMapZipSize;
#endif
} StringResList;
typedef struct ENFB_Font_Res_Info
{
U16 res_id;
U32 offset;
U32 size;
}ENFB_Font_Res_Info;
//The below function updates the CUSTOM_STRING_MAP and CUSTOM_STRING Structure.
//MTK Leo add, for generate string list file in first pass.
//extern void SetString(U16 StrId, S8 *String, S8 *enum_value, S8 *resfile);
/* MTK end */
//extern void ClearHWIMageFile(void);
/* The below function gives the current phone model */
//extern PS8 mmi_get_phone_model(void);
#ifdef __CAT_ONLINE_MODE__
#ifndef __MMI_RES_STR_CHECK_TOOL__
#define __MMI_RES_STR_CHECK_TOOL__
#endif
#endif
#ifdef __MMI_RES_STR_CHECK_TOOL__
/*****************************************************************************
* FUNCTION
* mmi_res_str_chk_set_status
* DESCRIPTION
* Set status of checking tool
* PARAMETERS
* is_on : [IN] Is On checking tool
* RETURNS
* S32 0 is success
*****************************************************************************/
extern S32 mmi_res_str_chk_set_status(MMI_BOOL is_on);
#if 0
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif
/*****************************************************************************
* FUNCTION
* mmi_res_str_chk_get_status
* DESCRIPTION
* Get status of checking tool
* PARAMETERS
* Void
* RETURNS
* MMI_BOOL is status ON.
*****************************************************************************/
extern MMI_BOOL mmi_res_str_chk_get_status(void);
/*****************************************************************************
* FUNCTION
* mmi_res_str_chk_record
* DESCRIPTION
* Add a string to checking tool file
* PARAMETERS
* str_id : [IN] String ID
* string : [IN] String buffer
* RETURNS
* S32 0 is success
*****************************************************************************/
extern S32 mmi_res_str_chk_record(MMI_STR_ID str_id, WCHAR *string);
#if 0
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif
/*****************************************************************************
* FUNCTION
* mmi_res_str_chk_reset
* DESCRIPTION
* Reset checking tool's recorded file
* PARAMETERS
* Void
* RETURNS
* S32 0 is success
*****************************************************************************/
extern S32 mmi_res_str_chk_reset(void);
/*****************************************************************************
* FUNCTION
* mmi_res_str_chk_get_path
* DESCRIPTION
* Get log file of string checking tool
* PARAMETERS
* path [OUT] Log file path
* filename[IN] input file names
* RETURNS
* void
*****************************************************************************/
extern void mmi_res_str_chk_get_path(WCHAR *path, const WCHAR *filename);
#define MMI_RES_STR_CHK_SET_STATUS(x) mmi_res_str_chk_set_status(x)
#define MMI_RES_STR_CHK_GET_STATUS() mmi_res_str_chk_get_status()
#define MMI_RES_STR_CHK_RECORD(x,y) mmi_res_str_chk_record(x,y)
#if 0
/* under construction !*/
/* under construction !*/
#endif
#define MMI_RES_STR_CHK_RESET() mmi_res_str_chk_reset()
#else /* __MMI_RES_STR_CHECK_TOOL__ */
#define MMI_RES_STR_CHK_SET_STATUS(x) NULL
#define MMI_RES_STR_CHK_GET_STATUS()
#define MMI_RES_STR_CHK_RECORD(x,y)
#if 0
/* under construction !*/
/* under construction !*/
#endif
#define MMI_RES_STR_CHK_RESET()
#endif /* __MMI_RES_STR_CHECK_TOOL__ */
#define MMI_RES_MAX_DYNAMIC_STR_COUNT 10
typedef struct
{
mmi_str_id id;
WCHAR *str_buf;
}mmi_res_str_struct;
/*****************************************************************************
* FUNCTION
* mmi_res_hide_dim_menu_init
* DESCRIPTION
* Function to init hide dim
* PARAMETERS
* void
* RETURNS
* MMI_RET_OK: Init successful
*****************************************************************************/
extern mmi_ret mmi_res_hide_dim_menu_init(void);
/*****************************************************************************
* FUNCTION
* mmi_res_dynamic_str_init
* DESCRIPTION
* Function to init dynamic string
* PARAMETERS
* void
* RETURNS
* MMI_RET_OK: Init successful
*****************************************************************************/
extern mmi_ret mmi_res_dynamic_str_init(void);
/* DOM-NOT_FOR_SDK-END */
/*****************************************************************************
* FUNCTION
* mmi_res_dynamic_str_add
* DESCRIPTION
* Function to add string associated with the ID in dynamic string
* PARAMETERS
* id : [IN] String ID
* buf : [IN] String buffer pointer
* RETURNS
* MMI_RET_OK: Added successful
* MMI_RET_ERR: MAX count, can't add any more.
*****************************************************************************/
extern mmi_ret mmi_res_dynamic_str_add(mmi_str_id id, WCHAR *buf);
/*****************************************************************************
* FUNCTION
* mmi_res_dynamic_str_remove
* DESCRIPTION
* Function to delete string associated with the ID in dynamic string
* PARAMETERS
* id : [IN] String ID
* RETURNS
* MMI_RET_OK: removed successful
*****************************************************************************/
extern mmi_ret mmi_res_dynamic_str_remove(mmi_str_id id);
/*****************************************************************************
* FUNCTION
* mmi_res_dynamic_string_get
* DESCRIPTION
* Function to get string associated with the ID in dynamic string
* PARAMETERS
* id : [IN] String ID
* RETURNS
* the String Mapped with the Id.
*****************************************************************************/
extern WCHAR* mmi_res_dynamic_str_get(mmi_str_id id);
/*****************************************************************************
* <GROUP STRING>
* FUNCTION
* GetString
* DESCRIPTION
* Function to get string associated with the stringId
*
* is set inside the WriteRes.c file.
* PARAMETERS
* StringId : [IN] StringId
* RETURNS
* S8* the String Mapped with the Id.
*****************************************************************************/
extern S8 *GetString(U16 StringId);
/* DOM-NOT_FOR_SDK-BEGIN */
//MTK Leo end
//Custom_Image is the typedef array of customizable Images.
/* Converts the Image file name to Framework format */
typedef struct Custom_Image
{
PU8 pImage; /* Customizable Image filenames. */
} CUSTOM_IMAGE;
typedef struct ImageNameList
{
S8 filename[MAX_FILENAME_LEN];
} IMAGENAME_LIST;
/* Custom_ImageMap is the mapping array btw ImageId & ImageNum. */
typedef struct Custom_ImageMap
{
U16 nImageNum; /* Index of str in Custom_Image. */
} CUSTOM_IMAGE_MAP;
typedef struct Custom_ImageMapSearch
{
U16 minImageId; /* Minimum ImageId defined by the developer. */
U16 maxImageId; /* Maximum ImageId defined by the developer. */
U16 index; /* Index of str in Custom_Image. */
} CUSTOM_IMAGE_SEARCH_MAP;
/* 101806 E-NFB start */
typedef struct Custom_ENFB
{
U16 count;
U16 *IDs;
#if 0
/* under construction !*/
#endif /* 0 */
} CUSTOM_ENFB;
typedef struct Custom_ENFB_Str
{
U16 count;
U16 *IDs;
S8 **Ptr;
} CUSTOM_ENFB_STR;
/* 101806 E-NFB end */
/* __CUSTPACK_MULTIBIN Calvin BEGIN */
/* 040805 CustPack: Calvin added */
typedef struct CustPack_Image_Header
{
unsigned short MaxImageNumEXT;
CUSTOM_IMAGE *CustImageNamesEXT;
} CUSTPACK_IMAGE_HEADER;
/* Calvin end */
/* __CUSTPACK_MULTIBIN Calvin END */
/* 101205 audio resource Calvin Satrt */
typedef struct Custom_Audio
{
PU8 pAudio; /* Customizable Image filenames. */
} CUSTOM_AUDIO;
typedef struct AudioNameList
{
S8 filename[MAX_FILENAME_LEN];
} AUDIONAME_LIST;
typedef struct Custom_AudioMap
{
U16 nAudioNum; /* Index of str in Custom_Image. */
} CUSTOM_AUDIO_MAP;
typedef struct Custom_AudioMapSearch
{
U16 minAudioId; /* Minimum ImageId defined by the developer. */
U16 maxAudioId; /* Maximum ImageId defined by the developer. */
U16 index; /* Index of str in Custom_Image. */
} CUSTOM_AUDIO_SEARCH_MAP;
typedef struct CustPack_Audio_Header
{
unsigned short MaxAudioNumEXT;
CUSTOM_AUDIO *CustAudioNamesEXT;
} CUSTPACK_AUDIO_HEADER;
typedef struct Custom_Binary
{
PU8 pBinary; /* Customizable binary filenames. */
} CUSTOM_BINARY;
typedef struct Custom_BinaryMap
{
U16 nBinaryNum; /* Index of str in Custom_Binary. */
} CUSTOM_BINARY_MAP;
typedef struct Custom_BinaryMapSearch
{
U16 minBinaryId; /* Minimum BinaryId defined by the developer. */
U16 maxBinaryId; /* Maximum BinaryId defined by the developer. */
U16 index; /* Index of str in Custom_Binary. */
} CUSTOM_BINARY_SEARCH_MAP;
typedef struct CustPack_Binary_Header
{
unsigned short MaxBinaryNumEXT;
CUSTOM_BINARY *CustBinaryNamesEXT;
} CUSTPACK_BINARY_HEADER;
typedef struct res_compress
{
U8 zi_name[128];
U32 zi_len;
U8 ro_name[128];
U32 ro_len;
} res_compress_struct;
typedef struct res_compress_list
{
U8 *zi_name;
U32 zi_len;
U8 *ro_name;
U32 ro_len;
} res_compress_list_struct;
/* 101205 audio resource Calvin End */
/* Vector Font set to LangPack */
typedef struct
{
PU8 pFont; /* Customizable Image filenames. */
} CUSTOM_FONT;
typedef struct
{
S8 filename[MAX_FILENAME_LEN];
} FONTNAME_LIST;
typedef struct
{
U16 nFontNum; /* Index of str in Custom_Image. */
} CUSTOM_FONT_MAP;
typedef struct
{
U16 minFontId; /* Minimum ImageId defined by the developer. */
U16 maxFontId; /* Maximum ImageId defined by the developer. */
U16 index; /* Index of str in Custom_Image. */
} CUSTOM_FONT_SEARCH_MAP;
typedef struct
{
unsigned short MaxFontNumEXT;
unsigned short CurrMaxSearchFontIdEXT;
CUSTOM_FONT *CustFontNamesEXT;
CUSTOM_FONT_MAP *CustFontMapEXT;
CUSTOM_FONT_SEARCH_MAP * CustFontSearchMapEXT;
} CUSTPACK_FONT_HEADER;
typedef struct
{
S8 filename[MAX_FILENAME_LEN];
S8 real_filename[MAX_FILENAME_LEN];
S32 size;
} CUSTOM_RESOURCE_SIZE;
/* DOM-NOT_FOR_SDK-END */
/*****************************************************************************
* <GROUP IMAGE>
* FUNCTION
* GetImage
* DESCRIPTION
* Get image handle of the image ID
* PARAMETERS
* ImageId : [IN] Image ID
* RETURNS
* A handle of the image
*****************************************************************************/
extern S8 *GetImage(U16 ImageId);
#ifdef __MMI_RESOURCE_IMAGE_GROUP_COMPRESS__
#define CheckIsImageBufferPtr(imageHandle) (!(((U32)imageHandle & 0xB0000001) == 0xB0000001))
#else
#define CheckIsImageBufferPtr(imageHandle) (1)
#endif // __MMI_RESOURCE_IMAGE_GROUP_COMPRESS__
#define CheckIsEmptyImage(imageHandle) ((CheckIsImageBufferPtr(imageHandle)) && (*((S8*)imageHandle)==0))
/* DOM-NOT_FOR_SDK-BEGIN */
/*****************************************************************************
* <GROUP IMAGE>
* FUNCTION
* GetImageData
* DESCRIPTION
* Get the pointer of image buffer of the image ID, must set the image flushable
* with SetImageFlushable(imageHandle, MMI_TRUE) when you don't need the image
* buffer.
* PARAMETERS
* ImageHandle : [IN] Handle of the image
* RETURNS
* A handle of the image
*****************************************************************************/
#ifdef __MMI_RESOURCE_IMAGE_GROUP_COMPRESS__
extern S8 *GetImageBufferData(S8* ImageHandle);
#define GetImageData(ImageHandle) GetImageBufferData(ImageHandle)
#else
#define GetImageData(ImageHandle) (ImageHandle)
#endif /* __MMI_RESOURCE_IMAGE_GROUP_COMPRESS__ */
/*****************************************************************************
* <GROUP IMAGE>
* FUNCTION
* SetImageFlushable
* DESCRIPTION
* Mark the image can be flush from cache
* PARAMETERS
* imageHandle : [IN] Handle of the image
* RETURNS
* A handle of the image
*****************************************************************************/
#ifdef __MMI_RESOURCE_IMAGE_GROUP_COMPRESS__
extern void SetImageBufferFlushable(S8* imageHandle);
#define SetImageFlushable(imageHandle) SetImageBufferFlushable((S8*)imageHandle)
#else
#define SetImageFlushable(imageHandle)
#endif /* __MMI_RESOURCE_IMAGE_GROUP_COMPRESS__ */
/*****************************************************************************
* <GROUP IMAGE>
* FUNCTION
* FlushImageCacheForce
* DESCRIPTION
* Flush entire image cache to de-fragment
* RETURNS
* Flushing is success or not
*****************************************************************************/
#ifdef __MMI_RESOURCE_IMAGE_GROUP_COMPRESS__
extern MMI_BOOL FlushImageBufferCacheForce(void);
#define FlushImageCacheForce() FlushImageBufferCacheForce()
#else
#define FlushImageCacheForce()
#endif
/* DOM-NOT_FOR_SDK-END */
/*****************************************************************************
* <GROUP AUDIO>
* FUNCTION
* GetAudio
* DESCRIPTION
* Function to get audio data associated with the AudioId
*
* PARAMETERS
* AudioId : [IN] AudioId
* RETURNS
* Returns the audio datad with the AudioId.
*****************************************************************************/
extern S8 *GetAudio(U16 AudioId);
/*****************************************************************************
* <GROUP BINARY>
* FUNCTION
* GetBinary
* DESCRIPTION
* Function to get audio data associated with the BinaryId
* PARAMETERS
* BinaryId : [IN] BinaryId
* RETURNS
* Returns the binary data associated with the BinaryId.
*****************************************************************************/
extern S8 *GetBinary(U16 BinaryId);
/*****************************************************************************
* <GROUP APP>
* FUNCTION
* mmi_res_get_app_idx
* DESCRIPTION
* Function to get index of an app
* PARAMETERS
* app_res_id : [IN] App resource range ID
* RETURNS
* Return 0xFFFF if not found.
*****************************************************************************/
extern U16 mmi_res_get_app_idx(U16 app_res_id);
/*****************************************************************************
* <GROUP APP>
* FUNCTION
* mmi_res_get_app_base_mem_size
* DESCRIPTION
* Function to get base mem. size of an app
* PARAMETERS
* app_res_id : [IN] App resource range ID
* RETURNS
* Return 0 if not found.
*****************************************************************************/
extern U32 mmi_res_get_app_base_mem_size(U16 app_res_id);
/*****************************************************************************
* <GROUP APP>
* FUNCTION
* mmi_res_get_app_fg_mem_size
* DESCRIPTION
* Function to get foreground mem. size of an app
* PARAMETERS
* app_res_id : [IN] App resource range ID
* RETURNS
* Return 0 if not found.
*****************************************************************************/
extern U32 mmi_res_get_app_fg_mem_size(U16 app_res_id);
/*****************************************************************************
* <GROUP APP>
* FUNCTION
* mmi_res_get_app_heap_size
* DESCRIPTION
* Function to get max value of app's ID range
* PARAMETERS
* app_id : [IN] parent ID of menu tree
* RETURNS
* Return 0 if not found.
*****************************************************************************/
extern U32 mmi_res_get_app_heap_size(U16 app_id);
/*****************************************************************************
* FUNCTION
* mmi_res_get_app_heap_shrink_size
* DESCRIPTION
* Function to get heap_shrink size of an app
* PARAMETERS
* app_res_id : [IN] App resource ID
* RETURNS
* Return 0 if not found.
*****************************************************************************/
extern U32 mmi_res_get_app_heap_shrink_size(U16 app_res_id);
/*****************************************************************************
* <GROUP APP>
* FUNCTION
* mmi_res_get_app_global_size
* DESCRIPTION
* Function to get "global" quota of app
* PARAMETERS
* app_res_id : [IN] app resource id
* RETURNS
* Return 0 if not found.
*****************************************************************************/
extern U32 mmi_res_get_app_global_size(U16 app_res_id);
typedef struct _mmi_app_mem_info_struct
{
U32 base_size;
U32 fg_size;
U32 heap_size;
U32 heap_shrink_size;
U32 heap_global_size;
} mmi_app_mem_info_struct;
/*****************************************************************************
* <GROUP APP>
* FUNCTION
* mmi_res_get_app_mem_info
* DESCRIPTION
* Function to get mem info of app at once
* PARAMETERS
* app_res_id : [IN] app resource id
* info : [OUT] returned info
* RETURNS
* Return MMI_FALSE if not found.
*****************************************************************************/
extern MMI_BOOL mmi_res_get_app_mem_info(U16 app_res_id, mmi_app_mem_info_struct *info);
/* DOM-NOT_FOR_SDK-BEGIN */
/*****************************************************************************
* FUNCTION
* mmi_res_get_app_vrt_mem_factor
* DESCRIPTION
* Function to get vrt mem. factor of an app
* PARAMETERS
* app_res_id : [IN] App resource range ID
* RETURNS
* Return 0 if not found.
*****************************************************************************/
extern FLOAT mmi_res_get_app_vrt_mem_factor(U16 app_res_id);
/* DOM-NOT_FOR_SDK-END */
/*****************************************************************************
* <GROUP APP>
* FUNCTION
* mmi_res_get_app_asm_pool_size
* DESCRIPTION
* Function to get asm pool size of an app
* PARAMETERS
* app_id : [IN] parent ID of menu tree
* RETURNS
* Return 0 if not found.
*****************************************************************************/
extern U32 mmi_res_get_app_asm_pool_size(U16 app_id);
/*****************************************************************************
* <GROUP APP>
* FUNCTION
* mmi_res_get_app_max
* DESCRIPTION
* Function to get max value of app's ID range
* PARAMETERS
* app_id : [IN] parent ID of menu tree
* RETURNS
* Return 0 if not found.
*****************************************************************************/
extern U16 mmi_res_get_app_max(U16 app_id);
/*****************************************************************************
* FUNCTION
* mmi_res_get_app_baseID
* DESCRIPTION
* Function to get baseID value from app's ID range
* PARAMETERS
* app_res_id [IN] App resource range ID
* RETURNS
* Return 0 if not found.
*****************************************************************************/
U16 mmi_res_get_app_baseID(U16 app_res_id);
/*****************************************************************************
* <GROUP APP>
* FUNCTION
* mmi_res_get_app_name_str_id
* DESCRIPTION
* Function to get string ID of app name
* PARAMETERS
* app_id : [IN] parent ID of menu tree
* RETURNS
* Return 0 if not found.
*****************************************************************************/
extern U16 mmi_res_get_app_name_str_id(U16 app_id);
/*****************************************************************************
* <GROUP Memory>
* FUNCTION
* mmi_res_get_asm_pool_size
* DESCRIPTION
* Function to get ASM pool size
* PARAMETERS
* none
* RETURNS
* pool size.
*****************************************************************************/
extern U32 mmi_res_get_asm_pool_size(void);
/*****************************************************************************
* <GROUP APP>
* FUNCTION
* mmi_res_get_asm_common_pool_size
* DESCRIPTION
* Function to get size of "common" region in ASM pool
* PARAMETERS
* RETURNS
* Size of common region
*****************************************************************************/
extern U32 mmi_res_get_asm_common_pool_size(void);
/*****************************************************************************
* <GROUP APP>
* FUNCTION
* mmi_res_get_asm_global_pool_size
* DESCRIPTION
* Function to get size of "global" region in ASM pool
* PARAMETERS
* RETURNS
* Size of global region
*****************************************************************************/
extern U32 mmi_res_get_asm_global_pool_size(void);
/*****************************************************************************
* <GROUP Memory>
* FUNCTION
* mmi_res_get_asm_pool
* DESCRIPTION
* Function to get ASM pool
* PARAMETERS
* none
* RETURNS
* pool pointer.
*****************************************************************************/
extern void* mmi_res_get_asm_pool(void);
#if defined __MMI_USE_MMV2__
/*****************************************************************************
* <GROUP Memory>
* FUNCTION
* mmi_res_get_asm_va_pool_size
* DESCRIPTION
* Function to get ASM virtual address pool size
* PARAMETERS
* none
* RETURNS
* pool size.
*****************************************************************************/
extern U32 mmi_res_get_asm_pool_va_size(void);
/*****************************************************************************
* <GROUP Memory>
* FUNCTION
* mmi_res_get_asm_va_pool
* DESCRIPTION
* Function to get ASM virtual address pool
* PARAMETERS
* none
* RETURNS
* pool pointer.
*****************************************************************************/
extern void* mmi_res_get_asm_va_pool(void);
/*****************************************************************************
* <GROUP Memory>
* FUNCTION
* mmi_res_get_asm_pool_size_wo_flmm_overhead
* DESCRIPTION
* Function to get ASM pool size without flmm overhead
* PARAMETERS
* none
* RETURNS
* pool pointer.
*****************************************************************************/
extern U32 mmi_res_get_asm_pool_size_wo_flmm_overhead(void);
#endif
/* <GROUP IMAGE> */
/* GetMedia is same as GetImage, use to get media resource */
#define GetMedia(VideoId) GetImage((U16)(VideoId))
#ifdef __MMI_RESOURCE_ENFB_SUPPORT__
/*****************************************************************************
* <GROUP STRING>
* FUNCTION
* mmi_frm_enfb_if_enfb_str
* DESCRIPTION
* test if data is an E-NFB string resource
* PARAMETERS
* data : [IN] data pointer
* RETURNS
* MMI_BOOL MMI_TRUE or MMI_FALSE
*****************************************************************************/
extern MMI_BOOL mmi_frm_enfb_if_enfb_str(const U8 *data);
/*****************************************************************************
* <GROUP STRING>
* FUNCTION
* mmi_frm_enfb_get_max_string_size
* DESCRIPTION
* get E-NFB maximum string size
* PARAMETERS
* void
* RETURNS
* U32 data size
*****************************************************************************/
extern U32 mmi_frm_enfb_get_max_string_size(void);
#endif /* #ifdef __MMI_RESOURCE_ENFB_SUPPORT__ */
#ifdef __MMI_DOWNLOADABLE_THEMES_SUPPORT__
/*****************************************************************************
* <GROUP IMAGE>
* FUNCTION
* GetImageIndex
* DESCRIPTION
* Get Image Index of Image ID
* PARAMETERS
* ImageId : [IN] Image ID
* RETURNS
* Image index in map file
*****************************************************************************/
extern U16 GetImageIndex(U16 ImageId);
/*****************************************************************************
* <GROUP IMAGE>
* FUNCTION
* GetDefaultImage
* DESCRIPTION
* Get Default image of Resource
* PARAMETERS
* void
* RETURNS
* S8* Default Image buffer
*****************************************************************************/
extern S8 *GetDefaultImage(void);
#endif /* __MMI_DOWNLOADABLE_THEMES_SUPPORT__ */
/* DOM-NOT_FOR_SDK-BEGIN */
/* The below functions shall set the current max string ids and string numbers being populated in the string res files */
/* ===================Below Structures are mainly used for Customizing Tool========. */
/* Below are the flags of ItemTypes which gives us the Item Type and Item Layout. */
/* Text types */
#define CAPTION_TEXT 1
#define MENUITEM_TEXT 2
#define BUTTON1_TEXT 3
#define BUTTON2_TEXT 4
#define GENERAL_TEXT 5
#define RUNNING_TEXT 6
/* IMAGES are greater then 20. */
#define CAPTION_IMAGE 21
#define MENUITEMITEM_IMAGE 22
#define BUTTON1_IMAGE 23
#define BUTTON2_IMAGE 24
#define GENERAL_IMAGE 25
#define RUNNING_IMAGE 26
//Custom_ScreenItem is structure mainly used for the Customizing tool.
//This structure is necessary to display StringId/ImageId with screen id.
typedef struct Custom_ScreenItem
{
U16 nItemId; /* This can be a StringId or ImageId which would */
/* be present in Custom_ImageMap/Custom_StringMap. */
U16 nItemType; /* This is a flag which are defined above for details. */
} CUSTOM_SCREEN_ITEM;
typedef struct Custom_Screen
{
U16 nScrId; /* Unique ScreenId defined by the developer. */
U16 nNumofItem; /* Number of Items in the screen. */
struct Custom_ScreenItem ScreenItem[MAX_ITEMS]; /* defined above with details. */
} CUSTOM_SCREEN;
typedef struct ResourceInfo
{
void *pValue;
void *pDisplayValue;
U32 nAppId;
U32 nMinId;
U32 nMaxId;
} ResourceInfo;
typedef struct MenuInfo
{
U16 nId;
U16 nParentId;
} MENU_INFO;
typedef struct ScreenInfo
{
U16 nStringIdList[460];
U16 nNoOfStrings;
U16 nImageIdList[460];
U16 nNoOfImages;
MENU_INFO sMenuInfo[10];
U16 nNoOfMenus;
} CURR_SCREEN_RESOURCE;
/*****************************************************************************
* <GROUP STRING>
* FUNCTION
* mmi_res_set_language
* DESCRIPTION
* Set the current language to the index.
* PARAMETERS
* nIndex : [IN] Index of lang to set
* RETURNS
* void
*****************************************************************************/
extern void mmi_res_set_language(S8 nIndex);
/* DOM-NOT_FOR_SDK-END */
/*****************************************************************************
* <GROUP STRING>
* FUNCTION
* GetLanguages
* DESCRIPTION
* Get the language string list.
* PARAMETERS
* pppLanguages : [IN] Array for getting the language list
* RETURNS
* U16 the number of languages deployed
*****************************************************************************/
extern U16 GetLanguages(U8 ***pppLanguages);
/*****************************************************************************
* <GROUP STRING>
* FUNCTION
* mmi_res_get_cur_language
* DESCRIPTION
* Get the current language ssc string and index
* PARAMETERS
* ssc_str : [OUT] SSC String of current language
* RETURNS
* U16 Index of current language.
*****************************************************************************/
extern S32 mmi_res_get_cur_language(U8 *ssc_str);
/*****************************************************************************
* <GROUP STRING>
* FUNCTION
* GetLanguageIndex
* DESCRIPTION
* Get the index of language specified by ssc_string.
*
* Return 0, if not found.
* PARAMETERS
* ssc_str : [IN] ssc_string of lang
* RETURNS
* U16 Language Index
*****************************************************************************/
extern U16 GetLanguageIndex(S8 *ssc_str);
/*****************************************************************************
* <GROUP STRING>
* FUNCTION
* GetLanguageIndexByLangCode
* DESCRIPTION
* Get the index of language specified by language code.
* Return 0, if not found.
* PARAMETERS
* lang_code : [IN] langauge code of lang
* RETURNS
* U16 index of language
*****************************************************************************/
extern U16 GetLanguageIndexByLangCode(S8 *lang_code);
/*****************************************************************************
* <GROUP STRING>
* FUNCTION
* SetCurrentLanguage
* DESCRIPTION
* Set the current language by index or SSC.
* PARAMETERS
* nIndex : [IN] Index of lang to set
* langSSC : [IN] SSC of lang to set
* RETURNS
* void
*****************************************************************************/
#ifdef __MMI_VECTOR_FONT_MEMORY_CARD_SUPPORT__
extern void SetCurrentLanguage(U8* langSSC);
#else
extern void SetCurrentLanguage(S8 nIndex);
#endif /*__MMI_VECTOR_FONT_MEMORY_CARD_SUPPORT__*/
/* DOM-NOT_FOR_SDK-BEGIN */
/*****************************************************************************
* <GROUP STRING>
* FUNCTION
* InitStringLanguage
* DESCRIPTION
* Init the language with the index.
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
extern void InitStringLanguage(void);
/* DOM-NOT_FOR_SDK-END */
/*****************************************************************************
* <GROUP IMAGE>
* FUNCTION
* mmi_res_get_image_size
* DESCRIPTION
* Get image width/height of the image ID
* PARAMETERS
* id : [IN] Image ID
* width : [OUT] Image Width
* height : [OUT] Image Height
* RETURNS
* is success
*****************************************************************************/
//extern S8 *GetImage(U16 ImageId);
extern MMI_BOOL mmi_res_get_image_size(U16 id, U16 * width, U16 * height);
#endif /* _PIXCOM_CUSTDATARES_H */