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

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.  * DownloadDefs.h
  39.  *
  40.  * Project:
  41.  * --------
  42.  * MAUI
  43.  *
  44.  * Description:
  45.  * ------------
  46.  * This file defines constant value, enum value and data structures for download application.
  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.  *------------------------------------------------------------------------------
  67.  * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!! 
  68.  *==============================================================================
  69.  *******************************************************************************/
  70. /**
  71.  * Copyright Notice
  72.  * ?2002 - 2003, Pixtel Communications, Inc., 1489 43rd Ave. W.,
  73.  * Vancouver, B.C. V6M 4K8 Canada. All Rights Reserved.
  74.  *  (It is illegal to remove this copyright notice from this software or any
  75.  *  portion of it)
  76.  */
  77. /**************************************************************
  78.    FILENAME : DownloadDefs.h
  79.    PURPOSE     : Resource IDs for the FunAndGames Application
  80.    REMARKS     : nil
  81.    AUTHOR      : Gurinder
  82.    DATE     : 
  83. **************************************************************/
  84. #ifndef _MMI_DOWNLOADDEFS_H
  85. #define _MMI_DOWNLOADDEFS_H
  86. #include "Pixteldatatypes.h"
  87. #include "MMI_features.h"
  88. #include "custom_mmi_default_value.h"
  89. /* 
  90.  * Define
  91.  */
  92. #define MAX_IMAGE_HEADER_LENGTH           6
  93. #define MAX_IMAGE_NAME_EXTENSION_WIDTH    (5*ENCODING_LENGTH)
  94. #define MAX_IMAGE_NAME_WIDTH           ((13*ENCODING_LENGTH)   +  MAX_IMAGE_NAME_EXTENSION_WIDTH + ENCODING_LENGTH)
  95. #define MAX_IMAGE_NAME_PATH_WIDTH         (32*ENCODING_LENGTH)  /* Update if a long path added */
  96. #define MAX_AUDIO_NAME_WIDTH           ((13*ENCODING_LENGTH)   +  MAX_IMAGE_NAME_EXTENSION_WIDTH + ENCODING_LENGTH)
  97. #define MAX_SEARCH_STR_LENGTH          (15*ENCODING_LENGTH)
  98. #define PLAY_DOWNLOAD_AUDIO_TIMEOUT    2000
  99. #define     MAXIMUM_EMS_DOWNLOAD_IMELODY     5
  100. #define     MAXIMUM_DOWNLOAD_IMAGES          15
  101. #ifdef __MMI_PICTURE_EDITOR_SUPPORT__
  102. #define     MAXIMUM_PICTURE_EDITOR_IMAGES    5
  103. #endif 
  104. #define     MAXIMUM_DOWNLOAD_AUDIO           15
  105. #define     MAXIMUM_DOWNLOAD_IMELODY         MAXIMUM_DOWNLOAD_AUDIO
  106. #define     MAXIMUM_COMPOSED_RINGTONE        5
  107. #define MAXIMUM_FULLSCREEN_FACTORY_IMAGES       7
  108. #define MAXIMUM_ASSOCIATED_FACTORY_IMAGES       5
  109. #define     MAXIMUM_FACTORY_TONES            5
  110. #define     MAXIMUM_FACTORY_IMELODY          5
  111. /* Leo add for DLT */
  112. #ifdef __MMI_DOWNLOADABLE_THEMES_SUPPORT__
  113. #define         MAXIMUM_THEMES_TONES                 1  /* ritesh */
  114. #endif 
  115. /* Leo end */
  116. #define     FULLSCREEN_FACTORY_IMAGE_PATH    "C:\def_image\fullscreen\"
  117. #define     ASSOCIATE_FACTORY_IMAGE_PATH     "C:\def_image\associate\"
  118. #define     DOWNLOADED_IMAGE_PATH            "C:\User\image\standard\"
  119. #define     FACTORY_TONE_PATH             "C:\def_sound\other\"
  120. #define     FACTORY_IMELODY_PATH          "C:\def_sound\imelody\"
  121. #define     DOWNLOAD_TONE_PATH               "C:\User\sound\other\"
  122. #define     DOWNLOAD_IMELODY_PATH            "C:\User\sound\imelody\"
  123. extern S16 RINGCOMPOSER_PATH[];
  124. #define     RNGC_PATH1              "User\"
  125. #define     RNGC_PATH2              "sound\"
  126. #define     RNGC_PATH3              "compose\"
  127. #define     AST_SEARCH_STR                "*.*"
  128. #define     NV_RAM_FILE_IMAGE_ID_BASE_END    (NV_RAM_FILE_IMAGE_ID_BASE + 999)
  129. #define     FULLSCREEN_FACTORY_IMAGE_BASE    (NV_RAM_FILE_IMAGE_ID_BASE)
  130. #define     FULLSCREEN_FACTORY_IMAGE_BASE_END   (FULLSCREEN_FACTORY_IMAGE_BASE + MAXIMUM_FULLSCREEN_FACTORY_IMAGES - 1)
  131. #define     ASSOCIATED_FACTORY_IMAGE_BASE    (FULLSCREEN_FACTORY_IMAGE_BASE_END + 1)
  132. #define     ASSOCIATED_FACTORY_IMAGE_BASE_END   (ASSOCIATED_FACTORY_IMAGE_BASE + MAXIMUM_ASSOCIATED_FACTORY_IMAGES - 1)
  133. #define     DOWNLOAD_IMAGE_BASE              (ASSOCIATED_FACTORY_IMAGE_BASE_END + 1)
  134. #define     DOWNLOAD_IMAGE_BASE_END          (DOWNLOAD_IMAGE_BASE + MAXIMUM_DOWNLOAD_IMAGES - 1)
  135. #ifdef __MMI_PICTURE_EDITOR_SUPPORT__
  136. #define     PICTURE_EDITOR_IMAGE_BASE        (DOWNLOAD_IMAGE_BASE_END + 1)
  137. #define     PICTURE_EDITOR_IMAGE_BASE_END    (PICTURE_EDITOR_IMAGE_BASE + MAXIMUM_PICTURE_EDITOR_IMAGES - 1)
  138. #define     PICTURE_EDITOR_PATH              "C:\User\Image\Editor\"
  139. #endif /* __MMI_PICTURE_EDITOR_SUPPORT__ */ 
  140. #define     FACTORY_TONES_BASE               (NV_RAM_FILE_IMAGE_ID_BASE)
  141. #define     FACTORY_TONES_BASE_END           (FACTORY_TONES_BASE + MAXIMUM_FACTORY_TONES - 1)
  142. #define     FACTORY_IMELODY_BASE          (FACTORY_TONES_BASE_END + 1)
  143. #define     FACTORY_IMELODY_BASE_END         (FACTORY_IMELODY_BASE + MAXIMUM_FACTORY_IMELODY - 1)
  144. #define     DOWNLOADED_TONE_BASE          (FACTORY_IMELODY_BASE_END + 1)
  145. #define     DOWNLOADED_TONE_BASE_END         (DOWNLOADED_TONE_BASE + MAXIMUM_DOWNLOAD_AUDIO - 1)
  146. #define     DOWNLOADED_IMELODY_BASE          (DOWNLOADED_TONE_BASE_END + 1)
  147. #define     DOWNLOADED_IMELODY_BASE_END         (DOWNLOADED_IMELODY_BASE + MAXIMUM_DOWNLOAD_IMELODY - 1)
  148. #define     COMPOSED_RINGTONE_BASE           (DOWNLOADED_IMELODY_BASE_END + 1)
  149. #define     COMPOSED_RINGTONE_BASE_END       (COMPOSED_RINGTONE_BASE + MAXIMUM_COMPOSED_RINGTONE - 1)
  150. #define     DOWNLOADED_EMS_IMELODY_BASE         (COMPOSED_RINGTONE_BASE_END + 1)
  151. #define     DOWNLOADED_EMS_IMELODY_BASE_END     (DOWNLOADED_EMS_IMELODY_BASE + MAXIMUM_EMS_DOWNLOAD_IMELODY - 1)
  152. #ifdef __MMI_DOWNLOADABLE_THEMES_SUPPORT__
  153. #define     THEME_V2_TONE_BASE                  (DOWNLOADED_EMS_IMELODY_BASE_END +1)    /* ritesh */
  154. #define     THEME_V2_TONE_BASE_END              (THEME_V2_TONE_BASE +MAXIMUM_THEMES_TONES -1)   /* ritesh */
  155. #endif /* __MMI_DOWNLOADABLE_THEMES_SUPPORT__ */ 
  156. #define     FILESYSTEM_AUDIO_BASE            (NV_RAM_FILE_IMAGE_ID_BASE)
  157. #define     FILESYSTEM_AUDIO_BASE_END        (NV_RAM_FILE_IMAGE_ID_BASE + 999)
  158. #ifdef __MMI_DOWNLOADABLE_THEMES_SUPPORT__
  159. #define     CURRENT_THEME_INCOMING_CALL_TONE THEME_V2_TONE_BASE
  160. #define     CURRENT_THEME_ALARM_EXPIRY_TONE     THEME_V2_TONE_BASE
  161. #endif /* __MMI_DOWNLOADABLE_THEMES_SUPPORT__ */ 
  162. /* 
  163.  * Typedef 
  164.  */
  165. typedef struct
  166. {
  167.     U16 CurrAudioId;
  168.     U8 CurrHiliteImage;
  169.     U8 TotalFacAssoImages;
  170.     U8 TotalFacFullScrImages;
  171.     U8 TotalFacTones;
  172.     U8 TotalFacIMelodies;
  173.     U8 AddToHistFlag;
  174. } dwnl_context_struct;
  175. typedef struct
  176. {
  177.     union
  178.     {
  179.         DYNIMAGEINFO *ImageInfo;
  180.         DYNAUDIOINFO *AudioInfo;
  181.     } DYNINFOUNION;
  182.     U8 DynInfoType; /* IMAGEINFO, AUDIOINFO */
  183.     U8 NoOfEntries;
  184. } DYNAMICINFO;
  185. typedef enum
  186. {
  187.     IMAGEINFO = 0,
  188.     AUDIOINFO
  189. } DynamicInfoType;
  190. #endif /* _MMI_DOWNLOADDEFS_H */ // #ifndef _MMI_DOWNLOADDEFS_H