INIFileHandle.h
上传用户:gelin96
上传日期:2017-01-08
资源大小:20993k
文件大小:15k
源码类别:

MTK

开发平台:

C++ Builder

  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.  *   INIFileHandle.h
  40.  *
  41.  * Project:
  42.  * --------
  43.  *   Maui META APP
  44.  *
  45.  * Description:
  46.  * ------------
  47.  *   INI file handle header
  48.  *
  49.  * Author:
  50.  * -------
  51.  *  Andy Ueng (mtk00490)
  52.  *
  53.  *============================================================================
  54.  *             HISTORY
  55.  * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  56.  *------------------------------------------------------------------------------
  57.  * $Revision$
  58.  * $Modtime$
  59.  * $Log$
  60.  * 
  61.  *------------------------------------------------------------------------------
  62.  * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  63.  *============================================================================
  64.  ****************************************************************************/
  65. //---------------------------------------------------------------------------
  66. #ifndef INIFileHandleH
  67. #define INIFileHandleH
  68. #include <vcl.h>
  69. #include "meta_utils.h"
  70. //---------------------------------------------------------------------------
  71. ////////////////////////////// MMI data download table  ////////////////////////////////////
  72. AnsiString read_download_type(
  73.                                  AnsiString asSetupFile,
  74.                                  AnsiString asExeName
  75.                                );
  76. /////////////////////////////////////////////////////////////////////////////////////////////////
  77. ///////////////////////////////////////// full screen /////////////////////////////////////////////
  78. AnsiString read_DEFAULT_FULLSCREEN_PATH(
  79.                                  AnsiString asSetupFile,
  80.                                  AnsiString asExeName
  81.                                );
  82.                                
  83. AnsiString read_MAX_FULLSCREEN_FILE_COUNT(
  84.                                  AnsiString asSetupFile,
  85.                                  AnsiString asExeName
  86.                                );
  87. AnsiString read_local_default_fullscreen_file_name(
  88.                                  AnsiString asSetupFile,
  89.                                  AnsiString asExeName,
  90.                                  AnsiString default_fullscreen_file_index
  91.                                );
  92. bool write_local_default_fullscreen_file_name(
  93.                                  AnsiString asSetupFile,
  94.                                  AnsiString asExeName,
  95.                                  AnsiString default_fullscreen_file_index,
  96.                                  AnsiString default_fullscreen_file_name
  97.                                );
  98. AnsiString read_local_default_fullscreen_file_count(
  99.                                  AnsiString asSetupFile,
  100.                                  AnsiString asExeName
  101.                                );
  102. bool write_local_default_fullscreen_file_count(
  103.                                  AnsiString asSetupFile,
  104.                                  AnsiString asExeName,
  105.                                  AnsiString default_fullscreen_file_count
  106.                                );
  107. bool erase_local_default_fullscreen_file_section(
  108.                                  AnsiString asSetupFile,
  109.                                  AnsiString asExeName
  110.                                );
  111. bool delete_local_default_fullscreen_file_key(
  112.                                  AnsiString asSetupFile,
  113.                                  AnsiString asExeName,
  114.                                  AnsiString default_fullscreen_file_index
  115.                                );
  116. /////////////////////////////////////////////////////////////////////////////////////////////////
  117. ///////////////////////////////////////// Associate /////////////////////////////////////////////
  118. AnsiString read_DEFAULT_ASSOCIATE_PATH(
  119.                                  AnsiString asSetupFile,
  120.                                  AnsiString asExeName
  121.                                );
  122.                                
  123. AnsiString read_MAX_ASSOCIATE_FILE_COUNT(
  124.                                  AnsiString asSetupFile,
  125.                                  AnsiString asExeName
  126.                                );
  127. AnsiString read_local_default_associate_file_name(
  128.                                  AnsiString asSetupFile,
  129.                                  AnsiString asExeName,
  130.                                  AnsiString default_assoicate_file_index
  131.                                );
  132. bool write_local_default_associate_file_name(
  133.                                  AnsiString asSetupFile,
  134.                                  AnsiString asExeName,
  135.                                  AnsiString default_assoicate_file_index,
  136.                                  AnsiString default_assoicate_file_name
  137.                                );
  138. AnsiString read_local_default_associate_file_count(
  139.                                  AnsiString asSetupFile,
  140.                                  AnsiString asExeName
  141.                                );
  142. bool write_local_default_associate_file_count(
  143.                                  AnsiString asSetupFile,
  144.                                  AnsiString asExeName,
  145.                                  AnsiString default_assoicate_file_count
  146.                                );
  147. bool erase_local_default_associate_file_section(
  148.                                  AnsiString asSetupFile,
  149.                                  AnsiString asExeName
  150.                                );
  151. bool delete_local_default_associate_file_key(
  152.                                  AnsiString asSetupFile,
  153.                                  AnsiString asExeName,
  154.                                  AnsiString default_assoicate_file_index
  155.                                );
  156. /////////////////////////////////////////////////////////////////////////////////////////////////
  157. ///////////////////////////////////////// EMS /////////////////////////////////////////////
  158. AnsiString read_DEFAULT_EMS_PATH(
  159.                                  AnsiString asSetupFile,
  160.                                  AnsiString asExeName
  161.                                );
  162.                                
  163. AnsiString read_MAX_EMS_FILE_COUNT(
  164.                                  AnsiString asSetupFile,
  165.                                  AnsiString asExeName
  166.                                );
  167. AnsiString read_local_default_EMS_file_name(
  168.                                  AnsiString asSetupFile,
  169.                                  AnsiString asExeName,
  170.                                  AnsiString default_EMS_file_index
  171.                                );
  172. bool write_local_default_EMS_file_name(
  173.                                  AnsiString asSetupFile,
  174.                                  AnsiString asExeName,
  175.                                  AnsiString default_EMS_file_index,
  176.                                  AnsiString default_EMS_file_name
  177.                                );
  178. AnsiString read_local_default_EMS_file_count(
  179.                                  AnsiString asSetupFile,
  180.                                  AnsiString asExeName
  181.                                );
  182. bool write_local_default_EMS_file_count(
  183.                                  AnsiString asSetupFile,
  184.                                  AnsiString asExeName,
  185.                                  AnsiString default_EMS_file_count
  186.                                );
  187. bool erase_local_default_EMS_file_section(
  188.                                  AnsiString asSetupFile,
  189.                                  AnsiString asExeName
  190.                                );
  191. bool delete_local_default_EMS_file_key(
  192.                                  AnsiString asSetupFile,
  193.                                  AnsiString asExeName,
  194.                                  AnsiString default_EMS_file_index
  195.                                );
  196. bool write_local_default_EMS_file_setting(void);
  197. /////////////////////////////////////////////////////////////////////////////////////////////////
  198. ///////////////////////////////////////// midi /////////////////////////////////////////////
  199. AnsiString read_DEFAULT_MIDI_PATH(
  200.                                     AnsiString asSetupFile,
  201.                                     AnsiString asExeName
  202.                                  );
  203. AnsiString read_MAX_MIDI_FILE_COUNT(
  204.                                       AnsiString asSetupFile,
  205.                                       AnsiString asExeName
  206.                                    );
  207. AnsiString read_local_default_midi_file_name(
  208.                                                AnsiString asSetupFile,
  209.                                                AnsiString asExeName,
  210.                                                AnsiString default_midi_file_index
  211.                                             );
  212. bool write_local_default_midi_file_name(
  213.                                              AnsiString asSetupFile,
  214.                                              AnsiString asExeName,
  215.                                              AnsiString default_midi_file_index,
  216.                                              AnsiString default_midi_file_name
  217.                                          );
  218. AnsiString read_local_default_midi_file_count(
  219.                                                 AnsiString asSetupFile,
  220.                                                 AnsiString asExeName
  221.                                               );
  222. bool write_local_default_midi_file_count(
  223.                                             AnsiString asSetupFile,
  224.                                             AnsiString asExeName,
  225.                                             AnsiString default_midi_file_count
  226.                                         );
  227. bool erase_local_default_midi_file_section(
  228.                                              AnsiString asSetupFile,
  229.                                              AnsiString asExeName
  230.                                           );
  231. bool delete_local_default_midi_file_key(
  232.                                            AnsiString asSetupFile,
  233.                                            AnsiString asExeName,
  234.                                            AnsiString default_midi_file_index
  235.                                        );
  236. bool write_local_default_midi_file_setting(void);
  237. /////////////////////////////////////////////////////////////////////////////////////////////////
  238. ///////////////////////////////////////// iMelody /////////////////////////////////////////////
  239. AnsiString read_DEFAULT_IMELODY_PATH(
  240.                                        AnsiString asSetupFile,
  241.                                        AnsiString asExeName
  242.                                  );
  243. AnsiString read_MAX_IMELODY_FILE_COUNT(
  244.                                          AnsiString asSetupFile,
  245.                                          AnsiString asExeName
  246.                                    );
  247. AnsiString read_local_default_imelody_file_name(
  248.                                                   AnsiString asSetupFile,
  249.                                                   AnsiString asExeName,
  250.                                                   AnsiString default_imelody_file_index
  251.                                             );
  252. bool write_local_default_imelody_file_name(
  253.                                              AnsiString asSetupFile,
  254.                                              AnsiString asExeName,
  255.                                              AnsiString default_imelody_file_index,
  256.                                              AnsiString default_imelody_file_name
  257.                                          );
  258. AnsiString read_local_default_imelody_file_count(
  259.                                                   AnsiString asSetupFile,
  260.                                                   AnsiString asExeName
  261.                                               );
  262. bool write_local_default_imelody_file_count(
  263.                                               AnsiString asSetupFile,
  264.                                               AnsiString asExeName,
  265.                                               AnsiString default_imelody_file_count
  266.                                         );
  267. bool erase_local_default_imelody_file_section(
  268.                                                AnsiString asSetupFile,
  269.                                                AnsiString asExeName
  270.                                           );
  271. bool delete_local_default_imelody_file_key(
  272.                                              AnsiString asSetupFile,
  273.                                              AnsiString asExeName,
  274.                                              AnsiString default_imelody_file_index
  275.                                        );
  276. bool write_local_default_imelody_file_setting(void);
  277. ///////////////////////////////////////////////////////////////////////////////////////////////
  278.                                
  279. #endif