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

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.  *  FileSystemDummy.c
  40.  *
  41.  * Project:
  42.  * --------
  43.  *   MAUI
  44.  *
  45.  * Description:
  46.  * ------------
  47.  *   Stub functions for WAP integration
  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.  *------------------------------------------------------------------------------
  100.  * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  101.  *============================================================================
  102.  ****************************************************************************/
  103. /* 
  104.  * We do not want to recompile WAP integration after MMI settings are changed.
  105.  * As a result, we keep the code related to MMI settings here.
  106.  *
  107.  */
  108. #ifdef MMI_ON_WIN32
  109. #include "MMI_features.h"
  110. #include "stdC.h"
  111. #include "L4Dr1.h"
  112. #include "PixtelDataTypes.h"
  113. #include "wgui.h"       /* for MMI_ID_TYPE */
  114. #include "fmt_def.h"
  115. #include "fmt_struct.h"
  116. #include "fat_fs.h"
  117. #include "Conversions.h"
  118. #include "time.h"
  119. #include "aud_id3_parser.h"
  120. #ifdef __MMI_FILE_MANAGER__
  121. extern void fmgr_copy_rsp_hdlr(void *info);
  122. extern void fmgr_delete_rsp_hdlr(void *info);
  123. #endif /* __MMI_FILE_MANAGER__ */ 
  124. //void FS_Read(){};
  125. //void FS_Seek(){};
  126. /*****************************************************************************
  127.  * FUNCTION
  128.  *  kal_assert_fail
  129.  * DESCRIPTION
  130.  *  
  131.  * PARAMETERS
  132.  *  expr        [?]         
  133.  *  file        [?]         
  134.  *  line        [IN]        
  135.  *  isext       [IN]        
  136.  *  ex1         [IN]        
  137.  *  ex2         [IN]        
  138.  *  ex3         [IN]        
  139.  * RETURNS
  140.  *  void
  141.  *****************************************************************************/
  142. void kal_assert_fail(
  143.         char *expr,
  144.         char *file,
  145.         kal_uint32 line,
  146.         kal_bool isext,
  147.         kal_uint32 ex1,
  148.         kal_uint32 ex2,
  149.         kal_uint32 ex3)
  150. {
  151.     /*----------------------------------------------------------------*/
  152.     /* Local Variables                                                */
  153.     /*----------------------------------------------------------------*/
  154.     /*----------------------------------------------------------------*/
  155.     /* Code Body                                                      */
  156.     /*----------------------------------------------------------------*/
  157. };
  158. //void FS_GetFileSize(){};
  159. //void FS_Open(){};
  160. //void FS_Close(){};
  161. //void mmi_audply_stop_playing(){};
  162. //void mmi_audply_show_playing_song_in_sub_LCD(){};
  163. //int g_audply(){return 0;};
  164. /*****************************************************************************
  165.  * FUNCTION
  166.  *  mmiapi_enter_idle_screen_notify
  167.  * DESCRIPTION
  168.  *  
  169.  * PARAMETERS
  170.  *  void
  171.  * RETURNS
  172.  *  void
  173.  *****************************************************************************/
  174. void mmiapi_enter_idle_screen_notify()
  175. {
  176.     /*----------------------------------------------------------------*/
  177.     /* Local Variables                                                */
  178.     /*----------------------------------------------------------------*/
  179.     /*----------------------------------------------------------------*/
  180.     /* Code Body                                                      */
  181.     /*----------------------------------------------------------------*/
  182. };
  183. /* void mmi_audply_entry_main(){}; */
  184. #if 0
  185. /* under construction !*/
  186. /* under construction !*/
  187. /* under construction !*/
  188. /* under construction !*/
  189. /* under construction !*/
  190. /* under construction !*/
  191. /* under construction !*/
  192. /* under construction !*/
  193. /* under construction !*/
  194. /* under construction !*/
  195. /* under construction !*/
  196. /* under construction !*/
  197. /* under construction !*/
  198. #endif /* 0 */ 
  199. //void mmi_audply_save_volume(){};
  200. //void InitAudioPlayerApp(){};
  201. /*****************************************************************************
  202.  * FUNCTION
  203.  *  evshed_resume_all_events
  204.  * DESCRIPTION
  205.  *  
  206.  * PARAMETERS
  207.  *  es      [?]     
  208.  * RETURNS
  209.  *  void
  210.  *****************************************************************************/
  211. void evshed_resume_all_events(event_scheduler *es)
  212. {
  213.     /*----------------------------------------------------------------*/
  214.     /* Local Variables                                                */
  215.     /*----------------------------------------------------------------*/
  216.     /*----------------------------------------------------------------*/
  217.     /* Code Body                                                      */
  218.     /*----------------------------------------------------------------*/
  219. };
  220. /*****************************************************************************
  221.  * FUNCTION
  222.  *  event_scheduler1_ptr
  223.  * DESCRIPTION
  224.  *  
  225.  * PARAMETERS
  226.  *  void
  227.  * RETURNS
  228.  *  void
  229.  *****************************************************************************/
  230. void event_scheduler1_ptr()
  231. {
  232.     /*----------------------------------------------------------------*/
  233.     /* Local Variables                                                */
  234.     /*----------------------------------------------------------------*/
  235.     /*----------------------------------------------------------------*/
  236.     /* Code Body                                                      */
  237.     /*----------------------------------------------------------------*/
  238. };
  239. /*****************************************************************************
  240.  * FUNCTION
  241.  *  lcd_fb_update_to_memory
  242.  * DESCRIPTION
  243.  *  
  244.  * PARAMETERS
  245.  *  void
  246.  * RETURNS
  247.  *  void
  248.  *****************************************************************************/
  249. void lcd_fb_update_to_memory()
  250. {
  251.     /*----------------------------------------------------------------*/
  252.     /* Local Variables                                                */
  253.     /*----------------------------------------------------------------*/
  254.     /*----------------------------------------------------------------*/
  255.     /* Code Body                                                      */
  256.     /*----------------------------------------------------------------*/
  257. };
  258. /* void FS_GetDrive(){}; */
  259. /*****************************************************************************
  260.  * FUNCTION
  261.  *  mmi_phb_image_check_drive
  262.  * DESCRIPTION
  263.  *  
  264.  * PARAMETERS
  265.  *  void
  266.  * RETURNS
  267.  *  void
  268.  *****************************************************************************/
  269. void mmi_phb_image_check_drive()
  270. {
  271.     /*----------------------------------------------------------------*/
  272.     /* Local Variables                                                */
  273.     /*----------------------------------------------------------------*/
  274.     /*----------------------------------------------------------------*/
  275.     /* Code Body                                                      */
  276.     /*----------------------------------------------------------------*/
  277. };
  278. //void FS_Delete(){};
  279. //void FS_CreateDir(){};
  280. /*****************************************************************************
  281.  * FUNCTION
  282.  *  writeRoamingStatusForMMS
  283.  * DESCRIPTION
  284.  *  
  285.  * PARAMETERS
  286.  *  void
  287.  * RETURNS
  288.  *  void
  289.  *****************************************************************************/
  290. void writeRoamingStatusForMMS()
  291. {
  292.     /*----------------------------------------------------------------*/
  293.     /* Local Variables                                                */
  294.     /*----------------------------------------------------------------*/
  295.     /*----------------------------------------------------------------*/
  296.     /* Code Body                                                      */
  297.     /*----------------------------------------------------------------*/
  298. };
  299. /*****************************************************************************
  300.  * FUNCTION
  301.  *  setMmscVersion
  302.  * DESCRIPTION
  303.  *  
  304.  * PARAMETERS
  305.  *  void
  306.  * RETURNS
  307.  *  void
  308.  *****************************************************************************/
  309. void setMmscVersion()
  310. {
  311.     /*----------------------------------------------------------------*/
  312.     /* Local Variables                                                */
  313.     /*----------------------------------------------------------------*/
  314.     /*----------------------------------------------------------------*/
  315.     /* Code Body                                                      */
  316.     /*----------------------------------------------------------------*/
  317. };
  318. /* void FS_Write(){}; */
  319. /*****************************************************************************
  320.  * FUNCTION
  321.  *  mmi_vcard_entry_forward_option
  322.  * DESCRIPTION
  323.  *  
  324.  * PARAMETERS
  325.  *  void
  326.  * RETURNS
  327.  *  void
  328.  *****************************************************************************/
  329. void mmi_vcard_entry_forward_option()
  330. {
  331.     /*----------------------------------------------------------------*/
  332.     /* Local Variables                                                */
  333.     /*----------------------------------------------------------------*/
  334.     /*----------------------------------------------------------------*/
  335.     /* Code Body                                                      */
  336.     /*----------------------------------------------------------------*/
  337. };
  338. /*****************************************************************************
  339.  * FUNCTION
  340.  *  mmi_vobj_entry_recv_object
  341.  * DESCRIPTION
  342.  *  
  343.  * PARAMETERS
  344.  *  void
  345.  * RETURNS
  346.  *  void
  347.  *****************************************************************************/
  348. void mmi_vobj_entry_recv_object()
  349. {
  350.     /*----------------------------------------------------------------*/
  351.     /* Local Variables                                                */
  352.     /*----------------------------------------------------------------*/
  353.     /*----------------------------------------------------------------*/
  354.     /* Code Body                                                      */
  355.     /*----------------------------------------------------------------*/
  356. };
  357. /*****************************************************************************
  358.  * FUNCTION
  359.  *  mmi_vobj_get_file_buffer_size
  360.  * DESCRIPTION
  361.  *  
  362.  * PARAMETERS
  363.  *  void
  364.  * RETURNS
  365.  *  void
  366.  *****************************************************************************/
  367. void mmi_vobj_get_file_buffer_size()
  368. {
  369.     /*----------------------------------------------------------------*/
  370.     /* Local Variables                                                */
  371.     /*----------------------------------------------------------------*/
  372.     /*----------------------------------------------------------------*/
  373.     /* Code Body                                                      */
  374.     /*----------------------------------------------------------------*/
  375. };
  376. /*****************************************************************************
  377.  * FUNCTION
  378.  *  custom_get_fixed_ems_imelody_range
  379.  * DESCRIPTION
  380.  *  
  381.  * PARAMETERS
  382.  *  void
  383.  * RETURNS
  384.  *  void
  385.  *****************************************************************************/
  386. void custom_get_fixed_ems_imelody_range()
  387. {
  388.     /*----------------------------------------------------------------*/
  389.     /* Local Variables                                                */
  390.     /*----------------------------------------------------------------*/
  391.     /*----------------------------------------------------------------*/
  392.     /* Code Body                                                      */
  393.     /*----------------------------------------------------------------*/
  394. };
  395. /*****************************************************************************
  396.  * FUNCTION
  397.  *  mmi_vcard_forward_option_select_card
  398.  * DESCRIPTION
  399.  *  
  400.  * PARAMETERS
  401.  *  void
  402.  * RETURNS
  403.  *  void
  404.  *****************************************************************************/
  405. void mmi_vcard_forward_option_select_card()
  406. {
  407.     /*----------------------------------------------------------------*/
  408.     /* Local Variables                                                */
  409.     /*----------------------------------------------------------------*/
  410.     /*----------------------------------------------------------------*/
  411.     /* Code Body                                                      */
  412.     /*----------------------------------------------------------------*/
  413. };
  414. /*****************************************************************************
  415.  * FUNCTION
  416.  *  mmi_vcard_forward_option_my_card
  417.  * DESCRIPTION
  418.  *  
  419.  * PARAMETERS
  420.  *  void
  421.  * RETURNS
  422.  *  void
  423.  *****************************************************************************/
  424. void mmi_vcard_forward_option_my_card()
  425. {
  426.     /*----------------------------------------------------------------*/
  427.     /* Local Variables                                                */
  428.     /*----------------------------------------------------------------*/
  429.     /*----------------------------------------------------------------*/
  430.     /* Code Body                                                      */
  431.     /*----------------------------------------------------------------*/
  432. };
  433. /*****************************************************************************
  434.  * FUNCTION
  435.  *  mmi_vcard_writer_v21_to_file
  436.  * DESCRIPTION
  437.  *  
  438.  * PARAMETERS
  439.  *  void
  440.  * RETURNS
  441.  *  void
  442.  *****************************************************************************/
  443. void mmi_vcard_writer_v21_to_file()
  444. {
  445.     /*----------------------------------------------------------------*/
  446.     /* Local Variables                                                */
  447.     /*----------------------------------------------------------------*/
  448.     /*----------------------------------------------------------------*/
  449.     /* Code Body                                                      */
  450.     /*----------------------------------------------------------------*/
  451. };
  452. /*****************************************************************************
  453.  * FUNCTION
  454.  *  mmi_vcard_get_bday_to_buff
  455.  * DESCRIPTION
  456.  *  
  457.  * PARAMETERS
  458.  *  void
  459.  * RETURNS
  460.  *  void
  461.  *****************************************************************************/
  462. void mmi_vcard_get_bday_to_buff()
  463. {
  464.     /*----------------------------------------------------------------*/
  465.     /* Local Variables                                                */
  466.     /*----------------------------------------------------------------*/
  467.     /*----------------------------------------------------------------*/
  468.     /* Code Body                                                      */
  469.     /*----------------------------------------------------------------*/
  470. };
  471. /*****************************************************************************
  472.  * FUNCTION
  473.  *  mmi_vobj_fs_check_folder
  474.  * DESCRIPTION
  475.  *  
  476.  * PARAMETERS
  477.  *  void
  478.  * RETURNS
  479.  *  void
  480.  *****************************************************************************/
  481. void mmi_vobj_fs_check_folder()
  482. {
  483.     /*----------------------------------------------------------------*/
  484.     /* Local Variables                                                */
  485.     /*----------------------------------------------------------------*/
  486.     /*----------------------------------------------------------------*/
  487.     /* Code Body                                                      */
  488.     /*----------------------------------------------------------------*/
  489. };
  490. /*****************************************************************************
  491.  * FUNCTION
  492.  *  mmi_vcard_reader_retrive_bday
  493.  * DESCRIPTION
  494.  *  
  495.  * PARAMETERS
  496.  *  void
  497.  * RETURNS
  498.  *  void
  499.  *****************************************************************************/
  500. void mmi_vcard_reader_retrive_bday()
  501. {
  502.     /*----------------------------------------------------------------*/
  503.     /* Local Variables                                                */
  504.     /*----------------------------------------------------------------*/
  505.     /*----------------------------------------------------------------*/
  506.     /* Code Body                                                      */
  507.     /*----------------------------------------------------------------*/
  508. };
  509. /*****************************************************************************
  510.  * FUNCTION
  511.  *  mmi_vcard_reader_retrive_org
  512.  * DESCRIPTION
  513.  *  
  514.  * PARAMETERS
  515.  *  void
  516.  * RETURNS
  517.  *  void
  518.  *****************************************************************************/
  519. void mmi_vcard_reader_retrive_org()
  520. {
  521.     /*----------------------------------------------------------------*/
  522.     /* Local Variables                                                */
  523.     /*----------------------------------------------------------------*/
  524.     /*----------------------------------------------------------------*/
  525.     /* Code Body                                                      */
  526.     /*----------------------------------------------------------------*/
  527. };
  528. /*****************************************************************************
  529.  * FUNCTION
  530.  *  mmi_vcard_reader_retrive_email
  531.  * DESCRIPTION
  532.  *  
  533.  * PARAMETERS
  534.  *  void
  535.  * RETURNS
  536.  *  void
  537.  *****************************************************************************/
  538. void mmi_vcard_reader_retrive_email()
  539. {
  540.     /*----------------------------------------------------------------*/
  541.     /* Local Variables                                                */
  542.     /*----------------------------------------------------------------*/
  543.     /*----------------------------------------------------------------*/
  544.     /* Code Body                                                      */
  545.     /*----------------------------------------------------------------*/
  546. };
  547. /*****************************************************************************
  548.  * FUNCTION
  549.  *  mmi_vcard_reader_retrive_number
  550.  * DESCRIPTION
  551.  *  
  552.  * PARAMETERS
  553.  *  void
  554.  * RETURNS
  555.  *  void
  556.  *****************************************************************************/
  557. void mmi_vcard_reader_retrive_number()
  558. {
  559.     /*----------------------------------------------------------------*/
  560.     /* Local Variables                                                */
  561.     /*----------------------------------------------------------------*/
  562.     /*----------------------------------------------------------------*/
  563.     /* Code Body                                                      */
  564.     /*----------------------------------------------------------------*/
  565. };
  566. /*****************************************************************************
  567.  * FUNCTION
  568.  *  mmi_vcard_uti_get_line
  569.  * DESCRIPTION
  570.  *  
  571.  * PARAMETERS
  572.  *  void
  573.  * RETURNS
  574.  *  void
  575.  *****************************************************************************/
  576. void mmi_vcard_uti_get_line()
  577. {
  578.     /*----------------------------------------------------------------*/
  579.     /* Local Variables                                                */
  580.     /*----------------------------------------------------------------*/
  581.     /*----------------------------------------------------------------*/
  582.     /* Code Body                                                      */
  583.     /*----------------------------------------------------------------*/
  584. };
  585. /*****************************************************************************
  586.  * FUNCTION
  587.  *  mmi_vcard_reader_get_field
  588.  * DESCRIPTION
  589.  *  
  590.  * PARAMETERS
  591.  *  void
  592.  * RETURNS
  593.  *  void
  594.  *****************************************************************************/
  595. void mmi_vcard_reader_get_field()
  596. {
  597.     /*----------------------------------------------------------------*/
  598.     /* Local Variables                                                */
  599.     /*----------------------------------------------------------------*/
  600.     /*----------------------------------------------------------------*/
  601.     /* Code Body                                                      */
  602.     /*----------------------------------------------------------------*/
  603. };
  604. /*****************************************************************************
  605.  * FUNCTION
  606.  *  mmi_vcard_reader_check_header
  607.  * DESCRIPTION
  608.  *  
  609.  * PARAMETERS
  610.  *  void
  611.  * RETURNS
  612.  *  void
  613.  *****************************************************************************/
  614. void mmi_vcard_reader_check_header()
  615. {
  616.     /*----------------------------------------------------------------*/
  617.     /* Local Variables                                                */
  618.     /*----------------------------------------------------------------*/
  619.     /*----------------------------------------------------------------*/
  620.     /* Code Body                                                      */
  621.     /*----------------------------------------------------------------*/
  622. };
  623. /*****************************************************************************
  624.  * FUNCTION
  625.  *  mmi_vcard_reader_check_version
  626.  * DESCRIPTION
  627.  *  
  628.  * PARAMETERS
  629.  *  void
  630.  * RETURNS
  631.  *  void
  632.  *****************************************************************************/
  633. void mmi_vcard_reader_check_version()
  634. {
  635.     /*----------------------------------------------------------------*/
  636.     /* Local Variables                                                */
  637.     /*----------------------------------------------------------------*/
  638.     /*----------------------------------------------------------------*/
  639.     /* Code Body                                                      */
  640.     /*----------------------------------------------------------------*/
  641. };
  642. /*****************************************************************************
  643.  * FUNCTION
  644.  *  mmi_vcard_uti_get_single_line
  645.  * DESCRIPTION
  646.  *  
  647.  * PARAMETERS
  648.  *  void
  649.  * RETURNS
  650.  *  void
  651.  *****************************************************************************/
  652. void mmi_vcard_uti_get_single_line()
  653. {
  654.     /*----------------------------------------------------------------*/
  655.     /* Local Variables                                                */
  656.     /*----------------------------------------------------------------*/
  657.     /*----------------------------------------------------------------*/
  658.     /* Code Body                                                      */
  659.     /*----------------------------------------------------------------*/
  660. };
  661. //int mmi_audply_is_playing(){return 0;};
  662. //void InitStopwatchApp(){};
  663. //void InitStopwatchNVRAM(){};
  664. //void mmi_audply_is_play_activated(){};
  665. //void FS_SetAttributes() {};
  666. //void mmi_audply_press_dec_volume() {};
  667. //void mmi_audply_press_inc_volume() {};
  668. //void mmi_audply_single_play(){};
  669. //void mmi_audply_exit_subLCD() {};
  670. //void mmi_audply_redraw_subLCD(BOOL is_show) {};
  671. //void FS_FindClose() {};
  672. //void FS_FindNext() {};
  673. //void FS_FindFirst() {};
  674. /*****************************************************************************
  675.  * FUNCTION
  676.  *  mmi_chset_convert
  677.  * DESCRIPTION
  678.  *  
  679.  * PARAMETERS
  680.  *  src_type        [IN]        
  681.  *  dest_type       [IN]        
  682.  *  src_buff        [?]         
  683.  *  dest_buff       [?]         
  684.  *  dest_size       [IN]        
  685.  * RETURNS
  686.  *  
  687.  *****************************************************************************/
  688. kal_int32 mmi_chset_convert(
  689.             mmi_chset_enum src_type,
  690.             mmi_chset_enum dest_type,
  691.             char *src_buff,
  692.             char *dest_buff,
  693.             kal_int32 dest_size)
  694. {
  695.     /*----------------------------------------------------------------*/
  696.     /* Local Variables                                                */
  697.     /*----------------------------------------------------------------*/
  698.     /*----------------------------------------------------------------*/
  699.     /* Code Body                                                      */
  700.     /*----------------------------------------------------------------*/
  701.     memcpy(dest_buff, src_buff, dest_size);
  702.     return pfnUnicodeStrlen(dest_buff) * 2;
  703. }
  704. /*****************************************************************************
  705.  * FUNCTION
  706.  *  mmi_chset_do_not_use_space_for_unknown_character
  707.  * DESCRIPTION
  708.  *  
  709.  * PARAMETERS
  710.  *  void     
  711.  * RETURNS
  712.  *  void
  713.  *****************************************************************************/
  714. void mmi_chset_do_not_use_space_for_unknown_character(void)
  715. {
  716. }
  717. /*****************************************************************************
  718.  * FUNCTION
  719.  *  mmi_chset_use_space_for_unknown_character
  720.  * DESCRIPTION
  721.  *  
  722.  * PARAMETERS
  723.  *  dest            [?]         
  724.  *  dest_size       [IN]        
  725.  *  src             [?]         
  726.  *  encoding        [IN]        
  727.  * RETURNS
  728.  *  
  729.  *****************************************************************************/
  730. void mmi_chset_use_space_for_unknown_character(void)
  731. {
  732. }
  733. /*****************************************************************************
  734.  * FUNCTION
  735.  *  mmi_chset_mixed_text_to_ucs2_str
  736.  * DESCRIPTION
  737.  *  
  738.  * PARAMETERS
  739.  *  dest            [?]         
  740.  *  dest_size       [IN]        
  741.  *  src             [?]         
  742.  *  encoding        [IN]        
  743.  * RETURNS
  744.  *  void
  745.  *****************************************************************************/
  746. void mmi_chset_mixed_text_to_ucs2_str(kal_uint8 *dest, kal_int16 dest_size, kal_uint8 *src, mmi_chset_enum encoding)
  747. {
  748.     /*----------------------------------------------------------------*/
  749.     /* Local Variables                                                */
  750.     /*----------------------------------------------------------------*/
  751.     /*----------------------------------------------------------------*/
  752.     /* Code Body                                                      */
  753.     /*----------------------------------------------------------------*/
  754.     memcpy(dest, src, dest_size);
  755. }
  756. /*****************************************************************************
  757.  * FUNCTION
  758.  *  mmi_chset_text_to_ucs2
  759.  * DESCRIPTION
  760.  *  
  761.  * PARAMETERS
  762.  *  dest            [?]         
  763.  *  dest_size       [IN]        
  764.  *  src             [?]         
  765.  * RETURNS
  766.  *  
  767.  *****************************************************************************/
  768. kal_int32 mmi_chset_text_to_ucs2(kal_uint8 *dest, kal_int32 dest_size, kal_uint8 *src)
  769. {
  770.     /*----------------------------------------------------------------*/
  771.     /* Local Variables                                                */
  772.     /*----------------------------------------------------------------*/
  773.     /*----------------------------------------------------------------*/
  774.     /* Code Body                                                      */
  775.     /*----------------------------------------------------------------*/
  776.     memcpy(dest, src, dest_size);
  777.     return pfnUnicodeStrlen((const S8*)dest);
  778. }
  779. /*****************************************************************************
  780.  * FUNCTION
  781.  *  kal_get_time
  782.  * DESCRIPTION
  783.  *  
  784.  * PARAMETERS
  785.  *  ticks_ptr       [?]     
  786.  * RETURNS
  787.  *  void
  788.  *****************************************************************************/
  789. void kal_get_time(kal_uint32 *ticks_ptr)
  790. {
  791.     /*----------------------------------------------------------------*/
  792.     /* Local Variables                                                */
  793.     /*----------------------------------------------------------------*/
  794.     time_t cur_time;
  795.     /*----------------------------------------------------------------*/
  796.     /* Code Body                                                      */
  797.     /*----------------------------------------------------------------*/
  798.     time(&cur_time);
  799.     *ticks_ptr = (kal_uint32) ((double)cur_time / 0.004615);
  800. }
  801. /*****************************************************************************
  802.  * FUNCTION
  803.  *  kal_ticks_to_milli_secs
  804.  * DESCRIPTION
  805.  *  
  806.  * PARAMETERS
  807.  *  ticks       [IN]     
  808.  * RETURNS
  809.  *  kal_uint32
  810.  *****************************************************************************/
  811. kal_uint32 kal_ticks_to_milli_secs ( kal_uint32 ticks )
  812. {
  813.    return( ticks * 4.615 );
  814. }
  815. /*****************************************************************************
  816.  * FUNCTION
  817.  *  get_aud_info
  818.  * DESCRIPTION
  819.  *  
  820.  * PARAMETERS
  821.  *  path        [IN]        
  822.  *  id3         [?]         
  823.  * RETURNS
  824.  *  
  825.  *****************************************************************************/
  826. int get_aud_info(char const *path, aud_info_struct *id3)
  827. {
  828.     /*----------------------------------------------------------------*/
  829.     /* Local Variables                                                */
  830.     /*----------------------------------------------------------------*/
  831.     FS_HANDLE fd = FS_Open((const WCHAR*)path, FS_READ_ONLY);
  832.     /*----------------------------------------------------------------*/
  833.     /* Code Body                                                      */
  834.     /*----------------------------------------------------------------*/
  835.     memset(id3, 0, sizeof(aud_info_struct));
  836.     if (fd >= 0)
  837.     {
  838.         FS_GetFileSize(fd, (U32*) (&id3->size));
  839.         FS_Close(fd);
  840.     }
  841.     return 0;
  842. }
  843. #ifdef __MMI_FILE_MANAGER__
  844. extern fmgr_filter_struct fmgr_filter[];
  845. /*****************************************************************************
  846.  * FUNCTION
  847.  *  fmt_delete_by_filter_hdlr
  848.  * DESCRIPTION
  849.  *  
  850.  * PARAMETERS
  851.  *  path            [?]     
  852.  *  filter_mask     [?]     
  853.  * RETURNS
  854.  *  
  855.  *****************************************************************************/
  856. S32 fmt_delete_by_filter_hdlr(U8 *path, FMGR_FILTER *filter_mask)
  857. {
  858.     /*----------------------------------------------------------------*/
  859.     /* Local Variables                                                */
  860.     /*----------------------------------------------------------------*/
  861.     FS_HANDLE handle;
  862.     FS_DOSDirEntry file_info;
  863.     U8 file_name[40];
  864.     S32 fs_ret;
  865.     U8 i;
  866.     /*----------------------------------------------------------------*/
  867.     /* Code Body                                                      */
  868.     /*----------------------------------------------------------------*/
  869.     pfnUnicodeStrcat((PS8) path, (PS8) L"*.*");
  870.     handle = FS_FindFirst((WCHAR*) path, 0, 0, &file_info, (WCHAR*) file_name, 40);
  871.     if (handle < 0)
  872.     {
  873.         return FS_NO_ERROR;
  874.     }
  875.     mmi_fmgr_remove_last_dir((char*)path);
  876.     fs_ret = FS_SetCurrentDir((WCHAR*) path);
  877.     if (fs_ret < 0)
  878.     {
  879.         return fs_ret;
  880.     }
  881.     while (1)
  882.     {
  883.         for (i = 0; i < FMGR_MAX_FILTER_COUNT; i++)
  884.         {
  885.             if (FMGR_FILTER_IS_SET(filter_mask, fmgr_filter[i].type))
  886.             {
  887.                 if (strncmp((char*)file_info.Extension, (char*)fmgr_filter[i].ext, 3) == 0)
  888.                 {
  889.                     fs_ret = FS_Delete((WCHAR*) file_name);
  890.                     if (fs_ret < 0)
  891.                     {
  892.                         return fs_ret;
  893.                     }
  894.                     break;
  895.                 }
  896.             }
  897.         }
  898.         fs_ret = FS_FindNext(handle, &file_info, (WCHAR*) file_name, 40);
  899.         if (fs_ret < 0)
  900.         {
  901.             break;
  902.         }
  903.     }
  904.     FS_FindClose(handle);
  905.     return FS_NO_ERROR;
  906. }
  907. /*****************************************************************************
  908.  * FUNCTION
  909.  *  fmt_delete_hdlr
  910.  * DESCRIPTION
  911.  *  
  912.  * PARAMETERS
  913.  *  local_para_ptr      [?]     
  914.  *  peer_buff_ptr       [?]     
  915.  * RETURNS
  916.  *  void
  917.  *****************************************************************************/
  918. void fmt_delete_hdlr(local_para_struct *local_para_ptr, peer_buff_struct *peer_buff_ptr)
  919. {
  920.     /*----------------------------------------------------------------*/
  921.     /* Local Variables                                                */
  922.     /*----------------------------------------------------------------*/
  923.     mmi_fmt_delete_req_strcut *msg_ptr;
  924.     mmi_fmt_delete_rsp_strcut param_ptr;
  925.     S32 fs_ret;
  926.     /*----------------------------------------------------------------*/
  927.     /* Code Body                                                      */
  928.     /*----------------------------------------------------------------*/
  929.     msg_ptr = (mmi_fmt_delete_req_strcut*) local_para_ptr;
  930.     if (msg_ptr->type == FS_RECURSIVE_TYPE)
  931.     {
  932.         fs_ret = FS_XDelete((WCHAR*) msg_ptr->path, FS_FILE_TYPE | FS_DIR_TYPE | FS_RECURSIVE_TYPE, NULL, 0);
  933.     }
  934.     else if (msg_ptr->type == FS_DIR_TYPE)
  935.     {
  936.         if (FMGR_FILTER_IS_SET(((FMGR_FILTER*) (msg_ptr->filter)), FMGR_TYPE_ALL))
  937.         {
  938.             fs_ret = FS_XDelete((WCHAR*) msg_ptr->path, FS_FILE_TYPE, NULL, 0);
  939.         }
  940.         else
  941.         {
  942.             fs_ret = fmt_delete_by_filter_hdlr(msg_ptr->path, (FMGR_FILTER*) msg_ptr->filter);
  943.         }
  944.     }
  945.     else if (msg_ptr->type == FS_FILE_TYPE)
  946.     {
  947.         fs_ret = FS_Delete((WCHAR*) msg_ptr->path);
  948.     }
  949.     param_ptr.result = fs_ret;
  950.     fmgr_delete_rsp_hdlr(&param_ptr);
  951.     return;
  952. }
  953. /*****************************************************************************
  954.  * FUNCTION
  955.  *  fmt_copy_hdlr
  956.  * DESCRIPTION
  957.  *  
  958.  * PARAMETERS
  959.  *  local_para_ptr      [?]     
  960.  *  peer_buff_ptr       [?]     
  961.  * RETURNS
  962.  *  void
  963.  *****************************************************************************/
  964. void fmt_copy_hdlr(local_para_struct *local_para_ptr, peer_buff_struct *peer_buff_ptr)
  965. {
  966.     /*----------------------------------------------------------------*/
  967.     /* Local Variables                                                */
  968.     /*----------------------------------------------------------------*/
  969.     mmi_fmt_copy_req_strcut *msg_ptr;
  970.     mmi_fmt_copy_rsp_strcut param_ptr;
  971.     S32 fs_ret;
  972.     /*----------------------------------------------------------------*/
  973.     /* Code Body                                                      */
  974.     /*----------------------------------------------------------------*/
  975.     msg_ptr = (mmi_fmt_copy_req_strcut*) local_para_ptr;
  976.     if (msg_ptr->action == FMT_COPY)
  977.     {
  978.         fs_ret = FS_Move((WCHAR*) msg_ptr->src_file, (WCHAR*) msg_ptr->dest_file, FS_MOVE_COPY, NULL, NULL, 0);
  979.     }
  980.     else
  981.     {
  982.         fs_ret = FS_Move((WCHAR*) msg_ptr->src_file, (WCHAR*) msg_ptr->dest_file, FS_MOVE_KILL, NULL, NULL, 0);
  983.     }
  984.     param_ptr.result = fs_ret;
  985.     fmgr_copy_rsp_hdlr(&param_ptr);
  986.     return;
  987. }
  988. #endif /* __MMI_FILE_MANAGER__ */ 
  989. int g_chset_text_encoding;
  990. #endif /* MMI_ON_WIN32 */