ComposeRingToneDefs.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.  * Filename:
  37.  * ---------
  38.  * ComposeRingToneDefs.h
  39.  *
  40.  * Project:
  41.  * --------
  42.  *   MAUI
  43.  *
  44.  * Description:
  45.  * ------------
  46.  *   This file is intends for defining enum, constant, and data structure for ring tone composer
  47.  *
  48.  * Author:
  49.  * -------
  50.  * -------
  51.  *
  52.  *==============================================================================
  53.  *             HISTORY
  54.  * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!! 
  55.  *------------------------------------------------------------------------------
  56.  * removed!
  57.  *
  58.  * removed!
  59.  * removed!
  60.  * removed!
  61.  *
  62.  * removed!
  63.  * removed!
  64.  * removed!
  65.  *
  66.  * removed!
  67.  * removed!
  68.  * removed!
  69.  *
  70.  *------------------------------------------------------------------------------
  71.  * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!! 
  72.  *==============================================================================
  73.  *******************************************************************************/
  74. /**
  75.  * Copyright Notice
  76.  * ?2002 - 2003, Pixtel Communications, Inc., 1489 43rd Ave. W.,
  77.  * Vancouver, B.C. V6M 4K8 Canada. All Rights Reserved.
  78.  *  (It is illegal to remove this copyright notice from this software or any
  79.  *  portion of it)
  80.  */
  81. /**************************************************************
  82.    FILENAME : ComposeRingToneDefs.h
  83.    PURPOSE     : Resource IDs for the ComposeRingTone Application
  84.    REMARKS     : nil
  85.    AUTHOR      : Yogesh
  86.    DATE     : July-28-2003
  87. **************************************************************/
  88. #ifndef _MMI_COMPOSE_RINGTONE_DEFS_H
  89. #define _MMI_COMPOSE_RINGTONE_DEFS_H
  90. #include "MMI_features.h"
  91. #if defined(__MMI_RING_COMPOSER__) && defined(__MMI_IMELODY_SUPPORT__)
  92. #include "PixtelDataTypes.h"
  93. #include "DownloadDefs.h"
  94. #include "gui_data_types.h"
  95. /* 
  96.  * Define
  97.  */
  98. typedef enum
  99. {
  100.     ENUM_COMP_OPT_PLAY = 0,
  101.     ENUM_COMP_OPT_EDIT,
  102.     ENUM_COMP_OPT_ADD,
  103.     ENUM_COMP_OPT_RENAME,
  104.     ENUM_COMP_OPT_DELETE,
  105.     ENUM_COMP_OPT_DELETE_ALL,
  106.     ENUM_COMP_OPT_FORWARD,
  107.     ENUM_COMP_OPT_TOTAL
  108. } RNGC_TONE_OPTION_ENUM;
  109. typedef enum
  110. {
  111.     ENUM_COMP_ADD = 0,
  112.     ENUM_COMP_EDIT,
  113.     ENUM_COMP_RENAME
  114. } RNGC_EDIT_STATE_ENUM;
  115. typedef enum
  116. {
  117.     ENUM_ADD_TONE_OPT_PLAY = 0,
  118.     ENUM_ADD_TONE_OPT_SPEED,
  119.     ENUM_ADD_TONE_OPT_INSTR,
  120.     ENUM_ADD_TONE_OPT_SAVE,
  121.     ENUM_ADD_TONE_OPT_TOTAL
  122. } RNGC_COMP_TONE_OPTION_ENUM;
  123. typedef enum
  124. {
  125.     ENUM_SPEED_FAST = 0,
  126.     ENUM_SPEED_NORMAL,
  127.     ENUM_SPEED_SLOW,
  128.     ENUM_SPEED_TOTAL
  129. } RNGC_SPEED_ENUM;
  130. typedef enum
  131. {
  132.     ENUM_INSTR1 = 0,
  133.     ENUM_INSTR2,
  134.     ENUM_INSTR3,
  135.     ENUM_INSTR4,
  136.     ENUM_INSTR5,
  137.     ENUM_INSTR6,
  138.     ENUM_INSTR7,
  139.     ENUM_INSTR8,
  140.     ENUM_INSTR9,
  141.     ENUM_INSTR10,
  142.     ENUM_TOTAL_INSTR    /* PMT MANISH   20050617 */
  143. } RNGC_INSTRUMENT_ENUM;
  144. typedef enum
  145. {
  146.     SCR_COMPOSE_RINGTONE = COMPOSE_RINGTONE_BASE + 1,
  147.     SCR_COMPOSE_RINGTONE_OPTION,
  148.     SCR_COMPOSE_RINGTONE_OPTION_PLAY,
  149.     SCR_COMP_RINGTONE_ADD_OPT,
  150.     SCR_COMP_RINGTONE_SPEED,
  151.     SCR_COMP_RINGTONE_INSTRUMENT,
  152.     SCR_COMP_RINGTONE_SAVEFILE,
  153.     SCR_COMP_RINGTONE_SAVE_OPT,
  154.     SCR_COMPOSER_ENGINE,
  155.     SCR_COMPOSE_RINGTONE_DELETE,
  156.     SCR_COMPOSE_RINGTONE_DELETE_CNF,
  157.     SCR_COMP_RINGTONE_SAVE_CNF
  158. } COMPOSE_RINGTONE_SCREEN_ID;
  159. typedef enum
  160. {
  161.     STR_COMPOSER_RINGTONE_LIST = COMPOSE_RINGTONE_BASE + 1,
  162.     STR_COMPOSER_RINGTONE_SELMENUOPT1,
  163.     STR_COMPOSER_RINGTONE_SELMENUOPT2,
  164.     STR_COMPOSER_RINGTONE_ADDOPT,
  165.     STR_COMPOSER_RINGTONE_SAVEOPT,
  166.     STR_COMPOSER_RINGTONE_PLAY,
  167.     STR_COMPOSER_RINGTONE_EDIT,
  168.     STR_COMPOSER_RINGTONE_ADD,
  169.     STR_COMPOSER_RINGTONE_RENAME,
  170.     STR_COMPOSER_RINGTONE_DELETE,
  171.     STR_COMPOSER_RINGTONE_PLAYING,
  172.     STR_COMP_RINGTONE_PLAY_SPEED,
  173.     STR_COMP_RINGTONE_SEL_INST,
  174.     STR_COMP_RINGTONE_SAVE,
  175.     STR_COMP_RINGTONE_FAST,
  176.     STR_COMP_RINGTONE_NORMAL,
  177.     STR_COMP_RINGTONE_SLOW,
  178.     STR_COMP_RINGTONE_PIANO,
  179.     STR_COMP_RINGTONE_GUITAR,
  180.     STR_COMP_RINGTONE_VIOLIN,
  181.     STR_COMP_RINGTONE_SAXOPHONE,
  182.     STR_COMP_RINGTONE_STEELDRUMS,
  183.     STR_COMP_RINGTONE_FLUTE,
  184.     STR_COMP_RINGTONE_HARMONICA,
  185.     STR_COMP_RINGTONE_TRUMPET,
  186.     STR_COMP_RINGTONE_MUSICBOX,
  187.     STR_COMP_RINGTONE_XYLOPHONE,
  188.     STR_COMP_RINGTONE_FILENAME,
  189.     STR_COMP_RINGTONE_INPUTMETHOD,
  190.     STR_COMP_RINGTONE_EMPTY,
  191.     STR_COMP_RINGTONE_DELETED,
  192.     STR_CAP_COMP_RINGTONE_DELETE,
  193.     STR_COMP_RINGTONE_EMPTYRINGTONE,
  194.     STR_COMP_RINGTONE_DUPLICATE,
  195.     STR_MENU3103_RINGTONE_COMPOSER,
  196.     STR_COMP_RINGTONE_EMPTYFILENAME,
  197.     STR_COMP_RINGTONE_MEMORYFULL
  198. } COMPOSER_RINGTONE_STRING_LIST;
  199. typedef enum
  200. {
  201.     IMG_COMP_RINGTONE_PLAY = COMPOSE_RINGTONE_BASE + 1,
  202.     IMG_MENU3103_RINGTONE_COMPOSER
  203. } COMP_RINGTONE_IMG_IDS;
  204. typedef enum
  205. {
  206.     RC_SUCCESS = 0,
  207.     RC_ERROR,
  208.     RC_EMPTY_FILENAME,
  209.     RC_DUP_FILENAME,
  210.     RC_MEMORY_FULL,
  211.     RC_FILENAME_ERR
  212. } RC_ERROR_ENUM;
  213. enum ComposerStr
  214. {
  215.     STR_RING_COMPOSE_TITLE = COMPOSE_RING_TONE_ENGINE_BASE + 1
  216. };
  217. enum ComposeImages
  218. {
  219.     IMG_3BY2_OCT_L_M_N = COMPOSE_RING_TONE_ENGINE_BASE + 1,
  220.     IMG_3BY2_OCT_L_M_F,
  221.     IMG_3BY2_OCT_L_M_S,
  222.     IMG_3BY2_OCT_U_N,
  223.     IMG_3BY2_OCT_U_F,
  224.     IMG_3BY2_OCT_U_S,
  225.     IMG_1_OCT_L_M_N,
  226.     IMG_1_OCT_L_M_F,
  227.     IMG_1_OCT_L_M_S,
  228.     IMG_1_OCT_U_N,
  229.     IMG_1_OCT_U_F,
  230.     IMG_1_OCT_U_S,
  231.     IMG_3BY4_OCT_L_M_N,
  232.     IMG_3BY4_OCT_L_M_F,
  233.     IMG_3BY4_OCT_L_M_S,
  234.     IMG_3BY4_OCT_U_N,
  235.     IMG_3BY4_OCT_U_F,
  236.     IMG_3BY4_OCT_U_S,
  237.     IMG_1BY2_OCT_L_M_N,
  238.     IMG_1BY2_OCT_L_M_F,
  239.     IMG_1BY2_OCT_L_M_S,
  240.     IMG_1BY2_OCT_U_N,
  241.     IMG_1BY2_OCT_U_F,
  242.     IMG_1BY2_OCT_U_S,
  243.     IMG_3BY8_OCT_L_M_N,
  244.     IMG_3BY8_OCT_L_M_F,
  245.     IMG_3BY8_OCT_L_M_S,
  246.     IMG_3BY8_OCT_U_N,
  247.     IMG_3BY8_OCT_U_F,
  248.     IMG_3BY8_OCT_U_S,
  249.     IMG_1BY4_OCT_L_M_N,
  250.     IMG_1BY4_OCT_L_M_F,
  251.     IMG_1BY4_OCT_L_M_S,
  252.     IMG_1BY4_OCT_U_N,
  253.     IMG_1BY4_OCT_U_F,
  254.     IMG_1BY4_OCT_U_S,
  255.     IMG_3BY16_OCT_L_M_N,
  256.     IMG_3BY16_OCT_L_M_F,
  257.     IMG_3BY16_OCT_L_M_S,
  258.     IMG_3BY16_OCT_U_N,
  259.     IMG_3BY16_OCT_U_F,
  260.     IMG_3BY16_OCT_U_S,
  261.     IMG_1BY8_OCT_L_M_N,
  262.     IMG_1BY8_OCT_L_M_F,
  263.     IMG_1BY8_OCT_L_M_S,
  264.     IMG_1BY8_OCT_U_N,
  265.     IMG_1BY8_OCT_U_F,
  266.     IMG_1BY8_OCT_U_S,
  267.     IMG_3BY32_OCT_L_M_N,
  268.     IMG_3BY32_OCT_L_M_F,
  269.     IMG_3BY32_OCT_L_M_S,
  270.     IMG_3BY32_OCT_U_N,
  271.     IMG_3BY32_OCT_U_F,
  272.     IMG_3BY32_OCT_U_S,
  273.     IMG_1BY16_OCT_L_M_N,
  274.     IMG_1BY16_OCT_L_M_F,
  275.     IMG_1BY16_OCT_L_M_S,
  276.     IMG_1BY16_OCT_U_N,
  277.     IMG_1BY16_OCT_U_F,
  278.     IMG_1BY16_OCT_U_S,
  279.     IMG_3BY8_OCT_L_M,
  280.     IMG_1BY4_OCT_L_M,
  281.     IMG_3BY16_OCT_L_M,
  282.     IMG_1BY8_OCT_L_M,
  283.     IMG_3BY32_OCT_L_M,
  284.     IMG_1BY16_OCT_L_M,
  285.     /* start vijay 20050408 */
  286.     TOUCH_IMG_1_OCT_L_M_N,
  287.     TOUCH_IMG_1BY2_OCT_L_M_N,
  288.     TOUCH_IMG_1BY4_OCT_L_M_N,
  289.     TOUCH_IMG_1BY8_OCT_L_M_N,
  290.     TOUCH_IMG_1BY16_OCT_L_M_N,
  291.     TOUCH_IMG_1BY4_OCT_L_M,
  292.     TOUCH_IMG_1BY8_OCT_L_M,
  293.     TOUCH_IMG_1BY16_OCT_L_M,
  294.     /* end vijay */
  295.     /* add note images on top of this********** */
  296.     IMG_RING_EVENTBL_ON,
  297.     IMG_RING_EVENTBL_OFF,
  298.     IMG_RING_EVENTLED_ON,
  299.     IMG_RING_EVENTLED_OFF,
  300.     IMG_RING_EVENTVIB_ON,
  301.     IMG_RING_EVENTVIB_OFF,
  302.     //start vijay 20050331
  303.     //#ifdef __MMI_TOUCH_RING_COMPOSER__
  304.     IMG_TOUCH_RING_UP,
  305.     IMG_TOUCH_RING_DOWN,
  306.     IMG_TOUCH_RNGC_HASH,
  307.     IMG_TOUCH_RING_P,
  308.     IMG_TOUCH_RING_DOT,
  309.     IMG_TOUCH_RING_OK,
  310.     IMG_TOUCH_RING_EDIT,
  311.     IMG_TOUCH_RING_INSERT,
  312.     IMG_TOUCH_RING_PLAY,
  313.     IMG_TOUCH_RING_PAUSE,
  314.     IMG_TOUCH_RING_NEXT,
  315.     IMG_TOUCH_RING_PREV,
  316.     IMG_TOUCH_RING_NORMAL,
  317.     IMG_TOUCH_RING_SELECTION,
  318.     /* IMG_RNGC_UP_OCTAVE_UP,
  319.        IMG_RNGC_UP_OCTAVE_DOWN, */
  320.     //#endif
  321.     //end vijay
  322.     IMG_RING_EVENT1,
  323.     IMG_RING_EVENT2,
  324.     IMG_RING_EVENT3,
  325.     IMG_RING_EVENT4,
  326.     IMG_RING_EVENT5,
  327.     IMG_RING_INSTRU1,
  328.     IMG_RING_INSTRU2,
  329.     IMG_RING_INSTRU3,
  330.     IMG_RING_INSTRU4,
  331.     IMG_RING_INSTRU5,
  332.     IMG_RING_INSTRU6,
  333.     IMG_RING_INSTRU7,
  334.     IMG_RING_INSTRU8,
  335.     IMG_RING_INSTRU9,
  336.     IMG_RING_INSTRU10,
  337.     IMG_RING_COMPOSER_BACKGROUND,
  338.     IMG_TOUCH_RING_COMPOSER_BACKGROUND
  339. #ifdef __MMI_MAINLCD_240X320__
  340.         , IMG_RING_INSTRU_LEFT_ARROW_UP,
  341.     IMG_RING_INSTRU_RIGHT_ARROW_UP
  342. #endif /* __MMI_MAINLCD_240X320__ */ 
  343. };
  344. enum NotesList
  345. {
  346.     NOTE_C = 0x0001,
  347.     NOTE_D,
  348.     NOTE_E,
  349.     NOTE_F,
  350.     NOTE_G,
  351.     NOTE_A,
  352.     NOTE_B,
  353.     NOTE_REST,
  354.     NOTE_VIBRATION_ON,
  355.     NOTE_VIBRATION_OFF,
  356.     NOTE_LED_ON,
  357.     NOTE_LED_OFF,
  358.     NOTE_BACKLIGHT_ON,
  359.     NOTE_BACKLIGHT_OFF
  360. };  /* First Four bits of the Note */
  361. enum NoteType
  362. {
  363.     NORMAL = 0x0010,
  364.     FLAT = 0x0020,
  365.     SHARP = 0x0030
  366. };  /* Bit 5 , 6 */
  367. enum Octave
  368. {
  369.     OCTAVE_3 = 0x0040,  /* //000000000100000 */
  370.     OCTAVE_4 = 0x0080,  /* //000000001000000 */
  371.     OCTAVE_5 = 0x00C0   /* //000000001100000 */
  372. };                      /* bits 7,8,9 for octave */
  373. enum Duration
  374. {
  375.     DURATION_3BY2 = 0x0200, /* 00001000000000 */
  376.     DURATION_1 = 0x0400,
  377.     DURATION_3BY4 = 0x0600,
  378.     DURATION_1BY2 = 0x0800,
  379.     DURATION_3BY8 = 0x0A00,
  380.     DURATION_1BY4 = 0x0C00,
  381.     DURATION_3BY16 = 0x0E00,
  382.     DURATION_1BY8 = 0x1000,
  383.     DURATION_3BY32 = 0x1200,
  384.     DURATION_1BY16 = 0x1400
  385. };                          /* bits 10,11,12,13 */
  386. /* 
  387.  * Extern Global Variable
  388.  */
  389. /* 
  390.  * Extern Global Function
  391.  */
  392. #endif /* defined(__MMI_RING_COMPOSER__) && defined(__MMI_IMELODY_SUPPORT__) */ // #if defined(__MMI_RING_COMPOSER__)
  393. #endif /* _MMI_COMPOSE_RINGTONE_DEFS_H */