InlineCuiGprot.h
47.5 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
/*****************************************************************************
* 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:
* ---------
* InlineCuiGprot.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!
*
*------------------------------------------------------------------------------
* Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*==============================================================================
*******************************************************************************/
#ifndef MMI_INLINECUIGPROT_H
#define MMI_INLINECUIGPROT_H
#ifdef __cplusplus
extern "C"{
#endif
#include "wgui_inline_edit.h"
#include "MMIDataType.h"
#include "ImeGprot.h"
#include "gui_data_types.h"
#include "gui_typedef.h"
#include "mmi_res_range_def.h"
#include "MMI_features.h"
#include "kal_general_types.h"
#include "gui_virtual_keyboard_language_type.h"
#include "mmi_frm_mem_gprot.h"
#include "gui_inputs.h"
#ifdef __cplusplus
}
#endif
/*****************************************************************************
* Macro
*****************************************************************************/
#define INLINE_EVENT_BASE 100
#define CUI_INLINE_ITEM_ID_BASE 1000
#define CUI_INLINE_INVALID_ID 0xFFFF
#define CUI_INLINE_SET_ATTRIBUTE 0
#define CUI_INLINE_RESET_ATTRIBUTE 1
#define CUI_INLINE_SET_EXT_ATTRIBUTE 2
#define CUI_INLINE_RESET_EXT_ATTRIBUTE 3
#define CUI_INLINE_ITEM_LEFT_JUSTIFY 0x00000100
#define CUI_INLINE_ITEM_RIGHT_JUSTIFY 0x00000200 /* item right align */
#define CUI_INLINE_ITEM_CENTER_JUSTIFY 0x00000400 /* item center align */
#define CUI_INLINE_ITEM_DISABLE_LIST_HIGHLIGHT 0x00000800 /* item have no highlight background color */
#define CUI_INLINE_ITEM_BOUNDARY 0x00001000 /* item have border frame */
#define CUI_INLINE_ITEM_DISABLE 0x00002000 /* item can not be highlight */
#define CUI_INLINE_ITEM_DRAW_AS_CONTROL 0x00004000 /* this flag is just for select, color select, image text */
#define CUI_INLINE_ITEM_FULL_WIDTH 0x00008000 /* item text is align to left screen frame*/
#ifndef __MMI_INLINE_SLIM__
#define CUI_INLINE_ITEM_DOTTED_UNDERLINE 0x00010000 /* item have special bottom line */
#endif
#define CUI_INLINE_ITEM_DEFAULT_TEXT 0x00080000 /* item default text */
#ifndef __MMI_INLINE_SLIM__
#define CUI_INLINE_ITEM_IS_FULLSCREEN_OPEN 0x00100000 /* Fullscreen item status, just use by inline internal */
#define CUI_INLINE_ITEM_IS_FULLSCREEN_CHANGE 0x00200000 /* Fullscreen item status, just use by inline internal */
#define CUI_INLINE_ITEM_DISABLE_CURSOR 0x00400000 /* Disable singleline item cursor. */
#endif
#define CUI_INLINE_ITEM_NO_LEADING_ZERO 0X00800000 /* Allow singleline input begin with zero. just use by Textedit item. */
#define CUI_INLINE_ITEM_DEFAULT_ICON 0X01000000 /* Default icon for singleline item */
#ifndef __MMI_INLINE_SLIM__
#define CUI_INLINE_ITEM_SELECT_NO_LOOP 0x02000000 /* Just for selector, set item show loop or not. */
#endif
#define CUI_INLINE_ITEM_DISPLAY_NO_RESPONSE_NUMKEY 0x02000000
#define CUI_INLINE_ITEM_TEXTEDIT_FIRST_CURSOR 0x02000000
#define CUI_INLINE_ITEM_DISPLAY_ONLY_SHOW 0x04000000 /* In FTE, disable icon indicator for displayonly item. */
#define CUI_INLINE_ITEM_YEAR_ONLY 0x08000000 /* In BWFWT, only show year with date component. */
#define CUI_INLINE_SCREEN_LOOP 0x00000100 /* the inline menu list can loop show */
#define CUI_INLINE_SCREEN_DEFAULT_TEXT 0x00000200 /* the inline menu item support default text */
#define CUI_INLINE_SCREEN_DISABLE_DONE 0x00000400 /* the inline screen is disable done style */
#define CUI_INLINE_SCREEN_CHANGED 0x00000800 /* set inline screen status to ¡®changed¡¯*/
#define CUI_INLINE_SCREEN_DISABLE_LOOP 0x00001000
#define CUI_INLINE_INSERT_TAIL 0xFFFF /* Insert item to last position */
#define CUI_INLINE_SOFTKEY_DEFAULT_VALUE 0XFFFF
#define CUI_INLINE_TEXT_BUFFER_SIZE 256
#define CUI_INLINE_RETURN_ERROR -1
#if defined (__MMI_BTBOX_KEYBOARD_STYLE__)
#define __INLINE_CUI_SLIM_SELECT_ITEM_STYLE__
#endif
/*****************************************************************************
*
*****************************************************************************/
typedef enum
{
CUI_INLINE_ITEM_TYPE_CAPTION = 1,
CUI_INLINE_ITEM_TYPE_DISPLAY_ONLY,
CUI_INLINE_ITEM_TYPE_BUTTON,
CUI_INLINE_ITEM_TYPE_MULTILINE_RD_ONLY,
CUI_INLINE_ITEM_TYPE_TEXT_EDIT,
CUI_INLINE_ITEM_TYPE_MULTILINE_EDIT,
CUI_INLINE_ITEM_TYPE_FULLSCREEN_EDIT,
CUI_INLINE_ITEM_TYPE_IMAGE_TEXT,
CUI_INLINE_ITEM_TYPE_DATE,
CUI_INLINE_ITEM_TYPE_TIME,
CUI_INLINE_ITEM_TYPE_TIME_PEROID,
CUI_INLINE_ITEM_TYPE_IP4,
CUI_INLINE_ITEM_TYPE_SELECT,
CUI_INLINE_ITEM_TYPE_COLOR_SELECT,
CUI_INLINE_ITEM_TYPE_USER_DEFINED_SELECT,
CUI_INLINE_ITEM_TYPE_DOW,
CUI_INLINE_ITEM_TYPE_PROGRESS_BAR,
CUI_INLINE_ITEM_TYPE_RADIO_LIST,
CUI_INLINE_ITEM_TYPE_CHECKBOX,
#ifdef __MMI_BTD_BOX_UI_STYLE__
CUI_INLINE_ITEM_TYPE_DATETIME_SETTING_DISPLAY_ONLY,
#endif
#if defined(__MMI_PHB_PHOTO_STICKER_SUPPORT__)
CUI_INLINE_ITEM_TYPE_CAPTION_THUMBNAIL,
#endif /* __MMI_PHB_PHOTO_STICKER_SUPPORT__ */
CUI_INLINE_ITEM_MAX_ID
}cui_inline_item_id;
/*
typedef enum
{
CUI_INLINE_MAIN_SCREEN_SCRN_ID = 1,
CUI_INLINE_FULLSCREEN_EDIT_SCRN_ID,
CUI_INLINE_FULLSCREEN_OPTION_LIST_SCRN_ID,
CUI_INLINE_IMAGETEXT_EDIT_SCRN_ID,
CUI_INLINE_IMAGETEXT_OPIONT_LIST_SCRN_ID,
CUI_INLINE_SCREEN_COUNT
}cui_inline_screen_id_enum;
*/
typedef enum
{
CUI_INLINE_STATUS_CREATE,
CUI_INLINE_STATUS_ACTIVE,
CUI_INLINE_STATUS_INACTIVE,
CUI_INLINE_STATUS_CLOSE
}cui_inline_status_enum;
/* data struct for setting caption item */
typedef struct
{
/* string id */
U16 string_id;
}cui_inline_item_caption_struct;
typedef struct
{
/* string id */
U16 string_id;
}cui_inline_item_button_struct;
#if defined(__MMI_PHB_PHOTO_STICKER_SUPPORT__)
typedef struct
{
U32 style; // 0 text ptr : 1 image id : 2 thumbnail path
U16 string_id;
U16 default_id;
PU8 thumbnail_path;
PU8 buffer_p;
}cui_inline_item_caption_tn_struct;
#endif /* __MMI_PHB_PHOTO_STICKER_SUPPORT__ */
/* data struct for setting displayonly item */
typedef struct
{
/* string id */
U16 string_id;
U16 default_text_id;
}cui_inline_item_display_only_struct;
/* data struct for setting multiline readonly item */
typedef struct
{
/* string id */
U16 string_id;
/* multiline row count */
U8 height_of_item;
}cui_inline_item_multiline_rdonly_struct;
/* data struct for setting textedit item */
typedef struct
{
/* string id */
U16 string_id;
/*default text string id*/
U16 default_text_id;
/* string count */
U32 buffer_size;
/* input type */
U32 input_type;
/* input extended type */
S16 input_extended_type;
/* required input mode */
mmi_imm_input_mode_enum *required_input_mode_set;
}cui_inline_item_text_edit_struct;
/* data struct for setting multiline edit item */
typedef struct
{
/* string id */
U16 string_id;
/* string count */
U32 buffer_size;
/* input type */
U32 input_type;
U8 height_of_item;
}cui_inline_item_multiline_edit_struct;
/* data struct for setting fullscreen edit item */
typedef struct
{
U16 string_id; /* string id */
U16 default_text_id; /*default text string id*/
U16 title; /* title string id */
U16 title_icon; /* title icon id */
S16 input_extended_type; /* input extended type */
U32 input_type; /* input type */
S32 buffer_size; /* string count */
mmi_imm_input_mode_enum *required_input_mode_set;
}cui_inline_item_fullscreen_edit_struct;
/* data struct for setting imagetext item */
typedef struct
{
U16 image1_id; /* icon1 id */
U16 image2_id; /* icon2 id */
U16 image3_id; /* icon3 id */
U16 string_id; /* string id */
U16 title; /*string title id */
U16 title_icon; /* title icon id */
S32 buffer_size; /* string count */
U32 input_type; /* input type */
} cui_inline_item_image_text_struct;
typedef struct
{
S32 n_items;
S32 selected_item;
PU8 *list_of_string;
}cui_inline_item_radio_list_struct;
typedef struct
{
MMI_BOOL IsSelected;
PU8 *text_p;
}cui_inline_item_checkbox_struct;
/* data struct for setting selector item */
typedef struct
{
U8 n_items; /* item count */
U8 highlighted_item; /* highlighted item index */
const U16 *list_of_item_id; /* list of item id */
}cui_inline_item_select_struct;
#define cui_inline_item_user_defined_select_struct NULL
/* data struct for setting color selector item */
typedef struct
{
U8 n_color; /* item count */
U8 highlight_index; /* highlighted item index */
const color *list_of_color; /* list of item color */
}cui_inline_item_color_select_struct;
/* data struct for setting dow selector item */
typedef struct
{
PU8 list_of_states; /* list of item status */
}cui_inline_item_dow_select_struct;
/* data struct for setting date and time item */
typedef struct
{
U16 year; /* year */
U16 month; /* month */
U16 day; /* day */
U16 hour; /* hour */
U16 minute; /* minute */
U16 second; /* second */
} cui_inline_item_date_time_struct;
/* data struct for setting time period item */
typedef struct
{
cui_inline_item_date_time_struct date_time1; /* date item struct */
cui_inline_item_date_time_struct date_time2; /* date item struct */
/* 12 hours or 24 hours*/
U8 date_format;
} cui_inline_item_time_period_struct;
/* data struct for setting ip4 item */
typedef struct
{
U8 b1; /* ip field */
U8 b2; /* ip field */
U8 b3; /* ip field */
U8 b4; /* ip field */
} cui_inline_item_ip4_struct;
/* data struct for setting time item */
typedef struct
{
cui_inline_item_date_time_struct date_time; /* date item struct */
/* 12 hours or 24 hours*/
U8 date_format;
} cui_inline_item_time_struct;
typedef struct
{
U16 value; /* value of progress bar */
U16 max_value; /* The max value of progress bar */
U16 step_size; /* value per step */
} cui_inline_item_progress_bar_struct;
/* items common structure */
typedef struct
{
U16 item_id; /* item id*/
U32 item_flag; /* item flag */
U16 image_id; /* image id */
const void *item_data; /* item data */
}cui_inline_set_item_struct;
/* items softkey attributes structure */
typedef struct
{
U16 string_id; /* string id */
U16 image_id; /* image id */
} cui_inline_softkey_attr_struct;
/* items three softkey attributes structure */
typedef struct
{
cui_inline_softkey_attr_struct softkey[WGUI_MAX_SOFTKEYS]; /* softkey struct */
}cui_inline_item_softkey_struct ;
/* inline setting structure */
typedef struct
{
U8 items_count; /* item count */
U16 title; /* title string id */
U16 title_icon; /* title icon id */
U32 screen_flag; /* screen attribute */
const cui_inline_item_softkey_struct * softkey; /* */
const cui_inline_set_item_struct * items; /* */
}cui_inline_struct;
/* CUI_INLINE_ITEM_SETTING_STRUCTURE_FOR_API */
/* DOM-NOT_FOR_SDK-BEGIN */
typedef struct
{
PU8 buffer;
PU8 image1;
PU8 image2;
PU8 image3;
S32 buffer_size;
U16 title;
U16 title_icon;
U32 input_type;
} cui_inline_set_item_image_text_struct;
typedef struct
{
PU8 buffer;
U16 default_text_id;
S32 buffer_size;
U16 title;
U16 title_icon;
U32 input_type;
S16 input_extended_type;
mmi_imm_input_mode_enum *required_input_mode_set;
}cui_inline_set_item_fullscreen_edit_struct;
typedef struct
{
PU8 image1;
PU8 image2;
PU8 image3;
U8 highlight_image;
}cui_inline_set_item_attachment_struct;
typedef struct
{
U16 year;
U16 month;
U16 day;
U16 hour;
U16 minute;
U16 second;
} cui_inline_set_item_date_time_struct;
typedef struct
{
cui_inline_item_date_time_struct date_time1;
cui_inline_item_date_time_struct date_time2;
/* 12 hours or 24 hours*/
U8 date_format;
} cui_inline_set_item_time_period_struct;
typedef struct
{
U8 b1;
U8 b2;
U8 b3;
U8 b4;
} cui_inline_set_item_ip4_struct;
typedef struct
{
cui_inline_item_date_time_struct date_time;
/* 12 hours or 24 hours*/
U8 date_format;
} cui_inline_set_item_time_struct;
typedef struct
{
U16 value;
U16 max_value;
U16 step_size;
} cui_inline_set_item_progress_bar_struct;
typedef struct
{
EDITOR_HILITE_TYPE hilite_type;
U16 length;
U32 str_offset;
} cui_inline_hilite_str_struct;
typedef struct
{
cui_inline_hilite_str_struct * hilite_list;
U16 count;
U16 curr_hilite_idx;
}cui_inline_set_multiline_rd_highlight_list_struct; //HILITE_STR
/* DOM-NOT_FOR_SDK-END */
/*****************************************************************************
* Event
*****************************************************************************/
typedef enum
{
EVT_ID_CUI_INLINE_SUBMIT = (INLINE_EDITOR_BASE + 1),
EVT_ID_CUI_INLINE_ABORT,
EVT_ID_CUI_INLINE_CSK_PRESS,
EVT_ID_CUI_INLINE_SET_KEY,
EVT_ID_CUI_INLINE_NOTIFY,
EVT_ID_CUI_INLINE_REDRAW, /* Use by inline CUI internal*/
EVT_ID_CUI_INLINE_MAIN_SCREEN_ACTIVE,
EVT_ID_CUI_INLINE_GROUP_DEINIT,
EVT_ID_CUI_INLINE_MAIN_SCREEN_INACTIVE,
EVT_ID_CUI_INLINE_MAIN_SCREEN_SHOWN,
EVT_ID_CUI_INLINE_MAX
} cui_inline_event_enum;
typedef enum
{
CUI_INLINE_NOTIFY_HIGHLIGHT_ITEM,
CUI_INLINE_NOTIFY_ITEM_ACTIVATED,
CUI_INLINE_NOTIFY_ITEM_CHANGED,
CUI_INLINE_NOTIFY_TEXT_NOT_EMPTY,
CUI_INLINE_NOTIFY_TEXT_EMPTY,
#ifdef __MMI_INLINE_SLIM__
CUI_INLINE_NOTIFY_SUB_GROUP_SUBMIT,
CUI_INLINE_NOTIFY_SUB_GROUP_DEINIT,
#endif
CUI_INLINE_NOTIFY_BACK_WITHOUT_CHANGE,
CUI_INLINE_NOTIFY_IMAGE_TEXT_PEN_DOWN,
CUI_INLINE_NOTIFY_SELECT_FOCUS_CHANGED,
CUI_INLINE_NOTIFY_ATTACHMENT_FOCUS_CHANGED,
CUI_INLINE_NOTIFY_COLOR_SELECT_FOCUS_CHANGED,
CUI_INLINE_NOTIFY_USER_DEFINED_SELECT_SET_FOCUS,
CUI_INLINE_NOTIFY_PROGRESS_BAR_VALUE_CHANGED,
CUI_INLINE_NOTIFY_CHECKBOX_CHANGED,
CUI_INLINE_NOTIFY_RADIO_SELECTED,
CUI_INLINE_NOTIFY_ML_RDLY_HIGHLIGHT_LIST_CHANGE_INDEX,
CUI_INLINE_NOTIFY_ML_RDLY_HIGHLIGHT_LIST_CLICK
} cui_inline_event_notify_type_enum;
typedef enum
{
CUI_INLINE_USERDEFINEDSELECT_CUR,
CUI_INLINE_USERDEFINEDSELECT_PRE,
CUI_INLINE_USERDEFINEDSELECT_NEXT
} cui_inline_user_defined_select_highlight_enum;
typedef struct
{
/* DOM-NOT_FOR_SDK-BEGIN */
MMI_EVT_GROUP_PARAM_HEADER
/* DOM-NOT_FOR_SDK-END */
}cui_event_inline_common_struct;
/* notify event which contains cui_inline_event_notify_type_enum sub type */
typedef struct
{
/* DOM-NOT_FOR_SDK-BEGIN */
MMI_EVT_GROUP_PARAM_HEADER
/* DOM-NOT_FOR_SDK-END */
U8 event_type; /* event sub type */
U16 item_id; /* item id */
S32 param; /* reserve for extend */
S32 param_ext;
} cui_event_inline_notify_struct;
/* submit event struct */
typedef struct
{
/* DOM-NOT_FOR_SDK-BEGIN */
MMI_EVT_GROUP_PARAM_HEADER
/* DOM-NOT_FOR_SDK-END */
U16 item_id; /* item id */
U8 sofktey_type;
} cui_event_inline_submit_struct;
/* abort event struct */
typedef struct
{
/* DOM-NOT_FOR_SDK-BEGIN */
MMI_EVT_GROUP_PARAM_HEADER
/* DOM-NOT_FOR_SDK-END */
U16 item_id; /* item id */
} cui_event_inline_abort_struct;
/* csk press event struct */
typedef struct
{
/* DOM-NOT_FOR_SDK-BEGIN */
MMI_EVT_GROUP_PARAM_HEADER
/* DOM-NOT_FOR_SDK-END */
U16 item_id; /* item id */
} cui_event_inline_csk_press_struct;
/* set key event struct */
typedef struct
{
/* DOM-NOT_FOR_SDK-BEGIN */
MMI_EVT_GROUP_PARAM_HEADER
/* DOM-NOT_FOR_SDK-END */
U16 item_id; /* item id */
} cui_event_inline_set_key_struct;
/* pen down on imagetext's image event struct */
typedef struct
{
U16 image_index; /* highlight image index */
} cui_event_inline_image_text_pen_down_struct;
/* user defined selector highlight change event struct */
typedef struct
{
cui_inline_user_defined_select_highlight_enum locate_measure; /* current item, pre item, next item */
} cui_event_inline_user_defined_select_highlight_struct;
/* attachment highlight change event struct */
typedef struct
{
U8 * attach_index; /* attachment item index */
} cui_event_inline_attach_highlight_struct;
/*****************************************************************************
* Others
*****************************************************************************/
typedef struct
{
U16 num_of_info_box_rows;
void (*draw_info_callback) (S32 idx, S32 x1, S32 y1, S32 x2, S32 y2);
void (*hide_info_callback) (S32 idx);
BOOL is_draw_once;
}cui_inline_draw_top_info_struct;
/*****************************************************************************
* Extern Functions for Apps
*****************************************************************************/
/*****************************************************************************
* FUNCTION
* cui_inline_create
* DESCRIPTION
* Create inline CUI instance
* PARAMETERS
* parent_gid : [IN] parent gid
* inline_struct : [IN] items data for initialize inline cui
* RETURNS
* void
*****************************************************************************/
mmi_id cui_inline_create(mmi_id parent_gid, const cui_inline_struct* inline_struct);
#if defined(__MMI_INLINE_SLIM__) && defined(__MMI_FWUI_SLIM__)
#define INLINE_CUI_MEMORY_FROM_ASM
#endif
#ifdef INLINE_CUI_MEMORY_FROM_ASM
/*****************************************************************************
* FUNCTION
* cui_inline_asm_create
* DESCRIPTION
* Create inline CUI instance
* PARAMETERS
* parent_gid : [IN] parent gid
* inline_struct : [IN] items data for initialize inline cui
* app_id : [IN] app gid
* RETURNS
* void
*****************************************************************************/
mmi_id cui_inline_asm_create(mmi_id parent_gid, const cui_inline_struct* inline_struct,mmi_id app_id);
mmi_id cui_inline_adm_create(mmi_id parent_gid, const cui_inline_struct* inline_struct,KAL_ADM_ID app_adm_id);
mmi_id cui_inline_mem_create(mmi_id parent_gid, const cui_inline_struct* inline_struct,U16* memory_point);
#endif
/*****************************************************************************
* FUNCTION
* cui_inline_run
* DESCRIPTION
* Run inline CUI function.
* PARAMETERS
* inline_id : [IN] inline gid
* RETURNS
* void
*****************************************************************************/
void cui_inline_run(mmi_id inline_id);
/*****************************************************************************
* FUNCTION
* cui_inline_run_with_screen_id
* DESCRIPTION
* Run inline CUI function.
* PARAMETERS
* inline_id : [IN] inline gid
* screen_id : [IN] screen id
* RETURNS
* void
*****************************************************************************/
void cui_inline_run_with_screen_id(mmi_id inline_id, U16 screen_id);
/*****************************************************************************
* FUNCTION
* cui_inline_close
* DESCRIPTION
* close inline cui instance.
* PARAMETERS
* gid : [IN] inline gid
* RETURNS
* void
*****************************************************************************/
void cui_inline_close(mmi_id inline_gid);
/*****************************************************************************
* FUNCTION
* cui_inline_set_softkey_text
* DESCRIPTION
* set softkey text. when App want to set to inline cui default default, it will pass string_id = CUI_INLINE_SOFTKEY_DEFAULT_VALUE
* PARAMETERS
* gid : [IN] inline gid
* id : [IN] inline item id
* key : [IN] key type
* string_id : [IN] string id
* RETURNS
* void
*****************************************************************************/
S32 cui_inline_set_softkey_text(mmi_id gid, U16 id, WGUI_SOFTKEY_ENUM key, U16 string_id);
/*****************************************************************************
* FUNCTION
* cui_inline_set_softkey_icon
* DESCRIPTION
* set softkey icon. when App want to set to inline cui default default, it will pass string_id = CUI_INLINE_SOFTKEY_DEFAULT_VALUE
* PARAMETERS
* gid : [IN] inline gid
* id : [IN] inline item id
* key : [IN] key type
* image_id : [IN] image id
* RETURNS
* void
*****************************************************************************/
S32 cui_inline_set_softkey_icon(mmi_id gid, U16 id, WGUI_SOFTKEY_ENUM key, U16 image_id);
/*****************************************************************************
* FUNCTION
* cui_inline_set_title
* DESCRIPTION
* set inline CUI screen title.
* PARAMETERS
* gid : [IN] inline gid
* string_id : [IN] string id
* image_id : [IN] image id
* RETURNS
* void
*****************************************************************************/
void cui_inline_set_title(mmi_id gid, U16 string_id, U16 image_id);
/*****************************************************************************
* FUNCTION
* cui_inline_set_title_string
* DESCRIPTION
* set inline CUI screen title string. This function will be priority to cui_inline_set_title.
* PARAMETERS
* gid : [IN] inline gid
* s : [IN] string pointer
* RETURNS
* void
*****************************************************************************/
void cui_inline_set_title_string(mmi_id gid, UI_string_type s);
/*****************************************************************************
* FUNCTION
* cui_inline_set_title_string_with_string_id
* DESCRIPTION
* set inline CUI screen title string. This function will be priority to cui_inline_set_title.
* PARAMETERS
* gid : [IN] inline gid
* string_id : [IN] string id
* RETURNS
* void
*****************************************************************************/
void cui_inline_set_title_string_with_string_id(mmi_id gid, U16 string_id);
/*****************************************************************************
* FUNCTION
* cui_inline_set_title_icon
* DESCRIPTION
* set inline CUI screen title icon.
* PARAMETERS
* gid : [IN] inline gid
* s : [IN] image id
* RETURNS
* void
*****************************************************************************/
void cui_inline_set_title_icon(mmi_id gid, U16 image_id);
/*****************************************************************************
* FUNCTION
* cui_inline_set_characters_filter
* DESCRIPTION
* set ime char filter.
* PARAMETERS
* gid : [IN] inline gid
* is_allowed : [IN] if allowed or not
* characters_list : [IN] characters list.
* RETURNS
* void
*****************************************************************************/
void cui_inline_set_characters_filter(mmi_id gid, MMI_BOOL is_allowed, const UI_character_type *characters_list);
#ifdef __MMI_TOUCH_SCREEN__
/*****************************************************************************
* FUNCTION
* cui_inline_disable_handwriting
* DESCRIPTION
* disable handwriting.
* PARAMETERS
* gid : [IN] inline gid
* RETURNS
* void
*****************************************************************************/
void cui_inline_disable_handwriting(mmi_id gid);
/*****************************************************************************
* FUNCTION
* cui_inline_set_imm_events
* DESCRIPTION
* set imm events.
* PARAMETERS
* gid : [IN] inline gid
* is_allowed : [IN] if allowed or not
* disable_event_keys_list : [IN] key list
* RETURNS
* void
*****************************************************************************/
mmi_imm_message_id_enum cui_inline_set_imm_events(mmi_id gid, MMI_BOOL is_allowed, const gui_virtual_keyboard_pen_enum *disable_event_keys_list);
#endif
/*****************************************************************************
* FUNCTION
* cui_inline_set_value
* DESCRIPTION
* set item value.
* For Caption, Displayonly, Textedit, Fullscreen, Imagetext, MultilineEdit, MultilineRdonly: value type is U16* , means
* text buffer.
* For Selector, Color Selector, value type is U8, it means highlight index.
* For DOW, value type is U8*, it means status list of day weeks.
* For Date, value type is cui_inline_item_date_time_struct.
* For Time, value type is cui_inline_item_time_struct.
* For Time_period, value type is cui_inline_item_time_period_struct.
* For Ip4, value type is cui_inline_item_ip4_struct.
* For Attachment, Userdefined Selector, this function is meanless.
* PARAMETERS
* gid : [IN] inline gid
* id : [IN] inline item id
* value : [IN] item setting value
* RETURNS
* void
*****************************************************************************/
S32 cui_inline_set_value(mmi_id gid, U16 id, void* value);
/*****************************************************************************
* FUNCTION
* cui_inline_get_value
* DESCRIPTION
* get item value.
* For Caption, Displayonly, Textedit, Fullscreen, Imagetext, MultilineEdit, MultilineRdonly: value type is U16* , means
* text buffer.
* For Selector, Color Selector, value type is U8*, it means highlight index.
* For DOW, value type is U8*, it means status list of day weeks.
* For Date, value type is cui_inline_item_date_time_struct.
* For Time, value type is cui_inline_item_time_struct.
* For Time_period, value type is cui_inline_item_time_period_struct.
* For Ip4, value type is cui_inline_item_ip4_struct.
* For Attachment, Userdefined Selector, this function is meanless.
* PARAMETERS
* gid : [IN] inline gid
* id : [IN] inline item id
* value : [OUT] item value.
* RETURNS
* void
*****************************************************************************/
S32 cui_inline_get_value(mmi_id gid, U16 item_id, void* value);
/*****************************************************************************
* FUNCTION
* cui_inline_set_text_len
* DESCRIPTION
* set text length
* PARAMETERS
* gid : [IN] inline gid
* id : [IN] inline item id
* len : [IN] text length
* RETURNS
* void
*****************************************************************************/
S32 cui_inline_set_text_len(mmi_id gid, U16 item_id, U32 len);
/*****************************************************************************
* FUNCTION
* cui_inline_get_text_len
* DESCRIPTION
* get text length
* PARAMETERS
* gid : [IN] inline gid
* id : [IN] inline item id
* RETURNS
* void
*****************************************************************************/
U32 cui_inline_get_text_len(mmi_id gid, U16 id);
/*****************************************************************************
* FUNCTION
* cui_inline_set_item_attributes
* DESCRIPTION
* set item attributes
* PARAMETERS
* gid : [IN] inline gid
* id : [IN] inline item id
* operation : [IN] set or reset
* flag : [IN] inline attribute flags
* RETURNS
* void
*****************************************************************************/
S32 cui_inline_set_item_attributes(mmi_id gid, U16 id, U8 operation, U32 flag);
/*****************************************************************************
* FUNCTION
* cui_inline_get_item_attributes
* DESCRIPTION
* get item attributes
* PARAMETERS
* gid : [IN] inline gid
* id : [IN] inline item id
* operation : [IN] set or reset
* RETURNS
* void
*****************************************************************************/
U32 cui_inline_get_item_attributes(mmi_id gid, U16 id);
/*****************************************************************************
* FUNCTION
* cui_inline_set_screen_attributes
* DESCRIPTION
* set screen attributes
* PARAMETERS
* gid : [IN] inline gid
* operation : [IN] set or reset
* flag : [IN] inline attribute flags
* RETURNS
* void
*****************************************************************************/
void cui_inline_set_screen_attributes(mmi_id gid, U8 operation, U32 flag);
/*****************************************************************************
* FUNCTION
* cui_inline_get_screen_attributes
* DESCRIPTION
* get screen attributes
* PARAMETERS
* gid : [IN] inline gid
* RETURNS
* void
*****************************************************************************/
U32 cui_inline_get_screen_attributes(mmi_id gid);
/*****************************************************************************
* FUNCTION
* cui_inline_set_icon_list
* DESCRIPTION
* set inline item icon list
* PARAMETERS
* gid : [IN] inline gid
* icon_list : [IN] icon list
* RETURNS
* void
*****************************************************************************/
void cui_inline_set_icon_list(mmi_id gid, U16 *icon_list);
/*****************************************************************************
* FUNCTION
* cui_inline_insert_item
* DESCRIPTION
* insert an item dynamically.
* PARAMETERS
* gid : [IN] inline gid
* pre_id : [IN] function will insert item to the position which is mark by pre_id.
* new_item : [IN] inserted item's data structure.
* RETURNS
* void
*****************************************************************************/
S32 cui_inline_insert_item(mmi_id gid, U16 pre_id, cui_inline_set_item_struct* new_item);
/*****************************************************************************
* FUNCTION
* cui_inline_delete_item
* DESCRIPTION
* delete an item dynamically.
* PARAMETERS
* gid : [IN] inline gid
* item_id : [IN] delete item which is marked by item_id.
* RETURNS
* void
*****************************************************************************/
S32 cui_inline_delete_item(mmi_id gid, U16 item_id);
/*****************************************************************************
* FUNCTION
* cui_inline_set_input_buffer_allocator
* DESCRIPTION
* set inline input buffer memory malloc and free function.
* PARAMETERS
* gid : [IN] inline gid
* mallocFuncPtr : [IN] malloc function
* mfreeFuncPtr : [IN] free function
* RETURNS
* void
*****************************************************************************/
void cui_inline_set_input_buffer_allocator(mmi_id gid, mmi_malloc_func_ptr mallocFuncPtr, mmi_mfree_func_ptr mfreeFuncPtr);
/*****************************************************************************
* FUNCTION
* cui_inline_redraw_item
* DESCRIPTION
* redraw inline item
* PARAMETERS
* gid : [IN] inline gid
* id : [IN] inline item id
* RETURNS
* void
*****************************************************************************/
//void cui_inline_redraw_item(mmi_id gid, S32 id);
/*****************************************************************************
* FUNCTION
* cui_inline_redraw_screen
* DESCRIPTION
* update inline screen
* PARAMETERS
* gid : [IN] inline gid
* RETURNS
* void
*****************************************************************************/
void cui_inline_redraw_screen(mmi_id gid);
/*****************************************************************************
* FUNCTION
* cui_inline_set_item_text_edit_default_text
* DESCRIPTION
* set item default text.
* PARAMETERS
* gid : [IN] inline gid
* id : [IN] inline item id
* default_text_id : [IN] default text id.
* RETURNS
* void
*****************************************************************************/
void cui_inline_set_item_text_edit_default_text(mmi_id gid, U16 item_id, U16 default_text_id);
/*****************************************************************************
* FUNCTION
* cui_inline_set_item_text_edit_default_text
* DESCRIPTION
* set item default text.
* PARAMETERS
* gid : [IN] inline gid
* id : [IN] inline item id
* default_text_id : [IN] default text id.
* RETURNS
* void
*****************************************************************************/
void cui_inline_set_item_text_edit_default_text_with_string(mmi_id gid, U16 item_id, U8 *default_text);
/*****************************************************************************
* FUNCTION
* cui_inline_set_item_select
* DESCRIPTION
* Set selector item attributes when initialize inline cui instance.
* PARAMETERS
* gid : [IN] inline gid
* id : [IN] inline item id
* n_items : [In] content count
* highlighted_item : [In] highlight content index
* RETURNS
* void
*****************************************************************************/
S32 cui_inline_set_item_select(mmi_id gid, U16 item_id, S32 n_items, PU8 *list_of_items, U8 highlighted_item);
/*****************************************************************************
* FUNCTION
* cui_inline_set_highlight_item
* DESCRIPTION
* change highlight item dynamically.
* PARAMETERS
* gid : [IN] inline gid
* item_id : [IN] highlight inline item id
* RETURNS
* void
*****************************************************************************/
void cui_inline_set_highlight_item(mmi_id gid, U16 item_id);
/*****************************************************************************
* FUNCTION
* cui_fseditor_set_parent_data
* DESCRIPTION
* Set parent data. App can set parent data and retrieve it by cui_fseditor_get_parent_data
* PARAMETERS
* fseditor_gid :[IN] FSEditor CUI Group ID
* parent_data :[IN] Parent data
* RETURNS
* void
*****************************************************************************/
void cui_inline_set_parent_data(mmi_id gid, U32 parent_data);
/*****************************************************************************
* FUNCTION
* cui_fseditor_get_parent_data
* DESCRIPTION
* Get parent data. App can set parent data by cui_fseditor_set_parent_data
* PARAMETERS
* gid :[IN] Inline CUI Group ID
* RETURNS
* U32
*****************************************************************************/
U32 cui_inline_get_parent_data(mmi_id gid);
/*****************************************************************************
* FUNCTION
* cui_inline_get_default_text_id
* DESCRIPTION
* Get item default text id.
* PARAMETERS
* gid : [IN] Inline CUI Group ID
* item_id : [IN] Inline CUI item id
* RETURNS
* U16
*****************************************************************************/
U16 cui_inline_get_default_text_id(mmi_id gid, U16 item_id);
/*****************************************************************************
* FUNCTION
* cui_inline_set_default_icon_style
* DESCRIPTION
* Draw an icon on inside of singleline item
* PARAMETERS
* gid : [IN]
* picon : [IN]
* RETURNS
* void
*****************************************************************************/
void cui_inline_set_default_icon_style(mmi_id gid, PU8 picon);
/*****************************************************************************
* FUNCTION
* cui_inline_draw_top_info_box
* DESCRIPTION
* Self draw top of screen info.
* PARAMETERS
* gid : [IN] Inline CUI Group ID
* draw_struct : [IN] draw top info struct
* RETURNS
* void
*****************************************************************************/
void cui_inline_draw_top_info_box(mmi_id gid, cui_inline_draw_top_info_struct *draw_struct);
/*****************************************************************************
* FUNCTION
* cui_inline_set_item_icon
* DESCRIPTION
* Set item icon on side of item.
* PARAMETERS
* gid : [IN] Inline CUI Group ID
* item_id : [IN] icon id
* RETURNS
* void
*****************************************************************************/
S32 cui_inline_set_item_icon(mmi_id gid, U16 item_id, U16 icon_id);
/*****************************************************************************
* FUNCTION
* cui_inline_set_fullscreen_edit_title_icon
* DESCRIPTION
*
* PARAMETERS
* gid : [IN]
* draw_struct : [IN]
* RETURNS
* void
*****************************************************************************/
void cui_inline_set_fullscreen_edit_title_icon(mmi_id gid, U16 item_id, U16 icon);
/*****************************************************************************
* FUNCTION
* cui_inline_multiline_append_string
* DESCRIPTION
* Append string for multiline edit item when it is in history.
* PARAMETERS
* gid : [IN]
* item_id : [IN]
* RETURNS
* void
*****************************************************************************/
void cui_inline_multiline_append_string(
mmi_id gid,
U16 item_id,
U8 *string);
/*****************************************************************************
* FUNCTION
* cui_inline_get_item_id_by_index
* DESCRIPTION
* Get item id by item index.
* PARAMETERS
* gid : [IN]
* item_index : [IN]
* RETURNS
* U16
*****************************************************************************/
U16 cui_inline_get_item_id_by_index(mmi_id gid, U16 item_index);
/*****************************************************************************
* FUNCTION
* cui_inline_get_instance_item_count
* DESCRIPTION
* Get item count of instance.
* PARAMETERS
* gid [IN] : Inline CUI Group ID
* RETURNS
* U8
*****************************************************************************/
U8 cui_inline_get_instance_item_count(mmi_id gid);
/*****************************************************************************
* FUNCTION
* cui_inline_lock_main_screen
* DESCRIPTION
*
* PARAMETERS
* string_buffer [?]
* hours_buffer [?]
* min_buffer [?]
* am_pm_flag [?]
* RETURNS
* void
*****************************************************************************/
void cui_inline_lock_main_screen(mmi_id gid);
/*****************************************************************************
* FUNCTION
* cui_inline_lock_main_screen
* DESCRIPTION
*
* PARAMETERS
* string_buffer [?]
* hours_buffer [?]
* min_buffer [?]
* am_pm_flag [?]
* RETURNS
* void
*****************************************************************************/
void cui_inline_unlock_main_screen(mmi_id gid);
/*****************************************************************************
* FUNCTION
* cui_inline_set_date_boundary
* DESCRIPTION
* Set date boundary.
* PARAMETERS
* gid [IN] Inline CUI Group ID
* RETURNS
* void
*****************************************************************************/
void cui_inline_set_date_boundary(mmi_id gid, U16 item_id, S32 date_year_max, S32 date_year_min, S32 date_month_max, S32 date_month_min);
/*****************************************************************************
* FUNCTION
* cui_inline_set_date_boundary
* DESCRIPTION
* Set date boundary.
* PARAMETERS
* gid [IN] Inline CUI Group ID
* RETURNS
* void
*****************************************************************************/
void cui_inline_set_input_method(
mmi_id gid,
U16 item_id,
U32 input_type,
mmi_imm_input_mode_enum *required_input_mode_set,
S16 input_ext_type);
/*****************************************************************************
* FUNCTION
* cui_inline_set_ml_rdly_set_hilite_list
* DESCRIPTION
* Set multiline readonly item highight list.
* PARAMETERS
* gid [IN] : Inline CUI Group ID
* RETURNS
* U8
*****************************************************************************/
void cui_inline_set_ml_rdly_set_hilite_list(mmi_id gid, U16 item_id, cui_inline_set_multiline_rd_highlight_list_struct *highlight_list);
/*****************************************************************************
* FUNCTION
* cui_inline_set_item_radio_string
* DESCRIPTION
* set radio item string
* PARAMETERS
* gid [IN]
* item_id [IN]
* curr_index [IN] current item index of radio list.
* text_p [IN] the text string for current radio item.
* RETURNS
* return 1 or CUI_INLINE_RETURN_ERROR
*****************************************************************************/
S32 cui_inline_set_item_radio_string(mmi_id gid, U16 item_id, S32 curr_index, PU8 text_p);
/*****************************************************************************
* FUNCTION
* cui_inline_set_item_radio_select
* DESCRIPTION
* set radio list flag for select
* PARAMETERS
* gid [IN]
* item_id [IN]
* selected_item [IN] selected item index of radio list.
* RETURNS
* return 0, 1 or CUI_INLINE_RETURN_ERROR
*****************************************************************************/
S32 cui_inline_set_item_radio_select(mmi_id gid, U16 item_id, S32 selected_item);
/*****************************************************************************
* FUNCTION
* cui_inline_set_item_radio_string
* DESCRIPTION
* set radio item string
* PARAMETERS
* gid [IN]
* item_id [IN]
* curr_index [IN] current item index of radio list.
* text_p [IN] the text string for current radio item.
* RETURNS
* return 1 or CUI_INLINE_RETURN_ERROR
*****************************************************************************/
S32 cui_inline_set_item_radio_string(mmi_id gid, U16 item_id, S32 curr_index, PU8 text_p);
#endif /* MMI_INLINECUIGPROT_H */