custom_wap_config.h 38.4 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
/*****************************************************************************
*  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) 2001
*
*****************************************************************************/

/*****************************************************************************
 *
 * Filename:
 * ---------
 *   custom_wap_config.h
 *
 * Project:
 * --------
 *   Maui_Software
 *
 * Description:
 * ------------
 *   The file contains WAP/MMS configuration constant.
 *
 * 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!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 *
 *
 * removed!
 * removed!
 *
 *
 * removed!
 * removed!
 *
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 *
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 *
 *
 * removed!
 * removed!
 * removed!
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 *
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 *
 *
 * removed!
 * removed!
 *
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * 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 _CUSTOM_WAP_CONFIG_H
#define _CUSTOM_WAP_CONFIG_H

#include "MMI_features.h"
#include "kal_general_types.h"


/*Common Settings*/
/* Browser Settings: Start*/
/* Browser Settings: End*/

/* MMS Settings: Start*/
#ifndef WAP_CUSTOM_CFG_MAX_MMS_WARNING_MSG
#define WAP_CUSTOM_CFG_MAX_MMS_WARNING_MSG 100
#endif

#ifndef WAP_CUSTOM_CFG_MAX_NBR_MMS_MSG
#define WAP_CUSTOM_CFG_MAX_NBR_MMS_MSG 101
#endif

#ifndef WAP_CUSTOM_CFG_MAX_NBR_MMS_MSG_ON_CARD 
#if defined( __MMI_MMS_MEMORY_CARD_STORAGE_SUPPORT__)
#define WAP_CUSTOM_CFG_MAX_NBR_MMS_MSG_ON_CARD  100
#else
#define WAP_CUSTOM_CFG_MAX_NBR_MMS_MSG_ON_CARD  0
#endif
#endif

#ifndef WAP_CUSTOM_CFG_MAX_MMS_SLIDES
#define WAP_CUSTOM_CFG_MAX_MMS_SLIDES 20
#endif

#ifndef WAP_CUSTOM_CFG_MAX_MMS_ADDRESS
#if defined( __OP01__ )
#define WAP_CUSTOM_CFG_MAX_MMS_ADDRESS 50
#else
#define WAP_CUSTOM_CFG_MAX_MMS_ADDRESS 20
#endif
#endif

#ifndef WAP_CUSTOM_CFG_MAX_MMS_ATTACHMENT
#define WAP_CUSTOM_CFG_MAX_MMS_ATTACHMENT 3
#endif

#ifndef WAP_CUSTOM_CFG_MAX_MMS_GET_RETRY
#define WAP_CUSTOM_CFG_MAX_MMS_GET_RETRY   2
#endif

#ifndef WAP_CUSTOM_CFG_MAX_MMS_POST_MSG_RETRY
#define WAP_CUSTOM_CFG_MAX_MMS_POST_MSG_RETRY   3       /* Customer can reduce this value to zero, if they don't want resend MMS when error occurs. */
#endif

#ifndef WAP_CUSTOM_CFG_MAX_MMS_POST_PDU_RETRY
#define WAP_CUSTOM_CFG_MAX_MMS_POST_PDU_RETRY   2       /* This value isn't recommeded to reduce. */
#endif

#ifndef WAP_CUSTOM_CFG_MMS_GET_TIMEOUT
#define WAP_CUSTOM_CFG_MMS_GET_TIMEOUT   1200    /* 120 seconds */
#endif

#ifndef WAP_CUSTOM_CFG_MMS_POST_TIMEOUT
#define WAP_CUSTOM_CFG_MMS_POST_TIMEOUT   1200  /* 120 seconds, this value isn't recommeded to reduce. */
#endif

#ifndef WAP_CUSTOM_CFG_MAX_MMS_CACHE_PUSH_NUM
#define WAP_CUSTOM_CFG_MAX_MMS_CACHE_PUSH_NUM 10
#endif

#ifndef WAP_CUSTOM_CFG_MAX_MMS_MSG_SIZE
#define WAP_CUSTOM_CFG_MAX_MMS_MSG_SIZE   (300*1024)
#endif

#ifndef WAP_CUSTOM_MMS_POSTCARD_SERVER_ADDR
#define WAP_CUSTOM_MMS_POSTCARD_SERVER_ADDR "0000000000"    /* postcard server actual address should replace this. */
#endif

#ifndef WAP_CUSTOM_CFG_MMS_DELTA_RETRIVAL_SIZE
#define WAP_CUSTOM_CFG_MMS_DELTA_RETRIVAL_SIZE 0
#endif

#ifdef __MMI_MMS_CALC_MSG_SIZE_BY_USER_ELEMENTS__
#ifndef WAP_CUSTOM_CFG_MMS_USER_ELEMENT_HEADER_SIZE
#define WAP_CUSTOM_CFG_MMS_USER_ELEMENT_HEADER_SIZE (100 * 1024)
#endif  /* WAP_CUSTOM_CFG_MMS_USER_ELEMENT_HEADER_SIZE */
#endif  /* __MMI_MMS_CALC_MSG_SIZE_BY_USER_ELEMENTS__*/
/* MMS Settings: End*/


#ifdef OBIGO_Q03C    /* Obigo only */

#ifndef WAP_CUSTOM_CFG_PUSH_MAX_NO_OF_MSG
#define WAP_CUSTOM_CFG_PUSH_MAX_NO_OF_MSG       15
#endif

#endif /* OBIGO_Q03C */

#ifdef OBIGO_Q03C_BROWSER    /* Obigo only */
/* ==================================== Obigo Only ======================================= */

/*
 * This would increase the WAP ASM pool to 500 KB.
 * Over and above that this would also require additional 35KB of system RAM.
 */
/*
 * If WAP_CUSTOM_CFG_BROWSER_ASM, is NON 0, then 
 * large mem pool will have no impact, as customer has set specific value for ASM.
 * if WAP_CUSTOM_CFG_BROWSER_ASM, is 0 then
 * Previous configuration will work as is.
 */
#if defined(__FLAVOR_OBIGOQ03C_SLIM__) || defined(__FLAVOR_OBIGOQ03C_SLIM_DEBUG__)
#define WAP_CUSTOM_CFG_SUPPORT_LARGE_MEM_POOL
#endif
/*
 * Set WAP_CUSTOM_CFG_BROWSER_ASM to 0 to use previous ASM configuration method
 * set it to any desired value to use a particular value of choice.
 */
#define WAP_CUSTOM_CFG_BROWSER_ASM	1024*1024

/*
 * WAP supports background image has the defect.
 * The marquee donesn't work well when enable backgound image.
 * The marguee's background color is white and overlap the background image.
 */
#define WAP_CUSTOM_CFG_SUPPORT_BACKGROUND_IMAGE

/*
 * The Minimum width and Height should be defined to such a value that it sould not effect the 
 * performance of the overall page rendering.
 * If both the width and height of the downloaded Background Image is less than the defined
 * value then the Background Image will be IGNORED by the Browser.
 * If WAP_CUSTOM_CFG_SUPPORT_MIN_BACKGROUND_IMAGE_WIDTH is set to 0 then then there will be no MIN WIDTH Limit
 * If WAP_CUSTOM_CFG_SUPPORT_MIN_BACKGROUND_IMAGE_HEIGHT is set to 0 then then there will be no MIN HEIGHT Limit
 */
#define WAP_CUSTOM_CFG_SUPPORT_MIN_BACKGROUND_IMAGE_WIDTH   5
#define WAP_CUSTOM_CFG_SUPPORT_MIN_BACKGROUND_IMAGE_HEIGHT  5

/*
 * The Maximum width and Height should be defined to such a value that it sould not effect the 
 * performance of the overall page rendering.
 * If both the width and height of the downloaded Background Image is More than the defined
 * value then the Background Image will be IGNORED by the Browser.
 * If WAP_CUSTOM_CFG_SUPPORT_MAX_BACKGROUND_IMAGE_WIDTH is set to 0 then there will be no MAX WIDTH Limit
 * If WAP_CUSTOM_CFG_SUPPORT_MAX_BACKGROUND_IMAGE_HEIGHT is set to 0 then there will be no MAX HEIGHT Limit
 */
#define WAP_CUSTOM_CFG_SUPPORT_MAX_BACKGROUND_IMAGE_WIDTH   5000
#define WAP_CUSTOM_CFG_SUPPORT_MAX_BACKGROUND_IMAGE_HEIGHT  5000




/* __CUSTPACK_MULTIBIN     Johnnie   BEGIN */
#if 0
#ifndef WAP_SUPPORT
/* 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
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#ifndef WAP_SUPPORT
#ifndef WAP_CUSTOM_CFG_N_WAP_PROFILES
/* under construction !*/
#endif
/* under construction !*/
#ifndef WAP_CUSTOM_CFG_N_MMS_PROFILES
/* under construction !*/
#endif
#endif
/* under construction !*/
#ifndef WAP_CUSTOM_CFG_N_NBR_BOOKMARKS
/* under construction !*/
#endif
/* under construction !*/
#ifndef WAP_CUSTOM_CFG_N_NBR_TRUSTLISTS
/* under construction !*/
#endif
/* under construction !*/
#ifndef CUSTOM_WAP_TRUSTLIST_LEN
/* under construction !*/
#endif
/* under construction !*/
#ifndef WAP_CUSTOM_CFG_N_ROOT_CA
/* under construction !*/
#endif
#endif

#ifndef WAP_CUSTOM_CFG_MAX_CACHE_SIZE
#define WAP_CUSTOM_CFG_MAX_CACHE_SIZE  (100*1024)
#endif

#ifndef WAP_CUSTOM_CFG_DEFAULT_UA_HEADER
#define WAP_CUSTOM_CFG_DEFAULT_UA_HEADER  "MAUI_WAP_Browser"
#endif

#ifndef WAP_CUSTOM_CFG_DEFAULT_UA_PROF_URL
#define WAP_CUSTOM_CFG_DEFAULT_UA_PROF_URL   ""
#endif

#ifdef __OP01__
  #ifndef WAP_CUSTOM_CFG_DEFAULT_BROWSE_TIMEOUT
  #define WAP_CUSTOM_CFG_DEFAULT_BROWSE_TIMEOUT   30
  #endif
#else
  #ifndef WAP_CUSTOM_CFG_DEFAULT_BROWSE_TIMEOUT
  #define WAP_CUSTOM_CFG_DEFAULT_BROWSE_TIMEOUT   300
  #endif
#endif

/*Maximum number of URLs that can be displayed in "Input Address" list.*/
/*Its minimum value should be greater than zero.*/
#define CUSTOM_WAP_CFG_N_NBR_HISTORY      10

/*It defines the maximum number of search items that can be stored in the nvram*/
#define CUSTOM_WAP_CFG_SEARCH_ITEMS_COUNT      10

/*It defines the maximum number of shortcuts in the global list that can be stored in the nvram*/
#define CUSTOM_WAP_CFG_N_NBR_GLOBAL_SHORTCUTS      10

/*It defines the maximum number of shortcuts in the local list that can be stored in the nvram*/
#define CUSTOM_WAP_CFG_N_NBR_LOCAL_SHORTCUTS      10

/*It defines the default option value for enabling cache*/
/*(0 --> Disable, 1 --> Enable)*/
#define WAP_CUSTOM_CFG_DEFAULT_CACHE				1 /*wap_bam_setting_val_cache_enable*/

/*It defines the default option value for enabling cookie*/
/*(0 --> Disable, 1 --> Enable)*/
#define WAP_CUSTOM_CFG_DEFAULT_COOKIE				1 /*wap_bam_setting_val_cookies_enable*/

/*It defines the default option value to display images(if any) on the rendered page*/
/*(0 --> ALways, 2 --> Never)*/
#define WAP_CUSTOM_CFG_DEFAULT_SHOW_IMAGE			0 /*wap_bam_setting_val_images_always*/


/*It defines the default option value for Browser search Engine*/
/*(0 --> BAIDU, 1 --> GOOGLE, 2 --> YAHOO, 2 --> BING)*/
#ifdef __OP01__
  #define WAP_CUSTOM_CFG_DEFAULT_SEARCH_ENGINE		0 /*BAIDU*/
#else
  #define WAP_CUSTOM_CFG_DEFAULT_SEARCH_ENGINE		1 /*GOOGLE*/
#endif

/*It defines the default option value for enabling History*/
/*(0 --> Disable, 1 --> Enable)*/
#define WAP_CUSTOM_CFG_DEFAULT_HISTORY				1 /* Enable */

/*It defines the default option value for enabling History*/
/*(0 --> Disable, 1 --> Enable)*/
#define WAP_CUSTOM_CFG_DEFAULT_USE_BAIDU_PROXY		0 /* Disable */

/*It defines the default option value to enabled always use Wifi setting*/
/*(0 --> Disabled, 1 --> Enabled)*/
#define WAP_CUSTOM_CFG_DEFAULT_WIFI_ONLY			0 /*wap_bam_setting_val_images_always*/

/*It defines the default option value for enabling Private Mode*/
/*(0 --> Disable, 1 --> Enable)*/
#define WAP_CUSTOM_CFG_DEFAULT_PRIVATE_MODE				0 /* Disable */

/* The maximum number of shortcuts supported in the launch page */
#ifndef CUSTOM_WAP_CFG_N_NBR_SHORTCUTS
#define CUSTOM_WAP_CFG_N_NBR_SHORTCUTS           9
#endif

#ifdef __MMI_OP12_BRW_EMBEDDED_LINKS__
#define CUSTOM_WAP_EMBEDDED_LINK_URL_LEN 129
#define WAP_CUSTOM_CFG_N_NBR_EMBEDDED_LINKS 30
#endif /* __MMI_OP12_BRW_EMBEDDED_LINKS__ */ 

/* Vodafone embedded links*/
#ifdef __MMI_OP12_BRW_EMBEDDED_LINKS__
typedef struct
{
    kal_uint8 empty;
    kal_uint8 embed_link_url[CUSTOM_WAP_EMBEDDED_LINK_URL_LEN];
} custom_embed_link_content_struct;

typedef struct
{
    kal_uint8 max_n_embed_links;
    custom_embed_link_content_struct embed_link[WAP_CUSTOM_CFG_N_NBR_EMBEDDED_LINKS];
} custom_wap_embed_link_struct;
#endif /* __MMI_OP12_BRW_EMBEDDED_LINKS__ */ 

/*It defines the default option value for the Homepage Settings*/
/*(1 --> User Defined Homepage, 0 --> Active Profile Homepage)*/
#ifdef __OP01__
#define WAP_CUSTOM_CFG_DEFAULT_HOMEPAGE				0 /*Active Profile*/
#else
#define WAP_CUSTOM_CFG_DEFAULT_HOMEPAGE				1 /*User Defined*/
#endif
/*It defines the maximum number of bookmark file and folders that can be created.*/
#ifdef __LOW_COST_SUPPORT_COMMON__
#define WAP_CUSTOM_CFG_BRW_BOOKMARK_MAX_COUNT 		10
#else
#define WAP_CUSTOM_CFG_BRW_BOOKMARK_MAX_COUNT		30
#endif
/*
 *  Defines the set of natural languages that are preferred by the browser.
 *  This information will be sent in HTTP ACCEPT-LANGUAGE header which is useful
 *  to multilingual sites for deciding the best language to serve to the client.
 *
 *  Just define the preference of language in order (Higher preference <--> lower preference)
 *  Do not assign the quality value, browser will assign the quality value automatically.
 *  
 *  For example, if you prefer zh-TW than en-US and prefer en-US than zh-CN, define the macro as below
 *  #define WAP_COMMON_CFG_ACCEPT_LANGUAGE_PREFERENCE "zh-TW,en-US,zh-CN"
 */
#define WAP_COMMON_CFG_ACCEPT_LANGUAGE_PREFERENCE  "zh-tw,zh-cn,en-US"

#ifndef WAP_CUSTOM_CFG_PUSH_MAX_NO_OF_MSG
#define WAP_CUSTOM_CFG_PUSH_MAX_NO_OF_MSG       15
#endif

#if 0
/* under construction !*/
#ifndef WAP_CUSTOM_CFG_PUSH_SET_ENABLE_PUSH
/* under construction !*/
#endif
/* under construction !*/
#ifndef WAP_CUSTOM_CFG_PUSH_SET_TRUST_SETTING
/* under construction !*/
#endif
/* under construction !*/
#ifndef WAP_CUSTOM_CFG_PUSH_SET_SL_SETTING
/* under construction !*/
#endif
#endif

#ifndef WAP_CUSTOM_CFG_WAP_KEY_URL
#define WAP_CUSTOM_CFG_WAP_KEY_URL              ""
#endif

#if defined(OBIGO_Q03C_MMS_V01)

#ifndef WAP_CUSTOM_CFG_DEFAULT_MMS_UA_HEADER
#define WAP_CUSTOM_CFG_DEFAULT_MMS_UA_HEADER "MAUI MMS User Agent"
#endif

#ifndef WAP_CUSTOM_CFG_MAX_MMS_MSG_SIZE
#define WAP_CUSTOM_CFG_MAX_MMS_MSG_SIZE   (300*1024)
#endif


#ifndef WAP_CUSTOM_CFG_MMS_SLIDE_DURATION
#define WAP_CUSTOM_CFG_MMS_SLIDE_DURATION 8000  /* ms (unused) */
#endif

#ifndef WAP_CUSTOM_CFG_MMS_IMMED_RETRIEVAL_MODE
#define WAP_CUSTOM_CFG_MMS_IMMED_RETRIEVAL_MODE 1       /* 0: auto, 1: deferred, 2: restricted (unused) */
#endif

#ifndef WAP_CUSTOM_CFG_MMS_ROAM_RETRIEVAL_MODE
#define WAP_CUSTOM_CFG_MMS_ROAM_RETRIEVAL_MODE 1        /* 0: auto, 1: deferred, 2: restricted (unused) */
#endif

#ifndef WAP_CUSTOM_CFG_MMS_ALLOW_ADVERTIMSEMENT
#define WAP_CUSTOM_CFG_MMS_ALLOW_ADVERTIMSEMENT 1       /* 0: no, 1: yes (unused) */
#endif

#ifndef WAP_CUSTOM_CFG_MMS_ALLOW_ANONYMOUS
#define WAP_CUSTOM_CFG_MMS_ALLOW_ANONYMOUS 1    /* 0: no, 1: yes (unused) */
#endif

#ifndef WAP_CUSTOM_CFG_MMS_REQ_DELIVERY_REPORT
#define WAP_CUSTOM_CFG_MMS_REQ_DELIVERY_REPORT 1        /* 0: no, 1: yes (unused) */
#endif

#ifndef WAP_CUSTOM_CFG_MMS_REQ_READ_REPORT
#define WAP_CUSTOM_CFG_MMS_REQ_READ_REPORT 1    /* 0: no, 1: yes (unused) */
#endif

#ifndef WAP_CUSTOM_CFG_MMS_SEND_DELIVERY_REPORT
#define WAP_CUSTOM_CFG_MMS_SEND_DELIVERY_REPORT 1       /* 0: no, 1: yes (unused) */
#endif

#ifndef WAP_CUSTOM_CFG_MMS_SEND_READ_REPORT
#define WAP_CUSTOM_CFG_MMS_SEND_READ_REPORT 1   /* 0: no, 1: yes (unused) */
#endif

#ifndef WAP_CUSTOM_CFG_MMS_VERSION
#define WAP_CUSTOM_CFG_MMS_VERSION 1    /* 0: default, 1: 1.0, 2: 1.1, 3: latest version (unused) */
#endif

#ifndef WAP_CUSTOM_CFG_MMS_RETR_SIZE_FILTER
#define WAP_CUSTOM_CFG_MMS_RETR_SIZE_FILTER  0  /* 0: disable, 1: enable */
#endif

#endif /*OBIGO_Q03C_MMS_V01*/

/* the following 2 constant are deserved from constant above and unnecessary to to modify */
#if 0
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#ifndef WAP_SUPPORT
/* under construction !*/
/* under construction !*/
#endif
#endif
extern kal_uint32 wap_custom_get_max_cache_size(void);
extern const kal_uint8 *wap_custom_get_ua_header(void);
extern const kal_uint8 *wap_custom_get_ua_prof_url(void);
extern const kal_uint8 *wap_custom_get_accept_language_preference(void);
#if 0
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif
extern kal_uint32 wap_custom_get_default_browse_timeout(void);

#if defined(OBIGO_Q03C_MMS_V01)
extern const kal_uint8 *wap_custom_get_mms_user_agent(void);
extern kal_uint16 wap_custom_get_max_mms_num(void);
extern kal_uint32 wap_custom_get_max_mms_msg_size(void);
extern kal_uint16 wap_custom_get_max_mms_warning_num(void);
extern kal_uint32 wap_custom_get_max_mms_get_retry_timeout(void);
extern kal_uint32 wap_custom_get_max_mms_get_retry_nums(void);
extern kal_uint32 wap_custom_get_max_mms_post_retry_timeout(void);
extern kal_uint32 wap_custom_get_max_mms_post_msg_retry_nums(void);
extern kal_uint32 wap_custom_get_max_mms_post_pdu_retry_nums(void);
extern kal_uint32 wap_custom_get_mms_slide_duration(void);
#ifndef WAP_SUPPORT
extern kal_uint8 wap_custom_get_mms_immed_retrieval_mode(void);
extern kal_uint8 wap_custom_get_mms_roam_retrieval_mode(void);
extern kal_uint8 wap_custom_get_mms_allow_advertimsement(void);
extern kal_uint8 wap_custom_get_mms_allow_anonymous(void);
extern kal_uint8 wap_custom_get_mms_req_delivery_report(void);
extern kal_uint8 wap_custom_get_mms_req_read_report(void);
extern kal_uint8 wap_custom_get_mms_send_delivery_report(void);
extern kal_uint8 wap_custom_get_mms_send_read_report(void);
#endif
extern kal_uint8 wap_custom_get_mms_version(void);
extern kal_uint8 wap_custom_get_max_mms_slide(void);
extern kal_uint8 wap_custom_get_max_mms_address(void);
extern kal_uint8 wap_custom_get_max_mms_attachment(void);
extern kal_uint32 wap_custom_get_mms_delta_retrival_size(void);
#endif /*OBIGO_Q03C_MMS_V01*/

/* __CUSTPACK_MULTIBIN     Johnnie   END */
#endif /* OBIGO_Q03C */

#if defined(OBIGO_Q03C_MMS_V02) /*GH_V02*/

#ifndef WAP_CUSTOM_CFG_DEFAULT_MMS_UA_HEADER
#define WAP_CUSTOM_CFG_DEFAULT_MMS_UA_HEADER "MAUI MMS User Agent"
#endif

#if defined(__MMI_OP12_MMS_MAX_SIZE_SUPPORT__)
    #if defined(WAP_CUSTOM_CFG_MAX_MMS_MSG_SIZE)
    #undef WAP_CUSTOM_CFG_MAX_MMS_MSG_SIZE
    #define WAP_CUSTOM_CFG_MAX_MMS_MSG_SIZE   (600*1024)
    #endif
#endif


#ifndef WAP_CUSTOM_CFG_MMS_SLIDE_DURATION
#define WAP_CUSTOM_CFG_MMS_SLIDE_DURATION 8000  /* ms (unused) */
#endif

#ifndef WAP_CUSTOM_CFG_MMS_IMMED_RETRIEVAL_MODE
#define WAP_CUSTOM_CFG_MMS_IMMED_RETRIEVAL_MODE 1       /* 0: auto, 1: deferred, 2: restricted (unused) */
#endif

#ifndef WAP_CUSTOM_CFG_MMS_ROAM_RETRIEVAL_MODE
#define WAP_CUSTOM_CFG_MMS_ROAM_RETRIEVAL_MODE 1        /* 0: auto, 1: deferred, 2: restricted (unused) */
#endif

#ifndef WAP_CUSTOM_CFG_MMS_ALLOW_ADVERTIMSEMENT
#define WAP_CUSTOM_CFG_MMS_ALLOW_ADVERTIMSEMENT 1       /* 0: no, 1: yes (unused) */
#endif

#ifndef WAP_CUSTOM_CFG_MMS_ALLOW_ANONYMOUS
#define WAP_CUSTOM_CFG_MMS_ALLOW_ANONYMOUS 1    /* 0: no, 1: yes (unused) */
#endif

#ifndef WAP_CUSTOM_CFG_MMS_REQ_DELIVERY_REPORT
#define WAP_CUSTOM_CFG_MMS_REQ_DELIVERY_REPORT 1        /* 0: no, 1: yes (unused) */
#endif

#ifndef WAP_CUSTOM_CFG_MMS_REQ_READ_REPORT
#define WAP_CUSTOM_CFG_MMS_REQ_READ_REPORT 1    /* 0: no, 1: yes (unused) */
#endif

#ifndef WAP_CUSTOM_CFG_MMS_SEND_DELIVERY_REPORT
#define WAP_CUSTOM_CFG_MMS_SEND_DELIVERY_REPORT 1       /* 0: no, 1: yes (unused) */
#endif

#ifndef WAP_CUSTOM_CFG_MMS_SEND_READ_REPORT
#define WAP_CUSTOM_CFG_MMS_SEND_READ_REPORT 1   /* 0: no, 1: yes (unused) */
#endif

#ifndef WAP_CUSTOM_CFG_MMS_VERSION
#define WAP_CUSTOM_CFG_MMS_VERSION 1    /* 0: default, 1: 1.0, 2: 1.1, 3: latest version (unused) */
#endif

#ifndef WAP_CUSTOM_CFG_MMS_RETR_SIZE_FILTER
#define WAP_CUSTOM_CFG_MMS_RETR_SIZE_FILTER  0  /* 0: disable, 1: enable */
#endif

#ifndef WAP_CUSTOM_CFG_MMS_RETR_SIZE_FILTER
#define WAP_CUSTOM_CFG_MMS_RETR_SIZE_FILTER  0  /* 0: disable, 1: enable */
#endif

#ifndef WAP_CUSTOM_CFG_MAX_NBR_REPORT_MMS_MSG
#define WAP_CUSTOM_CFG_MAX_NBR_REPORT_MMS_MSG 60
#endif

extern const kal_uint8 *wap_custom_get_mms_user_agent(void);
extern kal_uint16 wap_custom_get_max_mms_num(void);
extern kal_uint16 wap_custom_get_max_mms_num_on_card(void);
extern kal_uint16 wap_custom_get_max_report_mms_num(void);
extern kal_uint32 wap_custom_get_max_mms_msg_size(void);
extern kal_uint16 wap_custom_get_max_mms_warning_num(void);
extern kal_uint32 wap_custom_get_max_mms_get_retry_timeout(void);
extern kal_uint32 wap_custom_get_max_mms_get_retry_nums(void);
extern kal_uint32 wap_custom_get_max_mms_post_retry_timeout(void);
extern kal_uint32 wap_custom_get_max_mms_post_msg_retry_nums(void);
extern kal_uint32 wap_custom_get_max_mms_post_pdu_retry_nums(void);
extern kal_uint32 wap_custom_get_mms_slide_duration(void);
#ifndef WAP_SUPPORT
extern kal_uint8 wap_custom_get_mms_immed_retrieval_mode(void);
extern kal_uint8 wap_custom_get_mms_roam_retrieval_mode(void);
extern kal_uint8 wap_custom_get_mms_allow_advertimsement(void);
extern kal_uint8 wap_custom_get_mms_allow_anonymous(void);
extern kal_uint8 wap_custom_get_mms_req_delivery_report(void);
extern kal_uint8 wap_custom_get_mms_req_read_report(void);
extern kal_uint8 wap_custom_get_mms_send_delivery_report(void);
extern kal_uint8 wap_custom_get_mms_send_read_report(void);
#endif
extern kal_uint8 wap_custom_get_mms_version(void);
extern kal_uint8 wap_custom_get_max_mms_slide(void);
extern kal_uint8 wap_custom_get_max_mms_address(void);
extern kal_uint8 wap_custom_get_max_mms_attachment(void);
extern const kal_uint8 *wap_custom_get_mms_postcard_server_addr(void);
extern kal_uint32 wap_custom_get_mms_delta_retrival_size(void);
#ifdef __MMI_MMS_CALC_MSG_SIZE_BY_USER_ELEMENTS__
extern kal_uint32 wap_custom_get_mms_user_element_header_size(void);
#endif

#endif /*OBIGO_Q03C_MMS_V02*/

#ifdef OBIGO_Q05A  /* Obigo Q05A only */

#ifndef WAP_CUSTOM_CFG_DEFAULT_UA_HEADER
#define WAP_CUSTOM_CFG_DEFAULT_UA_HEADER  "MAUI_WAP_Browser"
#endif

#ifndef WAP_CUSTOM_CFG_DEFAULT_MMS_UA_HEADER
#define WAP_CUSTOM_CFG_DEFAULT_MMS_UA_HEADER  "MAUI MMS User Agent"
#endif

#ifndef WAP_CUSTOM_CFG_DEFAULT_UA_PROF_URL
#define WAP_CUSTOM_CFG_DEFAULT_UA_PROF_URL   ""
#endif

#ifndef WAP_CUSTOM_CFG_PUSH_MAX_NO_OF_MSG
#define WAP_CUSTOM_CFG_PUSH_MAX_NO_OF_MSG       15
#endif


#ifdef __OP01__
  #ifndef WAP_CUSTOM_CFG_DEFAULT_BROWSE_TIMEOUT
  #define WAP_CUSTOM_CFG_DEFAULT_BROWSE_TIMEOUT   30
  #endif
#else
  #ifndef WAP_CUSTOM_CFG_DEFAULT_BROWSE_TIMEOUT
  #define WAP_CUSTOM_CFG_DEFAULT_BROWSE_TIMEOUT   300	/*(range 15 - 300)*/
  #endif
#endif

#ifndef WAP_CUSTOM_CFG_MMS_VERSION
#define WAP_CUSTOM_CFG_MMS_VERSION 1    /* 1: 1.0, 2: 1.1, 3: 1.2, 4:latest version */
#endif

#ifndef WAP_CUSTOM_CFG_MAX_CACHE_SIZE
#define WAP_CUSTOM_CFG_MAX_CACHE_SIZE           (300*1024)
#endif

/* The maximum number of items stored in the cookies list. When full, the least
   recently used cookie is deleted to make room for the new one. */
#ifndef WAP_CUSTOM_CFG_COOKIE_MAX_ITEMS
#define WAP_CUSTOM_CFG_COOKIE_MAX_ITEMS         (40)
#endif

/* Max size allowed for one cookie before it is disregarded. */
#ifndef WAP_CUSTOM_CFG_COOKIE_MAX_ITEM_SIZE
#define WAP_CUSTOM_CFG_COOKIE_MAX_ITEM_SIZE     (2400)
#endif

/* It defines if the Accept-Encoding is supported. (0: disable; 1: enable) */
#ifndef WAP_CUSTOM_CFG_ACCEPT_ENCODING
  #if defined(__OP01__)
    #define WAP_CUSTOM_CFG_ACCEPT_ENCODING          (0) /* for MAUI_03144200 */
  #else
    #define WAP_CUSTOM_CFG_ACCEPT_ENCODING          (1)
  #endif
#endif

/*Maximum number of URLs that can be displayed in "Input Address" list.*/
/*Its minimum value should be greater than zero.*/
#define CUSTOM_WAP_CFG_N_NBR_HISTORY      10

/*It defines the maximum number of search items that can be stored in the nvram*/
#define CUSTOM_WAP_CFG_SEARCH_ITEMS_COUNT      10

/*It defines the maximum number of shortcuts in the global list that can be stored in the nvram*/
#define CUSTOM_WAP_CFG_N_NBR_GLOBAL_SHORTCUTS      10

/*It defines the maximum number of shortcuts in the local list that can be stored in the nvram*/
#define CUSTOM_WAP_CFG_N_NBR_LOCAL_SHORTCUTS      10

/*It defines the default option value to display images(if any) on the rendered page*/
/*(0 --> ALways, 2 --> Never)*/
#define WAP_CUSTOM_CFG_DEFAULT_SHOW_IMAGE			0 /*wap_bam_setting_val_images_always*/

/*It defines the default option value to display inline videos(if any) on the rendered page*/
/*(0 --> ALways, 2 --> Never)*/
#define WAP_CUSTOM_CFG_DEFAULT_SHOW_VIDEO			0 /*wap_bam_setting_val_movies_always*/

/*It defines the default option value to play sounds(if any) on the rendered page*/
/*(0 --> ALways, 2 --> Never)*/
#define WAP_CUSTOM_CFG_DEFAULT_PLAY_SOUND			0 /*wap_bam_setting_val_sounds_always*/

/*It defines the default option value for the Rendering Modes.*/
/*(0 --> Standard, 1 --> Screen Optimized, 2 --> Text Wrap, 3 --> Text Only)*/
#ifdef __OP01__
#define WAP_CUSTOM_CFG_DEFAULT_RENDER_MODE			1 /*Screen Optimized*/
#else
#define WAP_CUSTOM_CFG_DEFAULT_RENDER_MODE			0 /*Standard*/
#endif
/*It defines the default option value for the Navigation Modes.*/
/*(0x01 --> Scrolling, 0x02 --> Two Way, 0x04 --> Four Way)*/
#define WAP_CUSTOM_CFG_DEFAULT_NAVIGATE_MODE		0x04 /*wap_bam_setting_val_nav_4_way*/

#define WAP_CUSTOM_CFG_DEFAULT_FONT_SIZE			100 /*Medium*//*Currently not in use*/

/*It defines the default option value to show thumbnail or not*/
/*(0 --> Disable, 1 --> Enable)*/
#define WAP_CUSTOM_CFG_DEFAULT_THUMBNAIL			0 /*wap_bam_setting_val_thumb_disable*/

/*It defines the default option value for rendered page screen size*/
/*(0 --> Normal, 1 --> Full)*/
#define WAP_CUSTOM_CFG_DEFAULT_SCREEN_SIZE			0 /*Normal*/

/*It defines the default option value to show thumbnail or not*/
/*(0 --> Disable, 1 --> Enable)*/
#define WAP_CUSTOM_CFG_DEFAULT_ENCODE_METHOD_INDEX	0 /*Disable*/

/*It defines the default option value for loading unknown mime type objects*/
/*(0 --> ALways, 2 --> Never)*/
#define WAP_CUSTOM_CFG_DEFAULT_LOAD_UNKOWN_MEDIA	0 /*wap_bam_setting_val_no_mime_always*/

/*It defines the default option value to show CSS or not*/
/*(0 --> Disable, 1 --> Enable)*/
#define WAP_CUSTOM_CFG_DEFAULT_CSS					1 /*wap_bam_setting_val_css_enable*/

/*It defines the default option value to show CSS or not*/
/*(0 --> Disable, 1 --> Enable)*/
#define WAP_CUSTOM_CFG_DEFAULT_SCRIPTS				1 /*wap_bam_setting_val_script_enable*/

/*It defines the default option value for enabling cache*/
/*(0 --> Disable, 1 --> Enable)*/
#define WAP_CUSTOM_CFG_DEFAULT_CACHE				1 /*wap_bam_setting_val_cache_enable*/

/*It defines the default option value for enabling cookie*/
/*(0 --> Disable, 1 --> Enable)*/
#define WAP_CUSTOM_CFG_DEFAULT_COOKIE				1 /*wap_bam_setting_val_cookies_enable*/

/*It defines the default option value for enabling shortcuts*/
/*(0 --> Disable, 1 --> Enable)*/
#define WAP_CUSTOM_CFG_DEFAULT_SHORTCUTS			1 /*wap_bam_setting_val_shortcuts_enable*//*currently not in use*/

/*It defines the default option value for enabling security warnings*/
/*(0x0 --> Disable, 0x03 --> Enable)*/
#define WAP_CUSTOM_CFG_DEFAULT_SECURITY_WARNINGS	0x03 /*wap_bam_setting_val_sec_warning_enable*//*currently not in use*/

/*It defines the default option value for sending device ID*/
/*(0 --> Disable, 1 --> Enable)*/
#define WAP_CUSTOM_CFG_DEFAULT_SEND_DEVICE_ID		0 /*wap_bam_setting_val_imei_enable*//*currently not in use*/

/*It defines the default option value for showing post browsing session info*/
/*(0 --> Disable, 1 --> Enable)*/
#define WAP_CUSTOM_CFG_DEFAULT_POST_SESSION_INFO	0 

/*It defines the default option value for recent page sorting methods*/
/*(0 --> By Last Visited, 1 --> By Most Visited, 2 --> By Site)*/
#define WAP_CUSTOM_CFG_DEFAULT_SORTING_METHOD		2 /*By Last Visited*/

/*It defines the maximum number of bookmark file and folders that can be created.*/
#define WAP_CUSTOM_CFG_BRW_BOOKMARK_MAX_COUNT		50

/*It defines the default option value for the Homepage Settings*/
/*(1 --> User Defined Homepage, 0 --> Active Profile Homepage)*/
#ifdef __OP01__
#define WAP_CUSTOM_CFG_DEFAULT_HOMEPAGE				0 /*Active Profile*/
#else
#define WAP_CUSTOM_CFG_DEFAULT_HOMEPAGE				1 /*User Defined*/
#endif

/*It defines the default option value for Browser search Engine*/
/*(0 --> BAIDU, 1 --> GOOGLE, 2 --> YAHOO, 2 --> BING)*/
#ifdef __OP01__
  #define WAP_CUSTOM_CFG_DEFAULT_SEARCH_ENGINE		0 /*BAIDU*/
#else
  #define WAP_CUSTOM_CFG_DEFAULT_SEARCH_ENGINE		1 /*GOOGLE*/
#endif

/*It defines the default option value for enabling History*/
/*(0 --> Disable, 1 --> Enable)*/
#define WAP_CUSTOM_CFG_DEFAULT_HISTORY				1 /* Enable */

/*It defines the default option value to enabled always use Wifi setting*/
/*(0 --> Disabled, 1 --> Enabled)*/
#define WAP_CUSTOM_CFG_DEFAULT_WIFI_ONLY			0 /*wap_bam_setting_val_images_always*/

/*It defines the default option value for enabling Private Mode*/
/*(0 --> Disable, 1 --> Enable)*/
#define WAP_CUSTOM_CFG_DEFAULT_PRIVATE_MODE				0 /* Disable */

/* The maximum number of shortcuts supported in the launch page */
#ifndef CUSTOM_WAP_CFG_N_NBR_SHORTCUTS
#define CUSTOM_WAP_CFG_N_NBR_SHORTCUTS           9
#endif

#ifndef WAP_CUSTOM_CFG_BROWSER_MEM_SIZE
#define WAP_CUSTOM_CFG_BROWSER_MEM_SIZE             2500 * 1024
#endif

#define WAP_CUSTOM_DEFAULT_BRW_CONTENT_INDEX		0
#define WAP_CUSTOM_DEFAULT_MMS_CONTENT_INDEX		0

#ifdef GDI_USING_PNG

#define WAP_COMMON_CFG_ACCEPT_OBJECT_HEADER \
  "image/vnd.wap.wbmp, image/gif, image/bmp, image/jpeg, image/png, audio/amr, audio/imelody, audio/midi, audio/wav, */*"

#else

#define WAP_COMMON_CFG_ACCEPT_OBJECT_HEADER \
  "image/vnd.wap.wbmp, image/gif, image/bmp, image/jpeg, audio/amr, audio/imelody, audio/midi, audio/wav, */*"

#endif

/*
 *  Defines the image types that can be directly shown in the browser.
 *  This feature can be disabled if BRS_CFG_SUPPORTED_IMAGE_MIME is defined
 *  as the following:
 *
 *  #define WAP_COMMON_CFG_SUPPORTED_IMAGE_MIME ""
 */
#ifdef GDI_USING_PNG
#define WAP_COMMON_CFG_SUPPORTED_IMAGE_MIME \
  "image/vnd.wap.wbmp," \
  "image/gif," \
  "image/bmp," \
  "image/png," \
  "image/jpeg"
#else
#define WAP_COMMON_CFG_SUPPORTED_IMAGE_MIME \
  "image/vnd.wap.wbmp," \
  "image/gif," \
  "image/bmp," \
  "image/jpeg"
#endif

/*
 *  Defines the set of natural languages that are preferred by the browser.
 *  This information will be sent in HTTP ACCEPT-LANGUAGE header which is useful
 *  to multilingual sites for deciding the best language to serve to the client.
 *
 *  Just define the preference of language in order (Higher preference <--> lower preference)
 *  Do not assign the quality value, browser will assign the quality value automatically.
 *  
 *  For example, if you prefer zh-TW than en-US and prefer en-US than zh-CN, define the macro as below
 *  #define WAP_COMMON_CFG_ACCEPT_LANGUAGE_PREFERENCE "zh-TW,en-US,zh-CN"
 */
#define WAP_COMMON_CFG_ACCEPT_LANGUAGE_PREFERENCE  "en-US"

/* Default "Accept-Charset:" header, sent by browser when retrieving a document. */
#define WAP_CUSTOM_CFG_ACCEPT_CHARSET_HEADER   "utf-8, iso-8859-1, us-ascii, iso-10646-ucs-2"

/* WAP MMS Settings  */


/*******************************************************************************
 *   Global function prototype                                                 *
 ******************************************************************************/
extern const kal_uint8 *wap_custom_get_mms_accept_charset(kal_uint32 index);
extern const kal_uint8 *wap_custom_get_mms_accept_content_type(kal_uint32 index);
extern kal_uint16 wap_custom_get_max_mms_num(void);
extern kal_uint16 wap_custom_get_max_mms_num_on_card(void);
extern kal_uint8 wap_custom_get_mms_version(void);
extern kal_uint8 wap_custom_get_max_mms_attachment(void);
extern kal_uint32 wap_custom_get_max_mms_msg_size(void);
extern kal_uint8 wap_custom_get_max_mms_address(void);
extern kal_uint8 wap_custom_get_max_mms_slide(void);
extern const kal_uint8 *wap_custom_get_mms_user_agent(void);
extern kal_int32 wap_custom_get_browser_cookie_max_items(void);
extern kal_int32 wap_custom_get_browser_cookie_max_item_size(void);
extern kal_int32 wap_custom_get_browser_accept_encoding(void);

#define CUSTOM_WAP_TRUSTLIST_LEN 129

#ifndef CUSTOM_WAP_BKM_TITLE_LEN
#define CUSTOM_WAP_BKM_TITLE_LEN 41
#endif

#ifndef CUSTOM_WAP_BKM_URL_LEN
#define CUSTOM_WAP_BKM_URL_LEN 129
#endif

#ifndef WAP_CUSTOM_CFG_N_NBR_BOOKMARKS
#define WAP_CUSTOM_CFG_N_NBR_BOOKMARKS 20
#endif

#ifndef WAP_CUSTOM_CFG_BRW_PAGE_SIZE_THRESHOLD
#define WAP_CUSTOM_CFG_BRW_PAGE_SIZE_THRESHOLD	(4*1024)	/*Kbs */
#endif

#ifndef WAP_CUSTOM_CFG_BRW_LOADING_TIME_THRESHOLD
#define WAP_CUSTOM_CFG_BRW_LOADING_TIME_THRESHOLD	15      /* Minutes */
#endif

#ifdef __MMI_OP12_BRW_EMBEDDED_LINKS__
#define CUSTOM_WAP_EMBEDDED_LINK_URL_LEN 129
#define WAP_CUSTOM_CFG_N_NBR_EMBEDDED_LINKS 30
#endif /* __MMI_OP12_BRW_EMBEDDED_LINKS__ */ 

typedef struct
{
    kal_uint8 editable;
    kal_uint8 empty;
    kal_uint8 bkm_name[CUSTOM_WAP_BKM_TITLE_LEN];
    kal_uint8 bkm_url[CUSTOM_WAP_BKM_URL_LEN];
} custom_bkm_content_struct;

typedef struct
{
    kal_uint16 max_n_bkms;
    custom_bkm_content_struct bkm[WAP_CUSTOM_CFG_N_NBR_BOOKMARKS];
} custom_wap_bkm_struct;

typedef struct
{
    kal_uint8 empty;
    kal_uint32 tl_type;
    kal_uint8 tl_address[CUSTOM_WAP_TRUSTLIST_LEN];
} custom_trustList_content_struct;

/* Vodafone embedded links*/
#ifdef __MMI_OP12_BRW_EMBEDDED_LINKS__
typedef struct
{
    kal_uint8 empty;
    kal_uint8 embed_link_url[CUSTOM_WAP_EMBEDDED_LINK_URL_LEN];
} custom_embed_link_content_struct;

typedef struct
{
    kal_uint8 max_n_embed_links;
    custom_embed_link_content_struct embed_link[WAP_CUSTOM_CFG_N_NBR_EMBEDDED_LINKS];
} custom_wap_embed_link_struct;
#endif /* __MMI_OP12_BRW_EMBEDDED_LINKS__ */ 

/* MAUI_03175268 history size */
#ifndef WAP_CUSTOM_CFG_HISTORY_SIZE
#define WAP_CUSTOM_CFG_HISTORY_SIZE 30
#endif

#endif /* OBIGO_Q05A */


#ifdef WAP_SUPPORT
#define WAP_CUSTOM_DEFAULT_WAP_PROF_ACTIVE_WAP_PROFILE_INDEX		0
#define WAP_CUSTOM_DEFAULT_WAP_PROF_ACTIVE_MMS_PROFILE_INDEX		0
#endif /* WAP_SUPPORT */


#ifndef __OPTR_NONE__
    #include "op_custom_wap_config.h"
#endif


/*******************************************************************************
 *   Accept header and MMS version Setting
 ******************************************************************************/
/* This enum is to specify the type of accept header */
typedef enum{
    WAP_CUSTOM_ACCEPT_HEADER_WAP_1_2_1 = 0,  /* WAP 1.2.1 */
    WAP_CUSTOM_ACCEPT_HEADER_WAP_2_0,        /* WAP 2.0 */
    WAP_CUSTOM_ACCEPT_HEADER_WML,            /* WML */
    WAP_CUSTOM_ACCEPT_HEADER_XHTML,          /* WHTML */
    WAP_CUSTOM_ACCEPT_HEADER_HTML,           /* HTML */
    WAP_CUSTOM_ACCEPT_HEADER_TOTAL           /* total number of setting */
} wap_custom_accept_header_enum;


/* This enum is to specify MMS version */
typedef enum{
    WAP_CUSTOM_MMS_VERSION_10 = 0,     /* MMS 1.0 */
    WAP_CUSTOM_MMS_VERSION_11,         /* MMS 1.1 */
    WAP_CUSTOM_MMS_VERSION_12,         /* MMS 1.2 */
    WAP_CUSTOM_MMS_VERSION_TOTAL       /* total number of MMS version */
} wap_custom_mms_version_enum;


#if !defined(WAP2) && !defined(WAP_SEC_SUPPORT)
#define WAP_CUSTOM_DEFAULT_ACCEPT_HEADER_INDEX  WAP_CUSTOM_ACCEPT_HEADER_WAP_1_2_1
#else
#define WAP_CUSTOM_DEFAULT_ACCEPT_HEADER_INDEX  WAP_CUSTOM_ACCEPT_HEADER_WAP_2_0
#endif
#define WAP_CUSTOM_DEFAULT_MMS_VERSION_INDEX    WAP_CUSTOM_MMS_VERSION_10


/* This function is to get active accept header index. Notice that the return type is enum */
extern wap_custom_accept_header_enum  wap_custom_get_accept_header_index(void);

/* This function is to get active MMS version. Notice that the return type is enum */
extern wap_custom_mms_version_enum wap_custom_get_mms_version_index(void);

extern kal_bool custom_wap_check_wap_support_enabled(void);

#endif /* _CUSTOM_WAP_CONFIG_H */