VoIPDef.h
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:12k
源码类别:

MTK

开发平台:

C/C++

  1. /*****************************************************************************
  2. *  Copyright Statement:
  3. *  --------------------
  4. *  This software is protected by Copyright and the information contained
  5. *  herein is confidential. The software may not be copied and the information
  6. *  contained herein may not be used or disclosed except with the written
  7. *  permission of MediaTek Inc. (C) 2005
  8. *
  9. *  BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
  10. *  THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
  11. *  RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
  12. *  AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
  13. *  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
  14. *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
  15. *  NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
  16. *  SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
  17. *  SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
  18. *  THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
  19. *  NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
  20. *  SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
  21. *
  22. *  BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
  23. *  LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
  24. *  AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
  25. *  OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
  26. *  MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. 
  27. *
  28. *  THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
  29. *  WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
  30. *  LAWS PRINCIPLES.  ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
  31. *  RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
  32. *  THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
  33. *
  34. *****************************************************************************/
  35. /*****************************************************************************
  36.  *
  37.  * Filename:
  38.  * ---------
  39.  *  VoIPDef.h
  40.  *
  41.  * Project:
  42.  * --------
  43.  *  MAUI
  44.  *
  45.  * Description:
  46.  * ------------
  47.  *  This file defines resource enum, such as string id, image id and screen id.
  48.  *
  49.  * Author:
  50.  * -------
  51.  * -------
  52.  *
  53.  *============================================================================
  54.  *             HISTORY
  55.  * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  56.  *------------------------------------------------------------------------------
  57.  * removed!
  58.  *
  59.  * removed!
  60.  * removed!
  61.  * removed!
  62.  *
  63.  * removed!
  64.  * removed!
  65.  * removed!
  66.  *
  67.  * removed!
  68.  * removed!
  69.  * removed!
  70.  *
  71.  * removed!
  72.  * removed!
  73.  * removed!
  74.  *
  75.  * removed!
  76.  * removed!
  77.  * removed!
  78.  *
  79.  * removed!
  80.  * removed!
  81.  * removed!
  82.  *
  83.  * removed!
  84.  * removed!
  85.  * removed!
  86.  *
  87.  * removed!
  88.  * removed!
  89.  * removed!
  90.  *
  91.  * removed!
  92.  * removed!
  93.  * removed!
  94.  *
  95.  * removed!
  96.  * removed!
  97.  * removed!
  98.  *
  99.  * removed!
  100.  * removed!
  101.  * removed!
  102.  *
  103.  *------------------------------------------------------------------------------
  104.  * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  105.  *============================================================================
  106.  ****************************************************************************/
  107. #ifndef VOIP_DEF_H
  108. #define VOIP_DEF_H
  109. #include "MMIDatatype.h"
  110. #define VOIP_STRING_BASE                    (VOIP_BASE + 1)
  111. #define VOIP_IMAGE_BASE                     (VOIP_BASE + 1)
  112. #define VOIP_SCREEN_BASE                    (VOIP_BASE + 1)
  113. typedef enum
  114. {
  115.     STR_ID_VOIP_MAIN = VOIP_STRING_BASE,
  116.     STR_ID_VOIP_PROCESSING,
  117.     STR_ID_VOIP_LOGIN,
  118.     STR_ID_VOIP_LOGOUT,
  119.     STR_ID_VOIP_LOGIN_OK,
  120.     STR_ID_VOIP_LOGOUT_OK,
  121.     STR_ID_VOIP_LOGOUT_IND,
  122.     STR_ID_VOIP_CONNECT_TO_SERVER,
  123.     STR_ID_VOIP_DISCONNECT_FROM_SERVER,
  124.     STR_ID_VOIP_SUMMARY,
  125.     STR_ID_VOIP_PROF_SETTING,
  126.     STR_ID_VOIP_PROF_EDIT_COMMON,
  127.     STR_ID_VOIP_PROF_EDIT_ACCOUNT,
  128.     STR_ID_VOIP_PROF_EDIT_OUTBOUND,
  129.     STR_ID_VOIP_PROF_EDIT_REGISTER,
  130.     STR_ID_VOIP_PROF_EDIT_NAT,
  131.     STR_ID_VOIP_PROF_COMMON_PROFNAME,
  132.     STR_ID_VOIP_PROF_COMMON_DATAACCOUNT,
  133.     STR_ID_VOIP_PROF_COMMON_AUTOLOGIN,
  134.     STR_ID_VOIP_PROF_COMMON_VMSERVER,
  135.     STR_ID_VOIP_PROF_COMMON_PROF1,
  136.     STR_ID_VOIP_PROF_COMMON_PROF2,
  137.     STR_ID_VOIP_PROF_COMMON_PROF3,
  138.     STR_ID_VOIP_PROF_COMMON_PROF4,
  139.     STR_ID_VOIP_PROF_COMMON_PROF5,
  140.     STR_ID_VOIP_PROF_COMMON_PROF6,
  141.     STR_ID_VOIP_PROF_COMMON_PROF7,
  142.     STR_ID_VOIP_PROF_COMMON_PROF8,
  143.     STR_ID_VOIP_PROF_COMMON_PROF9,
  144.     STR_ID_VOIP_PROF_COMMON_PROF10,
  145.     STR_ID_VOIP_PROF_ACCOUNT_SIPSERVER,
  146.     STR_ID_VOIP_PROF_ACCOUNT_SIPPORT,
  147.     STR_ID_VOIP_PROF_ACCOUNT_DISPNAME,
  148.     STR_ID_VOIP_PROF_USERNAME,
  149.     STR_ID_VOIP_PROF_PASSWORD,
  150.     STR_ID_VOIP_PROF_ACCOUNT_AUTHNAME,
  151.     STR_ID_VOIP_PROF_DEFAULT,
  152.     STR_ID_VOIP_PROF_STATUS,
  153.     STR_ID_VOIP_PROF_OUTBOUND_SERVER,
  154.     STR_ID_VOIP_PROF_OUTBOUND_PORT,
  155.     STR_ID_VOIP_PROF_OUTBOUND_NEVER,
  156.     STR_ID_VOIP_PROF_AUTO,
  157.     STR_ID_VOIP_PROF_OUTBOUND_ALWAYS,
  158.     STR_ID_VOIP_PROF_REGISTER_SERVER,
  159.     STR_ID_VOIP_PROF_REGISTER_PORT,
  160.     STR_ID_VOIP_PROF_NAT_FIREWALL,
  161.     STR_ID_VOIP_PROF_NAT_STUNSERVER,
  162.     STR_ID_VOIP_PROF_NAT_STUNPORT,
  163.     STR_ID_VOIP_PROF_NAT_INTERVAL,
  164.     STR_ID_VOIP_PROF_NAT_STATICNAT,
  165.     STR_ID_VOIP_PROF_NAT_5MIN,
  166.     STR_ID_VOIP_PROF_NAT_10MIN,
  167.     STR_ID_VOIP_PROF_NAT_30MIN,
  168.     STR_ID_VOIP_PROF_NAT_60MIN,
  169.     STR_ID_VOIP_CALL_SETTING,
  170.     STR_ID_VOIP_SETTING_AUTO_ANSWER,
  171.     STR_ID_VOIP_SETTING_AUTO_REJECT,
  172.     STR_ID_VOIP_SETTING_AUTO_REDIAL,
  173.     STR_ID_VOIP_SETTING_HIDE_CALLER_ID,
  174.     STR_ID_VOIP_SETTING_DTMF,
  175.     STR_ID_VOIP_SETTING_COMFORT_NOISE,
  176.     STR_ID_VOIP_SETTING_SET_CODEC_ORDER,
  177.     STR_ID_VOIP_SETTING_PRIORITY,
  178.     STR_ID_VOIP_SETTING_ANYKEY,
  179.     STR_ID_VOIP_SETTING_AUTO,
  180.     STR_ID_VOIP_SETTING_REJECT_UNKNOWN,
  181.     STR_ID_VOIP_SETTING_REJECT_ALL,
  182.     STR_ID_VOIP_SETTING_INBAND,
  183.     STR_ID_VOIP_SETTING_OUTBAND,
  184.     STR_ID_VOIP_SETTING_CODEC1,
  185.     STR_ID_VOIP_SETTING_CODEC2,
  186.     STR_ID_VOIP_SETTING_CODEC3,
  187.     STR_ID_VOIP_SETTING_CODEC4,
  188.     STR_ID_VOIP_SETTING_CODEC5,
  189.     STR_ID_VOIP_SETTING_CODEC6,
  190.     STR_ID_VOIP_SETTING_CODEC7,
  191.     STR_ID_VOIP_SETTING_CODEC8,
  192.     STR_ID_VOIP_SETTING_CODEC9,
  193.     STR_ID_VOIP_SETTING_CODEC10,
  194.     STR_ID_VOIP_NEW_CALL,
  195.     STR_ID_VOIP_DIAL,
  196.     STR_ID_VOIP_SAVE_PHONEBOOK,
  197.     STR_ID_VOIP_INPUT_METHOD,
  198.     STR_ID_VOIP_SOS,
  199.     STR_ID_VOIP_EMERGENCY_NUM,
  200.     STR_ID_VOIP_OPTION_QUERY,
  201.     STR_ID_VOIP_CALLING,
  202.     STR_ID_VOIP_CALL_FORWARDED,
  203.     STR_ID_VOIP_REDIALING,
  204.     STR_ID_VOIP_TIME_UNIT,
  205.     STR_ID_VOIP_RINGING,
  206.     STR_ID_VOIP_ANSWER,
  207.     STR_ID_VOIP_REJECT,
  208.     STR_ID_VOIP_HAND_FREE,
  209.     STR_ID_VOIP_HAND_HELD,
  210.     STR_ID_VOIP_LOUD_SPEAKER_OFF,
  211.     STR_ID_VOIP_LOUD_SPEAKER_ON,
  212.     STR_ID_VOIP_CALL_OPTION,
  213.     STR_ID_VOIP_HOLD_SINGLE,
  214.     STR_ID_VOIP_HOLD_CONFERENCE,
  215.     STR_ID_VOIP_RETRIEVE_SINGLE,
  216.     STR_ID_VOIP_RETRIEVE_CONFERENCE,
  217.     STR_ID_VOIP_SWAP,
  218.     STR_ID_VOIP_CONFERENCE,
  219.     STR_ID_VOIP_SPLIT,
  220.     STR_ID_VOIP_END_SINGLE,
  221.     STR_ID_VOIP_END_CONFERENCE,
  222.     STR_ID_VOIP_END_ALL,
  223.     STR_ID_VOIP_TRANSFER,
  224.     STR_ID_VOIP_PHONEBOOK,
  225.     STR_ID_VOIP_MUTE,
  226.     STR_ID_VOIP_DTMF,
  227.     STR_ID_VOIP_HOLD_OK,
  228.     STR_ID_VOIP_RETRIEVE_OK,
  229.     STR_ID_VOIP_SWAP_OK,
  230.     STR_ID_VOIP_CONFERENCE_OK,
  231.     STR_ID_VOIP_SPLIT_OK,
  232.     STR_ID_VOIP_TRANSFER_OK,
  233.     STR_ID_VOIP_CALL_END,
  234.     STR_ID_VOIP_CALL_ABORT,
  235.     STR_ID_VOIP_CALL_REJECT,
  236.     STR_ID_VOIP_USER_BUSY,
  237.     STR_ID_VOIP_USER_NOT_FOUND,
  238.     STR_ID_VOIP_NO_ACTIVATED_PROFILE,
  239.     STR_ID_VOIP_EMPTY_PROFILE_NAME,
  240.     STR_ID_VOIP_EMPTY_SIP_SERVER,
  241.     STR_ID_VOIP_EMPTY_OUTBOUND_SERVER,
  242.     STR_ID_VOIP_EMPTY_REGISTER_SERVER,
  243.     STR_ID_VOIP_EMPTY_STUN_SERVER,
  244.     STR_ID_VOIP_EMPTY_USERNAME,
  245.     STR_ID_VOIP_INVALID_PORT_NUMBER,
  246.     STR_ID_VOIP_INVALID_USERNAME,
  247.     STR_ID_VOIP_INVALID_AUTHNAME,
  248.     STR_ID_VOIP_INVALID_VM_SERVER,
  249.     STR_ID_VOIP_INVALID_IP_ADDRESS,
  250.     STR_ID_VOIP_INVALID_URI,
  251.     STR_ID_VOIP_CANNOT_DIAL_OWNER,
  252.     STR_ID_VOIP_NOT_ALLOW_TO_DIAL,
  253.     STR_ID_VOIP_NOT_ALLOW_TO_HOLD,
  254.     STR_ID_VOIP_REGISTER,
  255.     STR_ID_VOIP_NOT_REGISTER,
  256.     STR_ID_VOIP_ALREADY_REGISTER,
  257.     STR_ID_VOIP_REGISTER_FAIL,
  258.     STR_ID_VOIP_AUTHENTICATION_FAIL,
  259.     STR_ID_VOIP_REQUEST_TIMEOUT,
  260.     STR_ID_VOIP_INVALID_PARAMETER,
  261.     STR_ID_VOIP_NETWORK_DOWN,
  262.     STR_ID_VOIP_NETWORK_ERROR,
  263.     STR_ID_VOIP_ACTION_CONFLICT,
  264.     STR_ID_VOIP_ACTION_INVALID,
  265.     STR_ID_VOIP_ACTION_FORBIDDEN,
  266.     STR_ID_VOIP_CALL_NOT_EXIST,
  267.     STR_ID_VOIP_SWAP_FAIL,
  268.     STR_ID_VOIP_CONFERENCE_FAIL,
  269.     STR_ID_VOIP_SPLIT_FAIL,
  270.     STR_ID_VOIP_TRANSFER_FAIL,
  271.     STR_ID_VOIP_SDP_ERROR,
  272.     STR_ID_VOIP_SIP_ERROR,
  273.     STR_ID_VOIP_DNS_ERROR,
  274.     STR_ID_VOIP_NAT_ERROR,
  275.     STR_ID_VOIP_UNKNOWN_ERROR,
  276.     STR_ID_VOIP_VOICE_MESSAGE,
  277.     STR_ID_VOIP_FAX_MESSAGE,
  278.     STR_ID_VOIP_PAGER_MESSAGE,
  279.     STR_ID_VOIP_MULTIMEDIA_MESSAGE,
  280.     STR_ID_VOIP_TEXT_MESSAGE,
  281.     STR_ID_VOIP_UNKNOWN_MESSAGE,
  282.     STR_ID_VOIP_NEW_MESSAGE,
  283.     STR_ID_VOIP_URGENT_MESSAGE,
  284.     STR_ID_VOIP_MSG_UNIT,
  285.     STR_ID_VOIP_NOT_SUPPORT,
  286.     #ifdef __MMI_VOIP_OTAP_DMP__
  287. /* under construction !*/
  288. /* under construction !*/
  289. /* under construction !*/
  290. /* under construction !*/
  291. /* under construction !*/
  292. /* under construction !*/
  293. /* under construction !*/
  294. /* under construction !*/
  295.     #endif /* __MMI_VOIP_OTAP_DMP__ */
  296.     STR_ID_TOTAL
  297. } voip_string_enum;
  298. typedef enum
  299. {
  300.     IMG_ID_VOIP_MAIN = VOIP_IMAGE_BASE,
  301.     IMG_ID_VOIP_STATUS_ICON,
  302.     IMG_ID_VOIP_PROF_EDIT_COMMON,
  303.     IMG_ID_VOIP_PROF_COMMON_PROF_NAME,
  304.     IMG_ID_VOIP_PROF_COMMON_DATA_ACCT,
  305.     IMG_ID_VOIP_PROF_COMMON_AUTO_LOGIN,
  306.     IMG_ID_VOIP_PROF_COMMON_VMSERVER,
  307.     IMG_ID_VOIP_PROF_EDIT_ACCOUNT,
  308.     IMG_ID_VOIP_PROF_ACCOUNT_SIP_SERVER,
  309.     IMG_ID_VOIP_PROF_ACCOUNT_SIP_PORT,
  310.     IMG_ID_VOIP_PROF_ACCOUNT_DISPNAME,
  311.     IMG_ID_VOIP_PROF_ACCOUNT_USERNAME,
  312.     IMG_ID_VOIP_PROF_ACCOUNT_PASSWORD,
  313.     IMG_ID_VOIP_PROF_ACCOUNT_AUTHNAME,
  314.     IMG_ID_VOIP_PROF_EDIT_OUTBOUND,
  315.     IMG_ID_VOIP_PROF_OUTBOUND_STATUS,
  316.     IMG_ID_VOIP_PROF_OUTBOUND_SERVER,
  317.     IMG_ID_VOIP_PROF_OUTBOUND_PORT,
  318.     IMG_ID_VOIP_PROF_OUTBOUND_USERNAME,
  319.     IMG_ID_VOIP_PROF_OUTBOUND_PASSWORD,
  320.     IMG_ID_VOIP_PROF_EDIT_REGISTER,
  321.     IMG_ID_VOIP_PROF_REGISTER_STATUS,
  322.     IMG_ID_VOIP_PROF_REGISTER_SERVER,
  323.     IMG_ID_VOIP_PROF_REGISTER_PORT,
  324.     IMG_ID_VOIP_PROF_REGISTER_USERNAME,
  325.     IMG_ID_VOIP_PROF_REGISTER_PASSWORD,
  326.     IMG_ID_VOIP_PROF_EDIT_NAT,
  327.     IMG_ID_VOIP_PROF_NAT_STATUS,
  328.     IMG_ID_VOIP_PROF_NAT_FIREWALL,
  329.     IMG_ID_VOIP_PROF_NAT_STUNSERVER,
  330.     IMG_ID_VOIP_PROF_NAT_STUNPORT,
  331.     IMG_ID_VOIP_PROF_NAT_INTERVAL,
  332.     IMG_ID_VOIP_CALL_EDITOR,
  333.     IMG_ID_VOIP_OUTGOING_CALL,
  334.     IMG_ID_VOIP_INCOMING_CALL,
  335.     IMG_ID_VOIP_CALL_STATE_ACTIVE,
  336.     IMG_ID_VOIP_CALL_STATE_HOLD,
  337.     IMG_ID_VOIP_CALL_ENDED,
  338.     IMG_ID_VOIP_MSG_WAITING,
  339.     IMG_ID_TOTAL
  340. } voip_image_enum;
  341. typedef enum
  342. {
  343.     SCR_ID_VOIP_MAIN = VOIP_SCREEN_BASE,
  344.     SCR_ID_VOIP_PROCESSING,
  345.     SCR_ID_VOIP_SUMMARY,
  346.     SCR_ID_VOIP_PROF_SETTING,
  347.     SCR_ID_VOIP_PROF_SETTING_OPTION,
  348.     SCR_ID_VOIP_PROF_EDIT,
  349.     SCR_ID_VOIP_PROF_COMMON,
  350.     SCR_ID_VOIP_PROF_ACCOUNT,
  351.     SCR_ID_VOIP_PROF_OUTBOUND,
  352.     SCR_ID_VOIP_PROF_REGISTER,
  353.     SCR_ID_VOIP_PROF_NAT,
  354.     SCR_ID_VOIP_PROF_EDIT_INLINEITEMS,
  355.     SCR_ID_VOIP_FULL_EDITOR_OPTION,
  356.     SCR_ID_VOIP_CALL_SETTING,
  357.     SCR_ID_VOIP_SETTING_AUTO_ANSWER,
  358.     SCR_ID_VOIP_SETTING_AUTO_REJECT,
  359.     SCR_ID_VOIP_SETTING_AUTO_REDIAL,
  360.     SCR_ID_VOIP_SETTING_HIDE_CALLER_ID,
  361.     SCR_ID_VOIP_SETTING_DTMF,
  362.     SCR_ID_VOIP_SETTING_COMFORT_NOISE,
  363.     SCR_ID_VOIP_SETTING_SET_CODEC_ORDER,
  364.     SCR_ID_VOIP_SETTING_SET_CODEC_ORDER_OPTION,
  365.     SCR_ID_VOIP_SETTING_GENERAL,
  366.     SCR_ID_VOIP_CALL_EDITOR,
  367.     SCR_ID_VOIP_CALL_EDITOR_OPTION,
  368.     SCR_ID_VOIP_OUTGOING_CALL,
  369.     SCR_ID_VOIP_REDIALING_CALL,
  370.     SCR_ID_VOIP_INCOMING_CALL,
  371.     SCR_ID_VOIP_IN_CALL,
  372.     SCR_ID_VOIP_DTMF_EDITOR,
  373.     SCR_ID_VOIP_CALL_OPTION,
  374.     SCR_ID_VOIP_MULTI_HELD_CALL,
  375.     SCR_ID_VOIP_OPTION_QUERY_EDITOR,
  376.     SCR_ID_VOIP_OPTION_QUERY_RESULT,
  377.     SCR_ID_VOIP_MSG_WAITING,
  378.     #ifdef __MMI_VOIP_OTAP_DMP__
  379. /* under construction !*/
  380. /* under construction !*/
  381.     #endif /* __MMI_VOIP_OTAP_DMP__ */
  382.     SCR_ID_TOTAL
  383. } voip_screen_enum;
  384. #endif /* VOIP_DEF_H */