Removed Unused Functions from Myfiles 81/149781/1 submit/tizen_4.0/20170915.103328
authorshubham kumar <shubham.srib@samsung.com>
Mon, 11 Sep 2017 08:53:36 +0000 (14:23 +0530)
committerRahul Dadhich <r.dadhich@samsung.com>
Wed, 13 Sep 2017 05:41:28 +0000 (05:41 +0000)
Change-Id: I4e0487f65ea396de697f8f2b3226fe6f97614328
Signed-off-by: shubham kumar <shubham.srib@samsung.com>
(cherry picked from commit 070a62fd1af08ffcd1f5e1c317501a7761f282ec)

69 files changed:
.cproject
.tproject
inc/mf-callback.h
inc/mf-cancel.h
inc/mf-context-popup.h
inc/mf-file-util.h
inc/mf-fm-svc-wrapper.h
inc/mf-fs-util.h
inc/mf-gengrid.h
inc/mf-genlist.h
inc/mf-launch.h
inc/mf-main.h
inc/mf-media.h
inc/mf-navi-bar.h
inc/mf-object-item.h
inc/mf-object.h
inc/mf-otg.h
inc/mf-popup.h
inc/mf-request.h
inc/mf-search-internal.h
inc/mf-search.h
inc/mf-setting-view.h
inc/mf-storage-space.h
inc/mf-thumb-gen.h
inc/mf-tray-item.h
inc/mf-ug-detail-fs.h
inc/mf-util.h
inc/mf-view.h
src/common/file-operation/mf-cancel.c
src/common/file-operation/mf-copy-internal.c
src/common/file-operation/mf-request.c
src/common/file-operation/mf-search-internal.c
src/common/file-operation/mf-search.c
src/common/file-system/mf-file-attr.c
src/common/mf-callback.c
src/common/mf-detail.c
src/common/mf-file-util.c
src/common/mf-fm-svc-wrapper.c
src/common/mf-fs-monitor.c
src/common/mf-launch.c
src/common/mf-media-content.c
src/common/mf-otg.c
src/common/mf-storage-space.c
src/common/mf-ug-detail-fs.c
src/common/mf-util.c
src/media-db/mf-media-db.c
src/media-db/mf-media.c
src/mf-main.c
src/thumbnail/mf-thumb-gen.c
src/widget/mf-category-view.c
src/widget/mf-context-popup.c
src/widget/mf-detail-view.c
src/widget/mf-downloaded-history-view.c
src/widget/mf-edit-view.c
src/widget/mf-gengrid.c
src/widget/mf-genlist.c
src/widget/mf-navi-bar.c
src/widget/mf-normal-view.c
src/widget/mf-object-item.c
src/widget/mf-object.c
src/widget/mf-popup.c
src/widget/mf-recent-view.c
src/widget/mf-root-view.c
src/widget/mf-search-bar.c
src/widget/mf-search-view.c
src/widget/mf-setting-view.c
src/widget/mf-tray-item.c
src/widget/mf-view.c
tizen-manifest.xml

index 9e7785a..89d73a7 100644 (file)
--- a/.cproject
+++ b/.cproject
                                                                <option id="gnu.cpp.compiler.option.optimization.level.1782348802" name="Optimization Level" superClass="gnu.cpp.compiler.option.optimization.level" value="gnu.cpp.compiler.optimization.level.none" valueType="enumerated"/>
                                                                <option id="sbi.gnu.cpp.compiler.option.debugging.level.core.1718691193" name="Debug level" superClass="sbi.gnu.cpp.compiler.option.debugging.level.core" value="gnu.cpp.compiler.debugging.level.max" valueType="enumerated"/>
                                                                <option id="sbi.gnu.cpp.compiler.option.362691424" name="Tizen-Target" superClass="sbi.gnu.cpp.compiler.option" valueType="userObjs">
-                                                                       <listOptionValue builtIn="false" value="mobile-3.0-emulator.core.private_llvm37.i386.core.app"/>
+                                                                       <listOptionValue builtIn="false" value="mobile-4.0-device.core.private.20170904_1_llvm40.armel.core.app"/>
                                                                </option>
                                                                <option id="sbi.gnu.cpp.compiler.option.frameworks_inc.core.647176444" name="Tizen-Frameworks-Include-Path" superClass="sbi.gnu.cpp.compiler.option.frameworks_inc.core" valueType="includePath">
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/libxml2&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include&quot;"/>
-                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/EGL&quot;"/>
-                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/GLES&quot;"/>
-                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/GLES2&quot;"/>
-                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/GLES3&quot;"/>
-                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/KHR&quot;"/>
-                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/SDL2&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/appcore/&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/appcore-agent&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/appfw&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/asp/&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/attach-panel&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/aul/&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/auth-fw&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/notification&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/nsd/&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/phonenumber-utils&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/pkgmgr&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/privacy-privilege-manager/&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/rua/&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/SDL2&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/sensor&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/service-adaptor&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/shortcut&quot;"/>
                                                                        <listOptionValue builtIn="false" value="${RS_COMPILER_MISC}"/>
                                                                        <listOptionValue builtIn="false" value=" -fPIE"/>
                                                                        <listOptionValue builtIn="false" value="--sysroot=&quot;${SBI_SYSROOT}&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="-mthumb"/>
                                                                </option>
                                                                <option id="gnu.cpp.compiler.option.include.paths.1192727817" name="Include paths (-I)" superClass="gnu.cpp.compiler.option.include.paths" valueType="includePath">
                                                                        <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/inc}&quot;"/>
                                                                <option defaultValue="gnu.c.optimization.level.none" id="gnu.c.compiler.option.optimization.level.330811004" name="Optimization Level" superClass="gnu.c.compiler.option.optimization.level" valueType="enumerated"/>
                                                                <option id="sbi.gnu.c.compiler.option.debugging.level.core.1581159531" name="Debug level" superClass="sbi.gnu.c.compiler.option.debugging.level.core" value="gnu.c.debugging.level.max" valueType="enumerated"/>
                                                                <option id="sbi.gnu.c.compiler.option.2102543252" name="Tizen-Target" superClass="sbi.gnu.c.compiler.option" valueType="userObjs">
-                                                                       <listOptionValue builtIn="false" value="mobile-3.0-emulator.core.private_llvm37.i386.core.app"/>
+                                                                       <listOptionValue builtIn="false" value="mobile-4.0-device.core.private.20170904_1_llvm40.armel.core.app"/>
                                                                </option>
                                                                <option id="sbi.gnu.c.compiler.option.frameworks_inc.core.6041637" name="Tizen-Frameworks-Include-Path" superClass="sbi.gnu.c.compiler.option.frameworks_inc.core" valueType="includePath">
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/libxml2&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include&quot;"/>
-                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/EGL&quot;"/>
-                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/GLES&quot;"/>
-                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/GLES2&quot;"/>
-                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/GLES3&quot;"/>
-                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/KHR&quot;"/>
-                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/SDL2&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/appcore/&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/appcore-agent&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/appfw&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/asp/&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/attach-panel&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/aul/&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/auth-fw&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/notification&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/nsd/&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/phonenumber-utils&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/pkgmgr&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/privacy-privilege-manager/&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/rua/&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/SDL2&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/sensor&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/service-adaptor&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/shortcut&quot;"/>
                                                                        <listOptionValue builtIn="false" value="${RS_COMPILER_MISC}"/>
                                                                        <listOptionValue builtIn="false" value=" -fPIE"/>
                                                                        <listOptionValue builtIn="false" value="--sysroot=&quot;${SBI_SYSROOT}&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="-mthumb"/>
                                                                </option>
                                                                <option id="gnu.c.compiler.option.include.paths.1547614412" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" valueType="includePath">
                                                                        <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/inc}&quot;"/>
                                                                        <additionalInput kind="additionalinput" paths="$(LIBS)"/>
                                                                </inputType>
                                                        </tool>
-                                                       <tool command="i386-linux-gnueabi-as" id="org.tizen.nativeapp.tool.sbi.gnu.assembler.base.417419640" name="Assembler" superClass="org.tizen.nativeapp.tool.sbi.gnu.assembler.base">
+                                                       <tool command="arm-linux-gnueabi-as" id="org.tizen.nativeapp.tool.sbi.gnu.assembler.base.417419640" name="Assembler" superClass="org.tizen.nativeapp.tool.sbi.gnu.assembler.base">
                                                                <inputType id="cdt.managedbuild.tool.gnu.assembler.input.1791248325" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
                                                        </tool>
                                                        <tool id="org.tizen.nativecore.tool.fnmapgen.1378249552" name="C FN-Map Generator" superClass="org.tizen.nativecore.tool.fnmapgen"/>
                                                                <option id="sbi.gnu.cpp.compiler.option.frameworks_inc.core.253290738" name="Tizen-Frameworks-Include-Path" superClass="sbi.gnu.cpp.compiler.option.frameworks_inc.core" valueType="includePath">
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/libxml2&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include&quot;"/>
-                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/EGL&quot;"/>
-                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/GLES&quot;"/>
-                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/GLES2&quot;"/>
-                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/GLES3&quot;"/>
-                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/KHR&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/SDL2&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/appcore/&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/appcore-agent&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/notification&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/nsd/&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/phonenumber-utils&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/pkgmgr&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/rua/&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/sensor&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/service-adaptor&quot;"/>
                                                                <option id="sbi.gnu.c.compiler.option.frameworks_inc.core.2068834509" name="Tizen-Frameworks-Include-Path" superClass="sbi.gnu.c.compiler.option.frameworks_inc.core" valueType="includePath">
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/libxml2&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include&quot;"/>
-                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/EGL&quot;"/>
-                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/GLES&quot;"/>
-                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/GLES2&quot;"/>
-                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/GLES3&quot;"/>
-                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/KHR&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/SDL2&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/appcore/&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/appcore-agent&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/notification&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/nsd/&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/phonenumber-utils&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/pkgmgr&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/rua/&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/sensor&quot;"/>
                                                                        <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/service-adaptor&quot;"/>
index 56660b2..468a834 100644 (file)
--- a/.tproject
+++ b/.tproject
@@ -2,7 +2,7 @@
 <tproject xmlns="http://www.tizen.org/tproject">
     <platforms>
         <platform>
-            <name>mobile-3.0</name>
+            <name>mobile-4.0</name>
         </platform>
     </platforms>
     <package>
index 0712692..0a4b754 100644 (file)
@@ -55,8 +55,6 @@ void mf_callback_cancel_cb(void *data, Evas_Object * obj,
                                                   void *event_info);
 void mf_callback_compress_cancel_cb(void *data, Evas_Object * obj,
                                                                        void *event_info);
-void mf_callback_decompress_cancel_cb(void *data, Evas_Object * obj,
-                                                                         void *event_info);
 
 void mf_callback_move_here_cb(void *data, Evas_Object * obj,
                                                          void *event_info);
@@ -77,10 +75,8 @@ void mf_callback_progress_bar_cancel_cb(void *data, Evas_Object * obj,
                                                                                void *event_info);
 void mf_callback_thread_pipe_cb(void *data, void *buffer,
                                                                unsigned int nbyte);
-void mf_callback_icu_update_cb(app_event_info_h event_info, void *data);
 void mf_callback_exception_popup_cb(void *data);
 void mf_popup_show_vk_cb(void *data, Evas_Object * obj, void *event_info);
-void mf_popup_clear_vk_cb(void *data, Evas_Object * obj, void *event_info);
 void mf_callback_backbutton_clicked_cb(void *data, Evas_Object * obj,
                                                                           void *event_info);
 Eina_Bool mf_callback_navi_backbutton_clicked_cb(void *data,
@@ -103,8 +99,6 @@ void mf_callback_detail_button_cb(void *data, Evas_Object * obj,
 void mf_callback_delete_button_cb(void *data, Evas_Object * obj,
                                                                  void *event_info);
 Eina_Bool mf_callback_gengrid_thumb_timer_cb(void *data);
-void mf_callback_view_style_cb(void *data, Evas_Object * obj,
-                                                          void *event_info);
 void mf_callback_home_button_cb(void *data, Evas_Object * obj,
                                                                void *event_info);
 void mf_callback_more_button_cb(void *data, Evas_Object * obj,
@@ -116,29 +110,16 @@ void mf_callback_list_by_response_cb(void *data, Evas_Object * obj,
                                                                         void *event_info);
 void mf_callback_send_response_cb(void *data);
 
-void mf_callback_operation_request_cancel_cb(void *data, Evas_Object * obj,
-                                                                                        void *event_info);
-void mf_callback_operation_request_replace_cb(void *data,
-                                                                                         Evas_Object * obj,
-                                                                                         void *event_info);
-void mf_callback_operation_request_rename_cb(void *data, Evas_Object * obj,
-                                                                                        void *event_info);
 void mf_callback_view_as_cb(void *data, Evas_Object * obj,
                                                        void *event_info);
 void mf_callback_rename_create_cb(void *data, Evas_Object * obj,
                                                                  void *event_info);
-void mf_callback_new_folder_changed_cb(void *data, Evas_Object * obj,
-                                                                          void *event_info);
-void mf_callback_extension_cb(void *data, Evas_Object * obj,
-                                                         void *event_info);
 void mf_callback_operation_timeout_cb(void *data, Evas_Object * obj,
                                                                          void *event_info);
 void mf_callback_nofity_show_callback(void *data, Evas * e,
                                                                          Evas_Object * obj, void *event_info);
 void mf_callback_nofity_hide_callback(void *data, Evas * e,
                                                                          Evas_Object * obj, void *event_info);
-void mf_callback_detail_ctx_cb(void *data, Evas_Object * obj,
-                                                          void *event_info);
 void mf_callback_profile_changed_cb(void *data, Evas_Object * obj,
                                                                        void *event_info);
 
@@ -152,8 +133,6 @@ void mf_callback_naviframe_title_clicked_cb(void *data, Evas_Object * obj,
 void mf_callback_storage_remove_view_operation(void *data, int optStorage);
 void mf_callback_storage_remove_category_view_items(void *data,
                                                                                                        int optStorage);
-void mf_callback_imf_state_callback_register(void *data);
-void mf_callback_imf_state_callback_del(void *data);
 void mf_callback_illegal_char_popup_cb(void *data, Evas_Object * obj,
                                                                           void *event_info);
 void mf_callback_genlist_imf_changed_cb(void *data, Evas_Object * obj,
@@ -161,10 +140,6 @@ void mf_callback_genlist_imf_changed_cb(void *data, Evas_Object * obj,
 void mf_callback_genlist_imf_preedit_change_cb(void *data,
                                                                                           Evas_Object * obj,
                                                                                           void *event_info);
-void mf_callback_entry_focused_cb(void *data, Evas_Object * obj,
-                                                                 void *event_info);
-void mf_callback_entry_unfocused_cb(void *data, Evas_Object * obj,
-                                                                       void *event_info);
 void mf_callback_mouseup_cb(void *data, Evas * e, Evas_Object * obj,
                                                        void *event_info);
 void mf_callback_keydown_cb(void *data, Evas * e, Evas_Object * obj,
@@ -173,8 +148,6 @@ void mf_callback_more_keydown_cb(void *data, Evas * e, Evas_Object * obj,
                                                                 void *event_info);
 void mf_callback_hardkey_more_cb(void *data, Elm_Object_Item * it,
                                                                 const char *emission, const char *source);
-void mf_callback_hardkey_back_cb(void *data, Evas_Object * obj,
-                                                                void *event_info);
 void mf_callback_item_copy_cb(void *data, Evas_Object * obj,
                                                          void *event_info);
 void mf_callback_item_move_cb(void *data, Evas_Object * obj,
@@ -239,8 +212,6 @@ void mf_callback_clear_history_cb(void *data, Evas_Object * obj,
                                                                  void *event_info);
 void mf_callback_edit_compress_cb(void *data, Evas_Object * obj,
                                                                  void *event_info);
-void mf_callback_edit_decompress_cb(void *data, Evas_Object * obj,
-                                                                       void *event_info);
 void mf_callback_compress_replace_cb(void *data, Evas_Object * obj,
                                                                         void *event_info);
 void mf_callback_compress_rename_cb(void *data, Evas_Object * obj,
index ea3d587..12904d2 100644 (file)
@@ -62,14 +62,6 @@ void mf_cancel_do_cancel(mf_cancel * cancel);
 gboolean mf_cancel_check_cancel(mf_cancel * cancel);
 
 /**
- * mf_cancel_is_cancelled:
- * Check status of @cancel
- * Return value: This function returns TRUE, if cancel is done, or FALSE.
- **/
-gboolean mf_cancel_is_cancelled(mf_cancel * cancel);
-
-
-/**
  * mf_cancel_set_cancelled:
  * set status of @cancel after cancel is done
  * This function should be called by operator
index 59e7e36..f6be709 100644 (file)
@@ -56,7 +56,6 @@ void mf_context_popup_get_more_position(Evas_Object * obj, int *x, int *y);
 void mf_context_popup_create_share(void *data, int share_mode,
                                                                   Evas_Object * parent);
 void mf_context_popup_create_gengrid(void *data);
-void mf_context_popup_position_get(int *x, int *y);
 Evas_Object *mf_context_popup_search_filter(Evas_Object * parent,
                                                                                        void *user_data,
                                                                                        Evas_Object * obj);
index b16e16b..03cc154 100644 (file)
@@ -28,17 +28,13 @@ const char *mf_file_get(const char path[]);
 char *mf_dir_get(const char path[]);
 int mf_file_exists(const char *path);
 Eina_Bool mf_is_dir(const char *path);
-int mf_is_dir_empty(const char *path);
 int mf_mkdir(const char *dir);
 int mf_mkpath(const char *path);
 char *mf_strip_ext(const char *path);
 int mf_file_unlink(const char *filename);
-int mf_file_size(const char *filename);
 int mf_file_rmdir(const char *filename);
-Eina_List *mf_file_ls(const char *dir);
 int mf_file_recursive_rm(const char *dir);
 int mf_file_cp(const char *src, const char *dst);
-int mf_file_mv(const char *src, const char *dst);
 int mf_remove(const char *filename);
 
 #endif                                                 //__mf_FILE_UTIL_H__
index 878a67d..cda8043 100644 (file)
@@ -45,9 +45,6 @@ int mf_fm_svc_wrapper_rename_service(void *data, GString * from_fullpath,
 int mf_fm_svc_wrapper_get_file_list(const char *folder_name,
                                                                        Eina_List ** dir_list,
                                                                        Eina_List ** file_list);
-int mf_fm_svc_wrapper_classify_dir_list(Eina_List * dir_list,
-                                                                               Eina_List ** default_dir_list,
-                                                                               Eina_List ** user_dir_list);
 
 char *mf_fm_svc_wrapper_get_root_path_by_tab_label(const char *label);
 /* file information get/set */
@@ -57,7 +54,6 @@ unsigned long mf_fm_svc_wrapper_get_free_space(int state);
 gint mf_fm_svc_wrapper_get_folder_foldersystem(GString * path,
                                                                                           bool * result);
 gboolean mf_fm_svc_wrapper_is_dir(GString * path);
-bool mf_fm_svc_wrapper_detect_duplication(GString * to);
 GString *mf_fm_svc_wrapper_get_file_parent_path(GString * fullpath);
 int mf_fm_svc_wrapper_file_auto_rename(void *data, GString * fullpath,
                                                                           int file_name_type,
@@ -69,12 +65,8 @@ char *mf_fm_svc_wrapper_translate_path(const char *original_path,
                                                                           MF_TRANS_OPTION option);
 gboolean mf_fm_svc_is_mass_storage_on();
 char *mf_fm_svc_path_info_get(const char *original_path);
-char *mf_fm_svc_path_info_translate(char *path_info,
-                                                                       int path_info_max_len);
 char *mf_fm_svc_get_file_name(GString * path);
 char *mf_fm_svc_get_file_name_without_ext(const char *name);
-int mf_fm_svc_wrapper_create_p(const char *fullpath);
-char *mf_fm_svc_wrapper_get_root_path_by_location(int location);
 Eina_List *mf_fm_svc_wrapper_level_path_get(const char *original_path,
                                                                                        int view_type);
 
index b3cdaa1..6d6e79b 100644 (file)
@@ -351,7 +351,6 @@ int mf_file_attr_get_file_icon(const char *file_path, int *error_code,
 const char *mf_file_attr_get_recent_default_icon_by_type(fsFileType ftype);
 const char *mf_file_attr_get_default_icon_by_type(fsFileType ftype);
 fsFileType mf_file_attr_get_file_type_by_mime(const char *file_path);
-fsFileType mf_file_attr_get_file_type(const char *mime);
 
 /*----------      File Operation Related        ----------*/
 int mf_fs_oper_error(const char *src, const char *dst, int check_option);
index 6bd3a6b..0751bde 100644 (file)
@@ -36,17 +36,12 @@ void mf_gengrid_create_grid_items(void *data, Evas_Object * grid,
 Evas_Object *mf_gengrid_create_grid(Evas_Object * parent);
 Evas_Object *mf_gengrid_create(Evas_Object * parent, void *data);
 
-void mf_gengrid_refresh(void *data);
 Evas_Object *mf_gengrid_create_list(void *data, Evas_Object * parent);
 void mf_gengrid_create_list_default_style(Evas_Object * pGengrid,
                                                                                  void *data, Eina_List * dir_list,
                                                                                  Eina_List * file_list);
-void mf_gengrid_get_grid_selected_items(Evas_Object * gengrid,
-                                                                               Eina_List ** list);
 void mf_gengrid_gl_lang_changed(void *data, Evas_Object * obj,
                                                                void *event_info);
-void mf_gengrid_thumbs_longpressed(void *data, Evas_Object * obj,
-                                                                  void *event_info);
 void mf_gengrid_gen_style_set();
 void mf_gengrid_item_del(void *data, Evas_Object * obj);
 Evas_Object *mf_gengrid_item_icon_get(void *data, Evas_Object * obj,
index f7721dc..e7fdd52 100644 (file)
@@ -44,36 +44,26 @@ void mf_genlist_create_downloaded_list_default_style(Evas_Object *
 int mf_util_generate_list_data(const char *path, Eina_List ** dir_list,
                                                           Eina_List ** file_list);
 
-void mf_genlist_clear(Evas_Object * genlist);
 Evas_Object *mf_genlist_create_list_rename_style(void *data);
 void mf_genlist_create_itc_style(Elm_Genlist_Item_Class ** itc,
                                                                 int itc_type);
-void mf_genlist_get_list_selected_items(Evas_Object * pGenlist,
-                                                                               Eina_List ** list);
 void mf_genlist_gl_sel(void *data, Evas_Object * obj, void *event_info);
 void mf_genlist_create_data(mfItemData_s ** m_TempItem, const char *name,
                                                        void *data);
-Evas_Object *mf_genlist_create_path_info(Evas_Object * parent, char *info,
-                                                                                Eina_Bool slide_flag);
 
 void mf_genlist_set_folder_edit_style(void *data);
 void mf_genlist_gl_lang_changed(void *data, Evas_Object * obj,
                                                                void *event_info);
-void mf_genlist_disable_items(Evas_Object * genlist, Eina_Bool disable);
 void mf_genlist_get_thumbnail(mfItemData_s * params);
 void mf_genlist_gl_edit_item_selected(void *data);
 void mf_genlist_gl_selected(void *data, Evas_Object * obj,
                                                        void *event_info);
-void mf_genlist_gl_longpress(void *data, Evas_Object * obj,
-                                                        void *event_info);
 char *mf_genlist_first_item_name_get(Evas_Object * genlist);
 Evas_Object *mf_genlist_create_path_tab(Evas_Object * parent, char *info,
                                                                                void *data);
 char *mf_genlist_group_index_label_get(void *data, Evas_Object * obj,
                                                                           const char *part);
 void mf_genlist_group_index_del(void *data, Evas_Object * obj);
-void mf_genlist_cloud_content_set(void *data, Evas_Object * genlist,
-                                                                 Eina_List * file_list);
 void mf_genlist_cloud_item_content_set(void *data, Evas_Object * genlist,
                                                                           Eina_List * file_list);
 
index b869a25..80184eb 100644 (file)
@@ -47,9 +47,6 @@ enum _LOAD_UG_TYPE {
        MF_LOAD_UG_MAX
 };
 
-void mf_launch_load_ug(void *data, char *path, MF_LOAD_UG_TYPE type,
-                                          Eina_Bool multi_flag);
-
 void mf_launch_service_idler_del();
 
 int mf_launch_service(void *data, char *path);
index 90bea15..e353606 100644 (file)
@@ -390,6 +390,7 @@ struct appdata {
        Elm_Object_Item *sdcard_it;
        bool launch_as_ug;
        bool launch_download_history;
+       bool is_search_view;
        Evas_Object *float_btn;
        double downloaded_size;
        media_content_noti_h noti_handle;
@@ -413,11 +414,8 @@ enum _MF_ACTION {
 
 
 #define _EDJ(o) elm_layout_edje_get(o)
-Evas_Object *mf_main_load_edj(Evas_Object * parent, const char *file,
-                                                         const char *group);
 struct appdata *mf_get_appdata();
 
-Eina_Bool mf_main_is_split_on();
 bool mf_main_is_sync_on();
 void mf_initialize_datacontrol_consumer(void *data);
 
index b7c1c61..fee332e 100644 (file)
@@ -45,9 +45,6 @@ extern "C" {
                                                                         const char *path);
        int mf_media_delete_recent_files_by_type(MFDHandle * mfd_handle,
                                                                                         int storage_type);
-       int mf_media_update_recent_files_thumbnail(MFDHandle * mfd_handle,
-                                                                                          const char *thumbnail,
-                                                                                          const char *new_thumbnail);
        int mf_media_foreach_shortcut_list(MFDHandle * mfd_handle,
                                                                           mf_shortcut_item_cb callback,
                                                                           void *user_data);
@@ -64,8 +61,6 @@ extern "C" {
        int mf_media_shortcut_list_get_display_name(MFDHandle * mfd_handle,
                                                                                                const char *fullpath,
                                                                                                char **name);
-       int mf_media_find_recent_file(MFDHandle * mfd_handle,
-                                                                 const char *path);
 
 #ifdef __cplusplus
 }
index c3ea203..8b2f86f 100644 (file)
@@ -28,7 +28,6 @@ void mf_navi_bar_clean_content(void *data, Evas_Object * pLayout);
 void mf_navi_bar_set_content(void *data, Evas_Object * pLayout,
                                                         Evas_Object * NaviContent);
 void mf_navi_bar_title_content_set(void *data, const char *title);
-void mf_navi_bar_title_set(void *data);
 void mf_navi_add_back_button(void *data,
                                                         Eina_Bool(*func) (void *data,
                                                                                           Elm_Object_Item * it));
@@ -44,7 +43,6 @@ bool mf_navi_bar_remove_list_item_by_label(void *data,
 void mf_navi_bar_recover_list(void *data);
 void mf_navi_bar_set_ctrlbar_item_disable(Elm_Object_Item * navi_it,
                                                                                  int disable_item, bool disable);
-int mf_navi_bar_get_disable_ctrlbar_item(Elm_Object_Item * navi_it);
 Evas_Object *mf_navi_bar_content_create(void *data);
 Evas_Object *mf_navi_bar_home_button_create(Evas_Object * parent,
                                                                                        Evas_Smart_Cb func,
@@ -59,7 +57,6 @@ void mf_navi_bar_reset(void *data);
 void mf_navi_bar_recover_state(void *data);
 void mf_navi_bar_layout_content_set(Evas_Object * layout,
                                                                        Evas_Object * content);
-char *mf_navi_bar_path_info_get(void *data, mf_navi_pathinfo_type type);
 void mf_navi_bar_pathinfo_refresh(void *data);
 Evas_Object *mf_navi_bar_search_button_create(Evas_Object * parent,
                                                                                          Evas_Smart_Cb func,
index c3cd2d2..5303915 100644 (file)
@@ -30,15 +30,7 @@ Elm_Object_Item *mf_object_item_tabbar_item_append(Evas_Object * obj,
                                                                                                   const void *data);
 void mf_object_item_part_content_remove(Elm_Object_Item * item,
                                                                                const char *part);
-void mf_object_item_tabbar_item_set_disable(Evas_Object * obj,
-                                                                                       const char *label,
-                                                                                       Eina_Bool disable);
-mfItemData_s *mf_object_item_normal_data_get(const char *fullpath,
-                                                                                        void *user_data,
-                                                                                        int list_type);
 Elm_Object_Item *mf_object_item_genlist_x_y_item_get(Evas_Object * genlist,
                                                                                                         int x, int y);
-void mf_object_item_gengrid_current_page_get(Evas_Object * gengrid, int *x,
-                                                                                        int *y);
 
 #endif                                                 //__MF_OBJECT_ITEM_H_DEF__
index 6020beb..d79d306 100644 (file)
@@ -20,8 +20,6 @@
 #include <Elementary.h>
 #include <Evas.h>
 
-Evas_Object *mf_object_create_select_all_btn(Evas_Object * parent,
-                                                                                        void *data);
 Evas_Object *mf_object_create_no_content(Evas_Object * parent);
 Evas_Object *mf_object_create_conform(Evas_Object * parent);
 Evas_Object *mf_object_create_layout(Evas_Object * parent, const char *edj,
@@ -34,7 +32,6 @@ Evas_Object *mf_object_create_button(Evas_Object * parent,
                                                                         Evas_Smart_Cb func, void *data,
                                                                         Eina_Bool flag_propagate);
 
-void mf_object_panes_right_set(Evas_Object * panes, Evas_Object * content);
 Evas_Object *mf_object_create_editfield(Evas_Object * parent,
                                                                                Evas_Object ** pEntry);
 Evas_Object *mf_object_unset_part_content(Evas_Object * parent,
@@ -55,14 +52,8 @@ void mf_object_create_entryfield(void *data,
                                                                                                   Evas_Object * obj,
                                                                                                   void *event_info));
 Evas_Object *mf_object_create_layout_main(Evas_Object * parent);
-Evas_Object *mf_object_create_panes(Evas_Object * parent);
-Evas_Object *mf_object_get_part_content(Evas_Object * parent,
-                                                                               const char *part);
 void mf_object_text_set(Evas_Object * obj, const char *ID,
                                                const char *part);
-Evas_Object *mf_object_tabbar_create(Evas_Object * parent);
-Evas_Object *mf_object_toolbar_create(Evas_Object * parent);
-Evas_Object *mf_object_create_select_all_checkbox(Evas_Object * parent);
 void mf_object_entry_unfocus(Evas_Object * entry);
 Evas_Object *mf_object_path_widget_create(Evas_Object * parent);
 Evas_Object *mf_object_create_box(Evas_Object * parent);
index 5b62af6..6cf509a 100644 (file)
@@ -65,12 +65,6 @@ typedef struct _mf_otg_node mf_otg_node;
 void mf_otg_list_clean(mf_otg_list_e list_type);
 
 /**
- * mf_otg_init
- *@data, the appdata which contain the otg list
- *read the otg folder, save the device into the otg list
- */
-int mf_otg_init();
-/**
  * mf_otg_is_in_list
  *@data, the appdata which contain the otg list
  *@dev name: the device name
@@ -105,14 +99,6 @@ int mf_otg_delete_node(const char *name);
 int mf_otg_list_update(bool flag_inc_dec);
 
 /**
- * mf_otg_is_empty
- *@data, the appdata which contain the otg list
- *check if the otg list is empty
- *
- */
-bool mf_otg_is_empty(void *data);
-
-/**
  * mf_otg_get_node_in_use
  *@data, the appdata which contain the otg list
  *get the otg device name which is in used currently
@@ -131,14 +117,6 @@ char *mf_otg_get_node_in_use();
 void mf_otg_set_node_using_flag(char *dev_name, bool status);
 
 /**
- * mf_otg_clear_removed_device
- *@data, the appdata which contain the otg list
- *clear the removed otg list
- *
- */
-void mf_otg_clear_removed_device();
-
-/**
  * mf_otg_generate_removed_list
  *@data, the appdata which contain the otg list
  * get the devices which are not in the otg list now to generate the removed list
index 6746254..6154fb1 100644 (file)
@@ -72,8 +72,6 @@ Evas_Object *mf_popup_create_compress_popup(void *data, char *context,
 Evas_Object *mf_popup_create_decompress_popup(void *data, char *context,
                                                                                          char *name);
 
-Evas_Object *mf_popup_text(void *data, const char *context,
-                                                  Evas_Object_Event_Cb func, void *param);
 Evas_Object *mf_popup_warning_popup_create(void *data,
                                                                                   Evas_Object * parent,
                                                                                   char *title,
@@ -104,31 +102,19 @@ Evas_Object *mf_popup_second_popup_create(void *data, Evas_Object * parent,
                                                                                  const char *btn_text,
                                                                                  Evas_Smart_Cb func, void *param);
 void mf_popup_second_popup_destory();
-char *mf_popup_rename_item_name_get();
 void mf_popup_rename_cancel();
 void mf_popup_rename_func_set(Evas_Smart_Cb save_cb, void *save_params,
                                                          Evas_Smart_Cb cancel_cb,
                                                          void *cancel_params);
 void mf_popup_rename_func_reset();
-Evas_Object *mf_popup_share_as_video_or_image(void *func_for_video,
-                                                                                         void *func_for_image,
-                                                                                         void *data);
 char *mf_popup_rename_text_get(const char *fullpath, char **suffix,
                                                           Eina_Bool suffix_flag);
 Evas_Object *mf_popup_entry_create(Evas_Object * parent);
 Evas_Object *mf_popup_create_compress_popup_with_location(void *data,
                                                                                                                  char *context,
                                                                                                                  char *name);
-Evas_Object *mf_popup_check_view_popup(void *data, const char *title,
-                                                                          const char *text,
-                                                                          const char *check_text,
-                                                                          const char *first_btn_text,
-                                                                          const char *second_btn_text,
-                                                                          Evas_Smart_Cb func, void *param);
-Eina_Bool mf_popup_check_view_flag_get();
 int __mf_sort_by_order_get(int sort_type);
 int __mf_sort_by_type_get(int sort_type);
-void mf_popup_check_view_flag_set(Eina_Bool state);
 Evas_Object *mf_popup_create_delete_confirm_popup(void *data, char *title,
                                                                                                  const char *context,
                                                                                                  const char
@@ -140,8 +126,6 @@ Evas_Object *mf_popup_create_delete_confirm_popup(void *data, char *title,
 Evas_Object *mf_popup_sort_by_create(char *title, Evas_Smart_Cb func,
                                                                         void *param);
 void mf_sort_by_respones_func_set(Evas_Smart_Cb func);
-void mf_popup_ok_button_set(Evas_Object * obj);
-void mf_popup_entry_string_set(char *string);
 char *mf_popup_entry_string_get(void);
 Evas_Object *mf_popup_replace_create(char *title, char *label_text,
                                                                         Evas_Smart_Cb func2,
index 36a22dd..57141dc 100644 (file)
@@ -84,15 +84,6 @@ void mf_request_free(mf_fo_request * req);
 void mf_request_set_result(mf_fo_request * req, mf_request_type result);
 
 /**
- * mf_request_set_result_rename:
- * @req : a #mf_fo_request
- * @new_name : a user specified new name, string for item name
-  * Set @new_name to @req, and #mf_request_type is selected #MF_REQ_RENAME
- **/
-void mf_request_set_result_rename(mf_fo_request * req,
-                                                                 const char *new_name);
-
-/**
  * mf_request_set_cond:
  * @req : a #mf_fo_request
  * @cond : a #GCond for @req
index 96e677b..16e39ca 100644 (file)
@@ -42,12 +42,4 @@ int _mf_search_start(ms_handle_t * handle,
 int _mf_search_stop(ms_handle_t * handle);
 void _mf_search_finalize(ms_handle_t ** handle);
 
-/*+++++++++++++++++++++++++ UTIL APIs ++++++++++++++++++++++++++++++ */
-
-gchar *_mf_search_result_dir_get(mf_search_result_t * result);
-gchar *_mf_search_result_file_get(mf_search_result_t * result);
-gboolean _mf_search_result_is_end(mf_search_result_t * result);
-gchar *_mf_search_result_current_dir_get(mf_search_result_t * result);
-guint _mf_search_result_total_count_get(mf_search_result_t * result);
-
 #endif                                                 //_MF_SEARCH_INTERNAL_H_
index 59c1c7f..2a36cfd 100644 (file)
@@ -175,55 +175,6 @@ int mf_search_stop(mf_search_handle handle);
  **/
 void mf_search_finalize(mf_search_handle * handle);
 
-
-/*+++++++++++++++++++++++ UTIL APIs +++++++++++++++++++++++*/
-
-/**
- * mf_search_result_dir_get:
- * @result: the handle of search result
- * Gets one of directory name in given search @result
- * Return value: a directory name which is a newly-allocated string that must be freed after use
- * or NULL if no more result for directory.
- **/
-char *mf_search_result_dir_get(mf_search_result_t * result);
-
-/**
- * mf_search_result_file_get:
- * @result: the handle of search result
- * Gets one of file name given search @result
- * Return value: a file name which is a newly-allocated string that must be freed after use
- * or NULL if no more result for directory.
- **/
-char *mf_search_result_file_get(mf_search_result_t * result);
-
-/**
- * mf_search_result_current_dir_get:
- * @result: the handle of search result
- * Gets current searching directory name in given search @result
- * Return value: current searching directory name which is a newly-allocated string that must be freed after use
- * or NULL if fail to get current searching directory name.
- **/
-char *mf_search_result_current_dir_get(mf_search_result_t * result);
-
-/**
- * mf_search_result_is_end:
- * @result: the handle of search result
- * @is_end : If @result is last result handle, set it to a non-zero value, if not set it to zero.
- * Tests if given search @result is the last one or not
- * Return value: This function returns zero on success, or negative value.
- **/
-int mf_search_result_is_end(mf_search_result_t * result, int *is_end);
-
-/**
- * mf_search_result_total_count_get:
- * @result: the handle of search result
- * @count: the items(which is explored directories and files) count.
- * Gets current explored items(this is not result count)
- * Return value: This function returns zero on success, or negative value.
- **/
-int mf_search_result_total_count_get(mf_search_result_t * result,
-                                                                        unsigned int *count);
-
 void mf_search_bar_item_append(void *data, void *user_data);
 
 #endif                                                 //_MF_SEARCH_H_
index 2257e63..8669280 100644 (file)
@@ -20,6 +20,5 @@
 
 void mf_setting_view_create(void *data);
 Eina_Bool mf_setting_view_back_cb(void *data, Elm_Object_Item * it);
-int mf_setting_set_i18n(char *pkgname, char *localedir);
 
 #endif                                                 //__MF_SETTING_VIEW_H_DEF__
index af4f97e..229eefe 100644 (file)
@@ -64,13 +64,11 @@ int mf_storage_destroy(void *app_data);
 int mf_storage_set_update_cb(void *app_data,
                                                         mf_storage_update_cb update_cb);
 mfStorageStatus *mf_storage_get_status(void *app_data);
-int mf_storage_set_update_data(void *app_data, bool is_update);
 int mf_storage_refresh(void *app_data);
 void mf_category_view_refresh_space_size_set(Eina_Bool flag);
 Eina_Bool mf_category_view_refresh_space_size_get();
 void mf_storage_get_recent_files_size();
 void mf_download_calculate_total_size(void *data, double *total_size);
 double __mf_storage_main_download_status_get();
-mfStorageStatus *mf_get_storage_status(void *data);
 
 #endif
index 924a872..11b91e4 100644 (file)
@@ -47,7 +47,6 @@ void mf_thumb_gen_destroy(mf_thumb_gen_h hThumbGen);
 bool mf_thumb_gen_realize(mf_thumb_gen_h hThumbGen);
 bool mf_thumb_gen_unrealize(mf_thumb_gen_h hThumbGen);
 
-bool mf_thumb_gen_is_realize(mf_thumb_gen_h hThumbGen, bool * bIsRealize);
 
 bool mf_thumb_gen_set_save_directory(mf_thumb_gen_h hThumbGen,
                                                                         char *szSaveDir);
@@ -64,8 +63,6 @@ bool mf_thumb_gen_set_progress_cb(mf_thumb_gen_h hThumbGen,
                                                                  mf_thumb_gen_progress_cb progress_cb);
 bool mf_thumb_gen_set_complete_cb(mf_thumb_gen_h hThumbGen,
                                                                  mf_thumb_gen_complete_cb complete_cb);
-bool mf_thumb_gen_set_cancel_cb(mf_thumb_gen_h hThumbGen,
-                                                               mf_thumb_gen_cancel_cb cancel_cb);
 
 void mf_view_refresh_thumbnail_destroy();
 void mf_view_refresh_thumbnail_for_other_memory(void *data,
index 21ab236..51d9fd5 100644 (file)
@@ -71,7 +71,6 @@ int mf_tray_item_type(const char *path);
 Evas_Object *mf_category_create(void *data);
 void mf_category_hide_set();
 void mf_category_show_set();
-void mf_category_refresh(void *data);
 void mf_tray_item_search(void *data, int type);
 
 #endif
index af9158a..338a45d 100644 (file)
@@ -124,8 +124,6 @@ GString *mf_ug_detail_fs_parse_file_type(GString * path);
 
 int mf_ug_detail_fs_get_list_len(const Eina_List * list);
 
-View_Style mf_ug_detail_fs_get_view_type(char *path, GString * type);
-
 GString *mf_ug_detail_fs_get_parent(char *fullpath);
 
 int mf_ug_detail_fs_get_file_list(GString * folder_name,
@@ -134,8 +132,6 @@ int mf_ug_detail_fs_get_file_list(GString * folder_name,
 
 LONG_LONG_UNSIGNED_INT mf_ug_detail_fs_get_folder_size(char *path);
 
-int mf_ug_detail_fs_check_path(void *data, char *path);
-File_Type mf_ug_detail_fs_get_category_by_mime(const char *mime);
 int mf_ug_detail_fs_get_file_ext(const char *filepath, char *file_ext);
 
 #endif
index ead9657..ebec069 100644 (file)
@@ -303,7 +303,6 @@ void mf_util_icu_finalize(void *data);
 char *mf_util_icu_translate(void *data, i18n_udate date,
                bool is_init_checking);
 void mf_util_set_pm_lock(void *data, Eina_Bool isLock);
-gboolean mf_util_is_file_selected(Eina_List ** source, GString * path);
 void mf_util_sort_the_file_list(void *data);
 int mf_util_generate_file_list(void *data);
 char *mf_util_get_text(const char *ID);
@@ -321,8 +320,6 @@ void mf_util_remove_item_from_list_by_location(Eina_List ** list,
 void mf_util_generate_list(Eina_List ** list, const char *path,
                int file_type, int list_type);
 bool mf_util_is_rotation_lock(void);
-void mf_util_remove_item_from_list_by_name(Eina_List ** list,
-               const char *path);
 fsNodeInfo *mf_util_generate_pnode(const char *path, int file_type);
 void mf_util_update_item_from_list_by_name(Eina_List ** list,
                const char *path,
@@ -330,7 +327,6 @@ void mf_util_update_item_from_list_by_name(Eina_List ** list,
 int mf_util_rotate_state_get(Evas_Object * win);
 int mf_util_get_rotate_state_by_angle(int angle);
 void mf_util_generate_saved_files_list(void *data, int type);
-void mf_util_free_data(void **data, int type);
 
 int mf_util_is_otg_on(int *otg);
 char *mf_util_get_shortcut();
@@ -361,7 +357,6 @@ void mf_util_generate_list_prepend(Eina_List ** list, const char *path,
 void mf_util_normal_item_data_free(mfItemData_s ** item_data);
 bool mf_util_is_low_memory(const char *path, unsigned long long size);
 gboolean mf_util_NFD_strstr(const char *nor_str, const char *nor_needle);
-void mf_util_first_item_push(void *data);
 void mf_util_path_stack_free();
 char *mf_util_first_item_get(char *path);
 int mf_util_get_external_storage_id(void);
@@ -377,7 +372,6 @@ bool mf_util_get_supported_storage_cb(int storageId, storage_type_e type,
 int mf_reg_db_update_noti();
 void mf_set_otg_storage_id(int id);
 void mf_set_usb_storage_id(int id);
-void mf_set_device_storage_id(int id);
 char *get_root_path(int storage_type, storage_mode_e smode);
 char *get_parent_path(int storage_type);
 char *get_storage_name(storage_mode_e smode);
index e75d016..46afee8 100644 (file)
@@ -47,9 +47,6 @@ void mf_view_set_main_layout_content(void *data);
 void mf_view_split_create(void *data);
 void mf_view_unset_main_layout_content(Evas_Object * layout);
 void mf_view_items_remove(Evas_Object * parent, int storage, int type);
-void mf_view_item_remove(Evas_Object * parent, const char *path, int type);
-bool mf_view_same_item_exist(Evas_Object * obj, const char *check_path,
-                                                        mf_obj_type_e type);
 Elm_Object_Item *mf_view_item_append(Evas_Object * parent,
                                                                         fsNodeInfo * pNode, void *data);
 void mf_root_view_create(void *data);
@@ -57,7 +54,6 @@ void mf_normal_view_create(void *data);
 void mf_category_view_create(void *data, bool flag_show);
 void mf_decompress_view_create(void *data);
 void mf_view_update(void *data);
-char *mf_view_item_data_get(void *data, int data_type);
 void mf_view_item_remove_by_type(Evas_Object * parent, int storage_type,
                                                                 int view_type);
 void mf_view_reset_record(oper_record * record);
@@ -105,5 +101,4 @@ void mf_mw_root_category_item_update(void *data);
 Eina_Bool mf_view_is_item_exists_by_name(void *data, char *name);
 void mf_view_state_set_with_pre_shortcut_rename(void *data,
                                                                                                MORE_TYPE state);
-void mf_view_extra_reset_state_with_pre(void *data);
 #endif
index 83dcc07..c70715c 100644 (file)
@@ -74,15 +74,3 @@ void mf_cancel_set_cancelled(mf_cancel * cancel)
        return;
 }
 
-gboolean mf_cancel_is_cancelled(mf_cancel * cancel)
-{
-       gboolean is_cancelled = FALSE;
-       if (cancel) {
-               g_mutex_lock(&cancel->s_mutex);
-               if (cancel->is_cancel) {
-                       is_cancelled = TRUE;
-               }
-               g_mutex_unlock(&cancel->s_mutex);
-       }
-       return is_cancelled;
-}
index badb6dc..9793bfa 100644 (file)
@@ -183,6 +183,7 @@ int _mf_copy_copy_regfile(const char *src, struct stat *src_statp,
        char *copy_dst = dst;
        char *copy_folder = NULL;
        char *root_path = NULL;
+       mf_debug("destination file is %s", dst_file);
        if (location == MYFILE_PHONE) {
                copy_dst = (char *) dst;
                const gchar *name = g_path_get_basename(dst);
@@ -190,12 +191,18 @@ int _mf_copy_copy_regfile(const char *src, struct stat *src_statp,
                        storage_get_root_directory(mf_util_get_internal_storage_id(),
                                                                           &root_path);
                }
-               copy_folder = g_strconcat(root_path, "/", ".operation_temp", NULL);
+               copy_folder = g_strconcat(g_path_get_dirname(dst_file), "/", ".operation_temp", NULL);
                if (!copy_folder) {
                        fclose(src_f);
                        return -1;
                }
                dst = g_strconcat(copy_folder, "/", name, NULL);
+//             char buff[1024] = {0,};
+//             ssize_t len = readlink("/opt/usr/home/owner/media/Images", buff, sizeof(buff) -1);
+//             if (len != -1) {
+//                   buff[len] = '\0';
+//             }
+               mf_debug("destination Path is %s", dst);
        } else if (location == MYFILE_MMC) {
                copy_dst = (char *) dst;
                const gchar *name = g_path_get_basename(dst);
@@ -381,9 +388,17 @@ int _mf_copy_copy_regfile(const char *src, struct stat *src_statp,
        }
        free(buf);
        buf = NULL;
+       if (access(dst, F_OK) != -1) {
+           // file exists
+               mf_debug("file already exist");
+       } else {
+           // file doesn't exist
+               mf_debug("file does not exist");
+       }
        fclose(src_f);
        fclose(dst_f);
        if (copy_dst) {
+               mf_debug("copy destination is %s", copy_dst);
                if (rename(dst, copy_dst)) {
                        MF_FILE_ERROR_LOG(err_buf, "Fail to rename item ", dst);
 
@@ -405,6 +420,7 @@ int _mf_copy_copy_regfile(const char *src, struct stat *src_statp,
                        SAFE_FREE_CHAR(dst);
                        copy_dst = NULL;
                }
+               //mf_media_content_scan_file(copy_dst);
        }
        return 0;
 
@@ -847,6 +863,7 @@ int _mf_copy_copy_internal(const char *src, const char *dst_dir,
 
        if (access(new_dst, F_OK)) {
                if (S_ISDIR(src_info.st_mode)) {
+                       mf_debug("11111111");
                        err =
                                _mf_copy_copy_directory(src, &src_info, new_dst, cancel,
                                                                                msg_func, msg_data);
@@ -855,6 +872,7 @@ int _mf_copy_copy_internal(const char *src, const char *dst_dir,
                        }
                } else if (S_ISREG(src_info.st_mode)) {
                        /*just copy */
+                       mf_debug("2222222222222222222222222222222222222222222");
                        err =
                                _mf_copy_copy_regfile(src, &src_info, new_dst, 0, cancel,
                                                                          msg_func, msg_data);
@@ -863,6 +881,7 @@ int _mf_copy_copy_internal(const char *src, const char *dst_dir,
                        }
                } else {
                        mf_fo_loge("item[%s] is not file or directory", src);
+                       mf_debug("3333333333");
                        err =
                                MF_FO_ERR_SET(MF_FO_ERR_SRC_CLASS | MF_FO_ERR_TYPE |
                                                          MF_FO_ERR_REPORT_CLASS);
index df321ed..f23391c 100644 (file)
@@ -75,23 +75,6 @@ void mf_request_set_result(mf_fo_request * req, mf_request_type result)
        return;
 }
 
-void mf_request_set_result_rename(mf_fo_request * req,
-                                                                 const char *new_name)
-{
-       if (req) {
-               req->request = MF_REQ_RENAME;
-               if (new_name) {
-                       req->new_name = strdup(new_name);
-               }
-
-               if (req->cond) {
-                       g_cond_broadcast(req->cond);
-               }
-       }
-
-       return;
-}
-
 void mf_request_set_cond(mf_fo_request * req, GCond * cond)
 {
        if (req) {
index c79f657..3f7ac27 100644 (file)
@@ -754,63 +754,3 @@ static void __mf_search_result_publish_msg(mf_search_pipe_msg_type type,
                                                 sizeof(msg));
        }
 }
-
-gchar *_mf_search_result_dir_get(mf_search_result_t * result)
-{
-       gchar *name = NULL;
-       if (result) {
-               GList *list = NULL;
-               list = result->dir_list;
-               if (list && list->data) {
-                       gchar *item = (gchar *) list->data;
-                       result->dir_list = g_list_remove(list, item);
-                       name = item;
-               }
-       }
-       return name;
-}
-
-gchar *_mf_search_result_file_get(mf_search_result_t * result)
-{
-       gchar *name = NULL;
-       if (result) {
-               GList *list = NULL;
-               list = result->file_list;
-               if (list && list->data) {
-                       gchar *item = (gchar *) list->data;
-                       result->file_list = g_list_remove(list, item);
-                       name = item;
-               }
-       }
-       return name;
-}
-
-gboolean _mf_search_result_is_end(mf_search_result_t * result)
-{
-       gboolean end = FALSE;
-       if (result) {
-               end = result->is_end;
-       }
-       return end;
-}
-
-guint _mf_search_result_total_count_get(mf_search_result_t * result)
-{
-       guint count = 0;
-       if (result) {
-               count = result->total_count;
-       }
-       return count;
-}
-
-gchar *_mf_search_result_current_dir_get(mf_search_result_t * result)
-{
-       gchar *c_dir = NULL;
-       if (result) {
-               if (result->current_dir) {
-                       c_dir = result->current_dir;
-                       result->current_dir = NULL;
-               }
-       }
-       return c_dir;
-}
index abf3d73..e5cc45c 100644 (file)
@@ -94,41 +94,3 @@ void mf_search_finalize(mf_search_handle * handle)
        _mf_search_finalize((ms_handle_t **) handle);
        return;
 }
-
-/*+++++++++++++++++++++++ UTIL APIs +++++++++++++++++++++++*/
-
-char *mf_search_result_dir_get(mf_search_result_t * result)
-{
-       return _mf_search_result_dir_get(result);
-}
-
-char *mf_search_result_file_get(mf_search_result_t * result)
-{
-       return _mf_search_result_file_get(result);
-}
-
-int mf_search_result_is_end(mf_search_result_t * result, int *is_end)
-{
-       if (result) {
-               *is_end = _mf_search_result_is_end(result);
-       } else {
-               return MF_SEARCH_ERROR_INVAL_P;
-       }
-       return MF_SEARCH_ERROR_NONE;
-}
-
-int mf_search_result_total_count_get(mf_search_result_t * result,
-                                                                        unsigned int *count)
-{
-       if (result) {
-               *count = _mf_search_result_total_count_get(result);
-       } else {
-               return MF_SEARCH_ERROR_INVAL_P;
-       }
-       return MF_SEARCH_ERROR_NONE;
-}
-
-char *mf_search_result_current_dir_get(mf_search_result_t * result)
-{
-       return _mf_search_result_current_dir_get(result);
-}
index 213083a..ef5aeac 100644 (file)
@@ -1185,19 +1185,6 @@ int mf_file_attr_get_file_icon(const char *file_path, int *error_code,
        return thumbnail_type;
 }
 
-fsFileType mf_file_attr_get_file_type(const char *mime)
-{
-       int index;
-       fsFileType ftype = FILE_TYPE_NONE;
-       for (index = 0; mime_type[index].mime; index++) {
-               if (strncmp(mime, mime_type[index].mime, strlen(mime)) == 0) {
-                       ftype = mime_type[index].ftype;
-               }
-       }
-       return ftype;
-
-}
-
 fsFileType mf_file_attr_get_file_type_by_mime(const char *file_path)
 {
        int index;
index 114d721..9a65057 100644 (file)
@@ -677,16 +677,6 @@ void mf_callback_compress_cancel_cb(void *data, Evas_Object * obj,
        mf_callback_cancel_cb(ap, NULL, NULL);
 }
 
-void mf_callback_decompress_cancel_cb(void *data, Evas_Object * obj,
-                                                                         void *event_info)
-{
-       mf_debug("cancel pthread now");
-       struct appdata *ap = (struct appdata *) data;
-       int ret = pthread_cancel(ap->thread1);
-       SAFE_FREE_OBJ(ap->mf_MainWindow.pProgressPopup);
-       mf_callback_cancel_cb(ap, NULL, NULL);
-}
-
 void mf_callback_cancel_cb(void *data, Evas_Object * obj, void *event_info)
 {
        MF_TRACE_BEGIN;
@@ -790,8 +780,6 @@ void mf_callback_cancel_cb(void *data, Evas_Object * obj, void *event_info)
                        mf_naviframe_title_button_delete(ap->mf_MainWindow.pNaviItem);
                        mf_view_update(ap);
                }
-               /*4.    set tab enable */
-               //mf_navi_bar_title_set(ap);
                break;
        case MORE_EDIT_DELETE_SHORTCUT:
        case MORE_EDIT_DELETE_RECENT:
@@ -993,7 +981,7 @@ void mf_callback_redownload_file_cb(void *data, Evas_Object * obj,
        if (!tmp) {
                return;
        }
-       memset(tmp, 0, sizeof(tmp));
+       memset(tmp, 0, strlen(tmp));
 
 
 
@@ -1088,19 +1076,6 @@ void mf_popup_show_vk_cb(void *data, Evas_Object * obj, void *event_info)
        MF_TRACE_END;
 }
 
-void mf_popup_clear_vk_cb(void *data, Evas_Object * obj, void *event_info)
-{
-       MF_TRACE_BEGIN;
-       struct appdata *ap = (struct appdata *) data;
-       assert(ap);
-
-       mf_popup_second_popup_destory();
-       SAFE_FREE_OBJ(ap->mf_MainWindow.pNormalPopup);
-//  mf_callback_entry_focus();
-       mf_popup_rename_cancel();
-       MF_TRACE_END;
-}
-
 static int __mf_callback_idle_rename_search_refresh(void *data)
 {
        MF_TRACE_BEGIN;
@@ -2125,40 +2100,6 @@ void mf_callback_edit_compress_cb(void *data, Evas_Object * obj,
        MF_TRACE_END;
 }
 
-void mf_callback_edit_decompress_cb(void *data, Evas_Object * obj,
-                                                                       void *event_info)
-{
-       MF_TRACE_BEGIN;
-       struct appdata *ap = (struct appdata *) data;
-       mf_retm_if(ap == NULL, "ap is NULL");
-       SAFE_FREE_OBJ(ap->mf_MainWindow.pContextPopup);
-       SAFE_FREE_OBJ(ap->mf_MainWindow.pLongpressPopup);
-       if (ap->mf_MainWindow.pButton) {
-               elm_object_part_content_unset(ap->mf_MainWindow.pNaviLayout,
-                                                                         "search_icon");
-               evas_object_hide(ap->mf_MainWindow.pButton);
-       }
-
-       if (ap->mf_Status.more == MORE_SEARCH) {
-               if (ap->mf_MainWindow.pNaviSearchBar) {
-                       elm_object_signal_emit(ap->mf_MainWindow.pNaviLayout, "hide",
-                                                                  "search_bar");
-                       elm_object_signal_emit(ap->mf_MainWindow.pNaviLayout, "show",
-                                                                  "elm.swallow.content");
-                       //ap->mf_Status.extra = MORE_SHARE_EDIT;
-               }
-       } else {
-               ap->mf_Status.extra = MORE_SHARE_EDIT;
-       }
-       ap->mf_Status.more = MORE_DECOMPRESS;
-       __mf_callback_edit_share_view(ap);
-
-       /*disable all the tab item if tab exists */
-       MF_TRACE_END;
-
-
-}
-
 void mf_callback_edit_rename_cb(void *data, Evas_Object * obj,
                                                                void *event_info)
 {
@@ -2480,59 +2421,6 @@ void mf_callback_edit_unintall_cb(void *data, Evas_Object * obj,
 }
 
 /******************************
- ** Prototype    : mf_callback_icu_update_cb
- ** Description  :
- ** Input        : void *data
- ** Output       : int
- ** Return Value :
- ** Calls        :
- ** Called By    :
- **
- **  History        :
- **  1.Date         : 2011/06/30
- **    Author       : Samsung
- **    Modification : Created function
- **/
-void mf_callback_icu_update_cb(app_event_info_h event_info, void *data)
-{
-       /*
-          ug_send_event(UG_EVENT_REGION_CHANGE);
-        */
-       mf_debug("region changed");
-       assert(data);
-       struct appdata *ap = (struct appdata *) data;
-
-       if (ap->mf_Status.flagIcuInit == FALSE) {
-               return;
-       }
-       /* finalize the previous icu session */
-       mf_util_icu_finalize(ap);
-       /* start a new icu session */
-       mf_util_icu_init(ap);
-       /* check if we should refresh the list */
-       int iSortTypeValue = 0;
-       mf_util_get_pref_value(PREF_TYPE_SORT_TYPE, &iSortTypeValue);
-       if (iSortTypeValue != MYFILE_SORT_BY_DATE_R2O
-               && iSortTypeValue != MYFILE_SORT_BY_DATE_O2R) {
-               return;
-       }
-
-       if (ap->mf_Status.more != MORE_DEFAULT) {
-               return;
-       }
-
-
-       /*get current genlist */
-       Evas_Object *currgenlist = ap->mf_MainWindow.pNaviGenlist;
-       if (currgenlist == NULL) {
-               return;
-       }
-       /*create new genlist */
-       mf_view_update(ap);
-       return;
-}
-
-/******************************
  ** Prototype    : mf_callback_new_folder_create_cb
  ** Description  :
  ** Input        : void *data
@@ -2613,23 +2501,6 @@ void mf_callback_rename_create_cb(void *data, Evas_Object * obj,
        MF_TRACE_END;
 }
 
-void mf_callback_max_len_button_cb(void *data, Evas_Object * obj,
-                                                                  void *event_info)
-{
-       MF_TRACE_BEGIN;
-       mf_retm_if(data == NULL, "data is NULL");
-       struct appdata *ap = (struct appdata *) data;
-
-       if (ap->mf_Status.more == MORE_SEARCH) {
-               elm_object_focus_set(ap->mf_MainWindow.pSearchEntry, EINA_TRUE);
-               elm_entry_cursor_end_set(ap->mf_MainWindow.pSearchEntry);
-
-       } else {
-               elm_entry_cursor_end_set(ap->mf_MainWindow.pEntry);
-               elm_object_focus_set(ap->mf_MainWindow.pEntry, EINA_TRUE);
-       }
-}
-
 void mf_callback_entry_unfocus(Evas_Object * entry)
 {
        if (entry) {
@@ -3076,7 +2947,18 @@ void *mf_callback_compress_cb(void *data)
 
        int argc = mf_util_get_eina_list_len(source_file_list) + 2;
        char **argv = (char **) malloc(argc * sizeof(char *));
+
+       if (argv == NULL) {
+               return NULL;
+       }
+
        argv[0] = (char *) malloc(sizeof(char) * 10);
+
+       if (argv[0] == NULL) {
+               free(argv);
+               return NULL;
+       }
+
        strcpy(argv[0], "minizip");
        argv[1] = (char *) malloc(sizeof(char) * strlen(dest_name));
        strcpy(argv[1], dest_name);
@@ -3205,7 +3087,19 @@ void mf_callback_decompress_cb(void *data)
 
        int argc = 4;
        char **argv = (char **) malloc(argc * sizeof(char *));
+
+       if (argv == NULL) {
+               pthread_exit(0);
+               return;
+       }
+
        argv[0] = (char *) malloc(sizeof(char) * 15);
+
+       if (argv[0] == NULL) {
+               pthread_exit(0);
+               return;
+       }
+
        strncpy(argv[0], "miniunzip", 10);
 
        if (!ap->launched_file_name) {
@@ -3378,7 +3272,6 @@ void mf_callback_details_cb(void *data, Evas_Object * obj,
                mf_util_free_eina_list_with_data(&select_list,
                                                                                 MYFILE_TYPE_GSTRING);
                mf_error("path is [%s]", total_path);
-               //mf_launch_load_ug(ap, total_path, MF_LOAD_UG_DETAIL, EINA_TRUE);
                __mf_load_detail_data(ap, total_path, EINA_TRUE);
 
                ap->mf_Status.preViewType = ap->mf_Status.view_type;
@@ -3434,7 +3327,6 @@ void mf_callback_download_details_cb(void *data, Evas_Object * obj,
                }
 //      mf_util_free_eina_list_with_data(&select_list, MYFILE_TYPE_GSTRING);
                mf_error("path is [%s]", total_path);
-               //mf_launch_load_ug(ap, total_path, MF_LOAD_UG_DETAIL, EINA_TRUE);
                __mf_load_detail_data(ap, total_path, EINA_TRUE);
 
                ap->mf_Status.preViewType = ap->mf_Status.view_type;
@@ -3982,63 +3874,6 @@ void mf_callback_download_delete_cb(void *data, Evas_Object * obj,
  **    Modification : Created function
  **
  ******************************/
-void mf_callback_operation_request_rename_cb(void *data, Evas_Object * obj,
-                                                                                        void *event_info)
-{
-       MF_TRACE_BEGIN;
-       struct appdata *ap = (struct appdata *) data;
-       mf_retm_if(ap == NULL, "ap is NULL");
-
-       mf_fo_request *request = ap->mf_FileOperation.pRequest;
-
-       if (ap->mf_MainWindow.pProgressPopup) {
-               evas_object_show(ap->mf_MainWindow.pProgressPopup);
-       }
-
-       ap->mf_FileOperation.iRequestType = MF_REQ_RENAME;
-       mf_request_set_result(request, MF_REQ_RENAME);
-       MF_TRACE_END;
-}
-
-void mf_callback_operation_request_replace_cb(void *data,
-                                                                                         Evas_Object * obj,
-                                                                                         void *event_info)
-{
-       MF_TRACE_BEGIN;
-       struct appdata *ap = (struct appdata *) data;
-       mf_retm_if(ap == NULL, "ap is NULL");
-
-       mf_fo_request *request = ap->mf_FileOperation.pRequest;
-
-       if (ap->mf_MainWindow.pProgressPopup) {
-               evas_object_show(ap->mf_MainWindow.pProgressPopup);
-       }
-
-       ap->mf_FileOperation.iRequestType = MF_REQ_MERGE;
-       if (ap->mf_FileOperation.refresh_type == TRUE) {
-               mf_request_set_result(request, MF_REQ_SKIP);
-       } else {
-               mf_request_set_result(request, MF_REQ_MERGE);
-       }
-       MF_TRACE_END;
-}
-
-void mf_callback_operation_request_cancel_cb(void *data, Evas_Object * obj,
-                                                                                        void *event_info)
-{
-       MF_TRACE_BEGIN;
-       struct appdata *ap = (struct appdata *) data;
-       mf_retm_if(ap == NULL, "ap is NULL");
-
-       mf_fo_request *request = ap->mf_FileOperation.pRequest;
-
-       if (ap->mf_MainWindow.pProgressPopup) {
-               evas_object_show(ap->mf_MainWindow.pProgressPopup);
-       }
-
-       mf_request_set_result(request, MF_REQ_CANCEL);
-       MF_TRACE_END;
-}
 
 void mf_callback_popup_cancel_cb(void *data, Evas_Object * obj,
                                                                 void *event_info)
@@ -4360,7 +4195,6 @@ static void __mf_callback_mmc_connected(void *data)
                        elm_object_focus_set(entry, EINA_TRUE);
                }
        }
-       //mf_navi_bar_title_set(ap);
 }
 
 void mf_callback_storage_remove_view_operation(void *data, int optStorage)
@@ -4765,7 +4599,6 @@ static void __mf_callback_mmc_removed(void *data, MF_STORAGE storage)
                evas_object_del(ap->mf_MainWindow.pMmcRemovedPopup);
                ap->mf_MainWindow.pMmcRemovedPopup = NULL;
        }
-       //mf_navi_bar_title_set(ap);
        SAFE_FREE_CHAR(storage_loc);
 }
 
@@ -5186,7 +5019,7 @@ void mf_callback_backbutton_clicked_cb(void *data, Evas_Object * obj,
                        char *curr = (char *)eina_list_nth(ap->history, 0);
                        if (curr && !strncmp(curr, "main_view", strlen(curr))) {
                                ap->mf_Status.view_type = 1;
-                       } else if(curr) {
+                       } else if (curr) {
                                mf_debug("curr path is %s", curr);
                                ap->mf_Status.path = NULL;
                                ap->mf_Status.path = g_string_new(curr);
@@ -5213,23 +5046,6 @@ Eina_Bool mf_callback_navi_backbutton_clicked_cb(void *data,
        return EINA_FALSE;
 }
 
-void mf_callback_new_folder_changed_cb(void *data, Evas_Object * obj,
-                                                                          void *event_info)
-{
-       MF_TRACE_BEGIN;
-       struct appdata *ap = (struct appdata *) data;
-       mf_retm_if(ap == NULL, "ap is null");
-
-       Eina_Bool entry_empty = elm_entry_is_empty(ap->mf_MainWindow.pEntry);
-       if (entry_empty) {
-               elm_object_signal_emit(obj, "elm,state,clear,hidden", "");
-       } else {
-               elm_object_signal_emit(obj, "elm,state,clear,visible", "");
-       }
-       MF_TRACE_END;
-
-}
-
 void mf_callback_genlist_imf_preedit_change_cb(void *data,
                                                                                           Evas_Object * obj,
                                                                                           void *event_info)
@@ -5344,7 +5160,6 @@ void mf_callback_detail_button_cb(void *data, Evas_Object * obj,
        struct appdata *ap = (struct appdata *) params->ap;
        SAFE_FREE_OBJ(ap->mf_MainWindow.pLongpressPopup);
 
-       //mf_launch_load_ug(ap, params->m_ItemName->str, MF_LOAD_UG_DETAIL, EINA_FALSE);
        __mf_load_detail_data(ap, params->m_ItemName->str, EINA_FALSE);
 
        ap->mf_Status.preViewType = ap->mf_Status.view_type;
@@ -5354,24 +5169,6 @@ void mf_callback_detail_button_cb(void *data, Evas_Object * obj,
 }
 #endif
 
-void mf_callback_detail_ctx_cb(void *data, Evas_Object * obj,
-                                                          void *event_info)
-{
-       mf_retm_if(data == NULL, "data is NULL");
-       mfItemData_s *itemData = (mfItemData_s *) data;
-       struct appdata *ap = (struct appdata *) itemData->ap;
-       mf_retm_if(ap == NULL, "ap is NULL");
-
-       SAFE_FREE_OBJ(ap->mf_MainWindow.pContextPopup);
-
-       //mf_launch_load_ug(ap, itemData->m_ItemName->str, MF_LOAD_UG_DETAIL, EINA_FALSE);
-       __mf_load_detail_data(ap, itemData->m_ItemName->str, EINA_FALSE);
-
-       ap->mf_Status.preViewType = ap->mf_Status.view_type;
-       ap->mf_Status.view_type = mf_view_detail;
-       mf_view_update(ap);
-}
-
 static void __mf_callback_delete_in_idle(void *data, Evas_Object * obj,
                                                                                 void *event_info)
 {
@@ -5467,30 +5264,6 @@ void mf_callback_view_as_cb(void *data, Evas_Object * obj,
                                                          mf_callback_popup_deleted_cb, ap);
 }
 
-void mf_callback_view_style_cb(void *data, Evas_Object * obj,
-                                                          void *event_info)
-{
-       MF_TRACE_BEGIN;
-       mf_retm_if(data == NULL, "data is NULL");
-
-       struct appdata *ap = (struct appdata *) data;
-
-       SAFE_FREE_OBJ(ap->mf_MainWindow.pContextPopup);
-       if (ap->mf_Status.flagViewType == MF_VIEW_STYLE_LIST) {
-               ap->mf_Status.flagViewType = MF_VIEW_STYLE_THUMBNAIL;
-       } else {
-               ap->mf_Status.flagViewType = MF_VIEW_STYLE_LIST;
-       }
-
-       mf_util_set_view_style(ap->mf_Status.flagViewType);
-
-       if (ap->mf_Status.flagNoContent != EINA_TRUE) {
-               mf_view_update(ap);
-       }
-       MF_TRACE_END;
-}
-
-
 void mf_callback_home_button_cb(void *data, Evas_Object * obj,
                                                                void *event_info)
 {
@@ -5550,39 +5323,6 @@ void mf_callback_eraser_clicked_cb(void *data, Evas_Object * obj,
        //  elm_object_focus_set(data, EINA_TRUE);
 }
 
-void mf_callback_extension_cb(void *data, Evas_Object * obj,
-                                                         void *event_info)
-{
-       MF_TRACE_BEGIN;
-       mf_retm_if(data == NULL, "user_data is NULL");
-
-       struct appdata *ap = (struct appdata *) data;
-
-       Evas_Object *playout = ap->mf_MainWindow.pNaviLayout;
-       mf_retm_if(playout == NULL, "get conformant failed");
-       Evas_Object *newContent = NULL;
-       Elm_Object_Item *item = (Elm_Object_Item *) event_info;
-       const char *label = elm_object_item_text_get(item);
-       if (g_strcmp0(label, mf_util_get_text(MF_LABEL_SHOW_EXTENSION)) == 0) {
-               mf_util_set_extension_state(MF_EXTENSION_SHOW);
-               ap->mf_Status.iExtensionState = MF_EXTENSION_SHOW;
-       } else if (g_strcmp0(label, mf_util_get_text(MF_LABEL_HIDE_EXTENSION))
-                          == 0) {
-               mf_util_set_extension_state(MF_EXTENSION_HIDE);
-               ap->mf_Status.iExtensionState = MF_EXTENSION_HIDE;
-       } else {
-               SAFE_FREE_OBJ(ap->mf_MainWindow.pContextPopup);
-               return;
-       }
-       SAFE_FREE_OBJ(ap->mf_MainWindow.pContextPopup);
-
-       if (ap->mf_Status.flagNoContent != EINA_TRUE) {
-               newContent = mf_navi_bar_content_create(ap);
-               mf_navi_bar_set_content(ap, playout, newContent);
-       }
-       ap->mf_Status.more = MORE_DEFAULT;
-}
-
 void mf_callback_profile_changed_cb(void *data, Evas_Object * obj,
                                                                        void *event_info)
 {
@@ -5874,65 +5614,6 @@ static void __mf_callback_sip_imf_hide_cb(void *data, Evas_Object * obj,
        MF_TRACE_END;
 }
 
-void mf_callback_imf_state_callback_register(void *data)
-{
-       MF_TRACE_BEGIN;
-       struct appdata *ap = (struct appdata *) data;
-       mf_retm_if(ap == NULL, "ap is NULL");
-
-       Evas_Object *conform = ap->mf_MainWindow.pConformant;
-       evas_object_smart_callback_add(conform, "virtualkeypad,state,off",
-                                                                  __mf_callback_sip_imf_hide_cb, ap);
-
-       evas_object_smart_callback_add(conform, "virtualkeypad,state,on",
-                                                                  __mf_callback_sip_imf_show_cb, ap);
-
-       evas_object_smart_callback_add(conform, "clipboard,state,off",
-                                                                  __mf_callback_sip_imf_hide_cb, ap);
-
-       evas_object_smart_callback_add(conform, "clipboard,state,on",
-                                                                  __mf_callback_sip_imf_show_cb, ap);
-
-       MF_TRACE_END;
-}
-
-void mf_callback_imf_state_callback_del(void *data)
-{
-       MF_TRACE_BEGIN;
-       struct appdata *ap = (struct appdata *) data;
-       mf_retm_if(ap == NULL, "ap is NULL");
-       Evas_Object *conform = ap->mf_MainWindow.pConformant;
-       evas_object_smart_callback_del(conform, "virtualkeypad,state,on",
-                                                                  __mf_callback_sip_imf_show_cb);
-
-       evas_object_smart_callback_del(conform, "virtualkeypad,state,off",
-                                                                  __mf_callback_sip_imf_hide_cb);
-
-       evas_object_smart_callback_del(conform, "clipboard,state,on",
-                                                                  __mf_callback_sip_imf_show_cb);
-
-       evas_object_smart_callback_del(conform, "clipboard,state,off",
-                                                                  __mf_callback_sip_imf_hide_cb);
-
-       MF_TRACE_END;
-}
-
-void mf_callback_entry_focused_cb(void *data, Evas_Object * obj,
-                                                                 void *event_info)
-{
-       if (!elm_entry_is_empty(obj)) {
-               elm_object_signal_emit(data, "elm,state,eraser,show", "");
-       }
-       elm_object_signal_emit(data, "elm,state,rename,hide", "");
-}
-
-void mf_callback_entry_unfocused_cb(void *data, Evas_Object * obj,
-                                                                       void *event_info)
-{
-       elm_object_signal_emit(data, "elm,state,eraser,hide", "");
-       elm_object_signal_emit(data, "elm,state,rename,show", "");
-}
-
 void mf_callback_mouseup_cb(void *data, Evas * e, Evas_Object * obj,
                                                        void *event_info)
 {
@@ -5970,46 +5651,6 @@ void mf_callback_more_keydown_cb(void *data, Evas * e, Evas_Object * obj,
 
 }
 
-void mf_callback_hardkey_back_cb(void *data, Evas_Object * obj,
-                                                                void *event_info)
-{
-       MF_TRACE_BEGIN;
-       mf_retm_if(data == NULL, "data is NULL");
-       struct appdata *ap = (struct appdata *) data;
-
-       if (ap->mf_Status.more == MORE_DEFAULT) {
-               if (ap->mf_Status.view_type == mf_view_root) {
-                       Evas_Object *win = ap->mf_MainWindow.pWindow;
-                       elm_win_lower(win);
-               } else if (ap->mf_Status.view_type == mf_view_root_category
-                                  || ap->mf_Status.view_type == mf_view_storage) {
-                       ap->mf_Status.view_type = mf_view_root;
-                       mf_view_update(ap);
-               } else {
-                       if (ap->mf_Status.entry_path
-                               && g_strcmp0(ap->mf_Status.entry_path,
-                                                        ap->mf_Status.path->str) == 0) {
-                               ap->mf_Status.view_type = mf_view_root_category;
-                               mf_view_update(ap);
-                               mf_object_item_part_content_remove(ap->mf_MainWindow.
-                                                                                                  pNaviItem,
-                                                                                                  TITLE_LEFT_BTN);
-                               mf_object_item_part_content_remove(ap->mf_MainWindow.
-                                                                                                  pNaviItem,
-                                                                                                  TITLE_RIGHT_BTN);
-                               mf_navi_bar_layout_state_set(ap->mf_MainWindow.pNaviLayout,
-                                                                                        mf_navi_layout_content_only);
-                               SAFE_FREE_CHAR(ap->mf_Status.entry_path);
-                       } else {
-                               mf_callback_upper_click_cb(ap, NULL, NULL);
-                       }
-               }
-       } else {
-               mf_callback_cancel_cb(ap, NULL, NULL);
-       }
-       MF_TRACE_END;
-}
-
 void mf_callback_hardkey_more_cb(void *data, Elm_Object_Item * it,
                                                                 const char *emission, const char *source)
 {
@@ -6666,6 +6307,9 @@ void mf_sql_select_response_cb(int request_id, data_control_h provider,
                        myfileDownloadRecord *createList =
                                (myfileDownloadRecord *)
                                malloc(sizeof(myfileDownloadRecord));
+                       if (!createList) {
+                               break;
+                       }
                        char word[1024] = { 0, };
                        char word_desc[1024] = { 0, };
                        char path[1024] = { 0, };
@@ -6681,6 +6325,9 @@ void mf_sql_select_response_cb(int request_id, data_control_h provider,
                                if (strlen(word_desc) > 0) {
                                        mf_debug("Word DESC : %s", word_desc);
                                        createList->name = strdup(word_desc);
+                                       if (!createList->name) {
+                                               continue;
+                                       }
                                } else {
                                        continue;
                                }
@@ -6694,6 +6341,9 @@ void mf_sql_select_response_cb(int request_id, data_control_h provider,
                        } else {
                                mf_debug("Word : %s", word);
                                createList->url = strdup(word);
+                               if (!createList->url) {
+                                       continue;
+                               }
                        }
 
                        result = data_control_sql_get_text_data(cursor, 2, path);
@@ -6706,6 +6356,9 @@ void mf_sql_select_response_cb(int request_id, data_control_h provider,
                                snprintf(fullpath, 1024, "%s%s", path, word_desc);
                                mf_debug("date : %s", fullpath);
                                createList->path = strdup(fullpath);
+                               if (!createList->path) {
+                                       continue;
+                               }
                        }
 
                        result = data_control_sql_get_int_data(cursor, 3, &id);
index 947b1a8..63f698a 100644 (file)
 #include "mf-edit-view.h"
 #include "mf-file-util.h"
 
-void mf_detail_widget_object_text_set(Evas_Object * obj, const char *ID,
-                                                                         const char *part)
-{
-       const char *domain;
-
-       domain = DETAIL_UG_PKGNAME;
-
-       elm_object_domain_translatable_part_text_set(obj, part, domain, ID);
-}
-
-
-void mf_detail_widget_object_item_text_set(Elm_Object_Item * item,
-                                                                                  const char *ID,
-                                                                                  const char *part)
-{
-       const char *domain;
-
-       domain = DETAIL_UG_PKGNAME;
-       elm_object_item_domain_translatable_part_text_set(item, part, domain,
-                                                                                                         ID);
-}
-
-void mf_detail_widget_object_item_translate_set(Elm_Object_Item * item,
-                                                                                               const char *ID)
-{
-       const char *domain;
-
-       domain = DETAIL_UG_PKGNAME;
-
-       elm_object_item_domain_text_translatable_set(item, domain, EINA_TRUE);
-}
-
 char *mf_detail_widget_get_text(const char *ID)
 {
        char *str;
index 8013c85..c9b3a02 100644 (file)
@@ -79,29 +79,6 @@ Eina_Bool mf_is_dir(const char *path)
        return 0;
 }
 
-int mf_is_dir_empty(const char *path)
-{
-       struct stat info = { 0, };
-       struct dirent ent_struct;
-       struct dirent *dp = NULL;
-       DIR *dirp = NULL;
-
-       dirp = opendir(path);
-       if (!dirp) {
-               return -1;
-       }
-
-       while ((readdir_r(dirp, &ent_struct, &dp) == 0) && dp) {
-               if (stat(dp->d_name, &info) == 0 && (strcmp(dp->d_name, "."))
-                       && (strcmp(dp->d_name, ".."))) {
-                       closedir(dirp);
-                       return 0;
-               }
-       }
-       closedir(dirp);
-       return 1;
-}
-
 int mf_mkdir(const char *dir)
 {
        if (mkdir(dir, default_mode) < 0) {
@@ -178,18 +155,6 @@ int mf_file_unlink(const char *filename)
        }
 }
 
-int mf_file_size(const char *filename)
-{
-       struct stat info = { 0, };
-       if (stat(filename, &info) == 0) {
-               if (!S_ISDIR(info.st_mode)) {
-                       return info.st_size;
-               }
-       }
-
-       return 0;
-}
-
 int mf_file_rmdir(const char *filename)
 {
        int status = rmdir(filename);
@@ -200,34 +165,6 @@ int mf_file_rmdir(const char *filename)
        }
 }
 
-Eina_List *mf_file_ls(const char *dir)
-{
-       char *f;
-       DIR *dirp = NULL;
-       struct dirent ent_struct;
-       struct dirent *dp = NULL;
-       Eina_List *list = NULL;
-
-       dirp = opendir(dir);
-       if (!dirp) {
-               return NULL;
-       }
-
-       while ((readdir_r(dirp, &ent_struct, &dp) == 0) && dp) {
-               if ((strcmp(dp->d_name, ".")) && (strcmp(dp->d_name, ".."))) {
-                       f = strdup(dp->d_name);
-                       list = eina_list_append(list, f);
-               }
-       }
-       closedir(dirp);
-
-       list =
-               eina_list_sort(list, eina_list_count(list),
-                                          EINA_COMPARE_CB(strcoll));
-
-       return list;
-}
-
 int mf_file_recursive_rm(const char *dir)
 {
        char buf[PATH_MAX_SIZE] = { 0, };
@@ -306,32 +243,6 @@ int mf_file_cp(const char *src, const char *dst)
        return ret;
 }
 
-int mf_file_mv(const char *src, const char *dst)
-{
-       struct stat info = { 0, };
-       if (stat(dst, &info) == 0) {
-               return 0;
-       }
-
-       if (rename(src, dst)) {
-               memset(&info, 0x00, sizeof(struct stat));
-               if (stat(src, &info) == 0) {
-                       if (S_ISREG(info.st_mode)) {
-                               mf_file_cp(src, dst);
-                               if (chmod(dst, info.st_mode) < 0) {
-                                       mf_debug("failed to set attributes");
-                               }
-                               if (unlink(src) < 0) {
-                                       mf_debug("failed to delete source");
-                               }
-                               return 1;
-                       }
-               }
-               return 0;
-       }
-       return 1;
-}
-
 int mf_remove(const char *filename)
 {
        int status = remove(filename);
index 4f1674b..bc0dbf2 100644 (file)
@@ -144,61 +144,6 @@ int mf_fm_svc_wrapper_get_location(const char *fullpath)
 }
 
 /*********************
-**Function name:       mf_fm_svc_wrapper_detect_duplication
-**Parameter:
-**     GString* fullpath:      fullpath to check the duplication
-**
-**Return value:
-**     TRUE    if duplication detected
-**     FALSE   if duplication not detected
-**
-**Action:
-**     check if the destination is duplicated
-*********************/
-bool mf_fm_svc_wrapper_detect_duplication(GString * to)
-{
-       int existing = MYFILE_ERR_NONE;
-       if (to == NULL) {
-               return false;
-       }
-       GString *parent_path = mf_fm_svc_wrapper_get_file_parent_path(to);
-       GString *file_name = mf_fm_svc_wrapper_get_file_name(to);
-
-       SECURE_DEBUG("full path and file name %s", to->str);
-       if (file_name == NULL || parent_path == NULL || file_name->len == 0) {
-               return false;
-       }
-
-       if (parent_path->str != NULL) {
-               mf_debug("parent_path->str is %s", parent_path->str);
-       }
-       if (file_name->str != NULL) {
-               SECURE_DEBUG("file_name->str is %s", file_name->str);
-       }
-
-       existing =
-               mf_file_attr_is_duplicated_name(parent_path->str, file_name->str);
-
-       mf_debug("EXIST result is %d", existing);
-
-       if (parent_path != NULL) {
-               g_string_free(parent_path, TRUE);
-       }
-       parent_path = NULL;
-
-       if (file_name != NULL) {
-               g_string_free(file_name, TRUE);
-       }
-       file_name = NULL;
-
-       if (existing == MYFILE_ERR_NONE) {
-               return false;
-       } else {
-               return true;
-       }
-}
-
-/*********************
 **Function name:       mf_fm_svc_wrapper_detect_recursion
 **Parameter:
 **     GString* from:  the dir to check
@@ -264,21 +209,6 @@ int mf_fm_svc_wrapper_detect_recursion(GString * from, GString * to)
        return MYFILE_REPORT_NONE;
 }
 
-char *mf_fm_svc_wrapper_get_root_path_by_location(int location)
-{
-       if (location == MYFILE_PHONE) {
-               return g_strdup(PHONE_FOLDER);
-       } else if (location == MYFILE_MMC) {
-               return g_strdup(MEMORY_FOLDER);
-#ifdef MYFILE_USB_OTG
-       } else if (location == MYFILE_OTG) {
-               return g_strdup(OTG_FOLDER);
-#endif
-       } else {
-               return NULL;
-       }
-}
-
 /*********************
 **Function name:       mf_fm_svc_wrapper_file_auto_rename
 **Parameter:
@@ -420,62 +350,6 @@ int mf_fm_svc_wrapper_get_file_list(const char *folder_name,
        return error_code;
 }
 
-/******************************
-** Prototype    : mf_fm_svc_wrapper_classify_dir_list
-** Description  : classify the dir list into default and user defined
-** Input        : Eina_List *dir_list
-**                Eina_List **default_dir_list
-**                Eina_List **user_dir_list
-** Output       : None
-** Return Value :
-** Calls        :
-** Called By    :
-**
-**  History        :
-**  1.Date         : 2010/12/10
-**    Author       : Samsung
-**    Modification : Created function
-**
-******************************/
-int mf_fm_svc_wrapper_classify_dir_list(Eina_List * dir_list,
-                                                                               Eina_List ** default_dir_list,
-                                                                               Eina_List ** user_dir_list)
-{
-       int error_code = MYFILE_ERR_NONE;
-       fsNodeInfo *pNode = NULL;
-       Eina_List *l = NULL;
-
-       EINA_LIST_FOREACH(dir_list, l, pNode) {
-               if (pNode) {
-                       char *real_name = NULL;
-                       bool result = false;
-                       GString *foldername = NULL;
-                       real_name = g_strconcat(pNode->path, "/", pNode->name, NULL);
-
-                       if (real_name) {
-                               foldername = g_string_new(real_name);
-                               SAFE_FREE_CHAR(real_name);
-                       } else {
-                               continue;
-                       }
-                       int error_code =
-                               mf_fm_svc_wrapper_get_folder_foldersystem(foldername,
-                                                                                                                 &result);
-
-                       if (error_code == 0 && result == true) {
-                               mf_debug("in default");
-                               *default_dir_list =
-                                       eina_list_append(*default_dir_list, pNode);
-                       } else {
-                               mf_debug("in else");
-                               *user_dir_list = eina_list_append(*user_dir_list, pNode);
-                       }
-               }
-       }
-       return error_code;
-}
-
-
 /*********************
 **Function name:       mf_fm_svc_wrapper_is_root_path
 **Parameter:
@@ -851,175 +725,6 @@ static void __mf_fm_svc_wrapper_path_info_node_free(Eina_List * list)
        eina_list_free(list);
 }
 
-char *mf_fm_svc_path_info_translate(char *path_info, int path_info_max_len)
-{
-
-       mf_retvm_if(path_info == NULL,
-                               g_strdup(dgettext
-                                                (MYFILE_STRING_PACKAGE, "IDS_COM_BODY_UNKNOWN")),
-                               "input path is NULL");
-
-       int top = 0;
-       bool flag = TRUE;
-       Eina_List *temp_list = NULL;
-       const Eina_List *l = NULL;
-       gchar **result = NULL;
-       gchar **params = NULL;
-       int count = 0;
-       int max_len = 0;
-       int total_len = 0;
-       int i = 0;
-       char *output = NULL;
-       void *pnode = NULL;
-       char *omit = MF_PATH_INFO_TRANS_OMIT;
-       if (!omit) {
-               return
-                       g_strdup(dgettext
-                                        (MYFILE_STRING_PACKAGE, "IDS_COM_BODY_UNKNOWN"));
-       }
-
-       if (strlen(path_info) < path_info_max_len) {
-               SAFE_FREE_CHAR(omit);
-               return path_info;
-       }
-
-       result = g_strsplit(path_info, "/", 0);
-       if (result == NULL) {
-               SAFE_FREE_CHAR(path_info);
-               SAFE_FREE_CHAR(omit);
-               return
-                       g_strdup(dgettext
-                                        (MYFILE_STRING_PACKAGE, "IDS_COM_BODY_UNKNOWN"));
-       }
-
-       params = result;
-       count = g_strv_length(result);
-
-       if (count > MF_PATH_INFO_LEVEL_BOUNDARY) {
-               top = MF_PATH_INFO_LEVEL_BOUNDARY;
-               flag = FALSE;
-               max_len = path_info_max_len - MF_PATH_INFO_LEVEL_BOUNDARY - MF_PATH_INFO_HEAD_LEN(omit);        //(2 is length of ..) ../aa../bb../***
-       } else {
-               top = count;
-               flag = TRUE;
-               max_len = path_info_max_len - (count - 1);
-       }
-
-       for (i = top; i > 1; i--) {
-               pNode *nodeB = calloc(sizeof(pNode), 1);
-               if (nodeB) {
-                       nodeB->original = elm_entry_utf8_to_markup(params[count - i]);
-                       nodeB->len_orig = strlen(params[count - i]);
-                       nodeB->transfer =
-                               mf_fm_svc_path_info_retrench(params[count - i]);
-                       if (nodeB->transfer) {
-                               nodeB->len_trans = strlen(nodeB->transfer);
-                       } else {
-                               mf_error("nodeB->transfer is NULL");
-                       }
-                       nodeB->flag_trans = FALSE;
-                       total_len += nodeB->len_orig;
-
-                       temp_list = eina_list_append(temp_list, nodeB);
-               }
-       }
-
-       total_len += strlen(params[count - 1]);
-
-       for (i = 0; i < eina_list_count(temp_list); i++) {
-               if (total_len > max_len) {
-                       pNode *data = NULL;
-                       data = eina_list_nth(temp_list, i);
-                       if (data != NULL) {
-                               total_len -= (data->len_orig - data->len_trans);
-                               data->flag_trans = TRUE;
-                       }
-               }
-
-               if (total_len <= max_len) {
-                       break;
-               }
-       }
-
-
-       if (flag == FALSE) {
-               output = elm_entry_utf8_to_markup("..");
-       }
-       char *temp = NULL;
-       char *sep = MF_PATH_INFO_SEP;
-       EINA_LIST_FOREACH(temp_list, l, pnode) {
-               if (pnode) {
-                       pNode *node = (pNode *) pnode;
-                       temp = output;
-                       if (node->flag_trans == TRUE) {
-                               if (output != NULL) {
-                                       output =
-                                               g_strconcat(output, sep, node->transfer, NULL);
-                               } else {
-                                       output = g_strdup(node->transfer);
-                               }
-                       } else {
-                               if (output != NULL) {
-                                       output =
-                                               g_strconcat(output, sep, node->original, NULL);
-                               } else {
-                                       output = g_strdup(node->original);
-                               }
-                       }
-                       SAFE_FREE_CHAR(temp);
-               }
-       }
-       temp = output;
-       char *last_string = params[count - 1];
-       char *utf8_last = elm_entry_utf8_to_markup(last_string);
-
-       if (output != NULL) {
-               int last_len = strlen(last_string);
-               int output_len = strlen(output);
-               int d_value = path_info_max_len - output_len;
-               if ((last_len + output_len) > path_info_max_len) {
-                       mf_debug();
-
-                       const char *end = NULL;
-                       gboolean ret = FALSE;
-                       if (utf8_last != NULL) {
-                               ret = g_utf8_validate(utf8_last, d_value, &end);
-                       } else {
-                               mf_error("utf8_last is NULL");
-                       }
-                       if (ret == TRUE) {
-                               d_value = last_len - strlen(end);
-                               if (utf8_last) {
-                                       utf8_last[d_value] = '\0';
-                                       output =
-                                               g_strconcat(output, sep, utf8_last, omit, NULL);
-                               }
-                               SAFE_FREE_CHAR(temp);
-                       }
-               } else {
-                       if (utf8_last) {
-                               output = g_strconcat(output, sep, utf8_last, NULL);
-                       }
-                       SAFE_FREE_CHAR(temp);
-               }
-       } else {
-               if (utf8_last) {
-                       output = g_strdup(utf8_last);
-               }
-               SAFE_FREE_CHAR(temp);
-       }
-       SAFE_FREE_CHAR(utf8_last);
-
-       SAFE_FREE_CHAR(sep);
-       SAFE_FREE_CHAR(omit);
-       SAFE_FREE_CHAR(path_info);
-       __mf_fm_svc_wrapper_path_info_node_free(temp_list);
-       temp_list = NULL;
-       g_strfreev(result);
-       result = NULL;
-       return output;
-}
-
 /*********************
 **Function name:       __mf_fm_svc_wrapper_get_unique_name
 **Parameter:
@@ -1340,15 +1045,21 @@ Eina_List *mf_fm_svc_wrapper_level_path_get(const char *original_path,
                        gchar **result = NULL;
                        gchar **params = NULL;
                        result = g_strsplit(current_path, "/", 0);
-                       char *level_path = NULL;
+                       char *level_path = g_strconcat(root_path, "/", result[0], NULL);
+                       if (level_path != NULL) {
+                               path_list = eina_list_append(path_list, level_path);
+                       }
                        for (params = result; *params; params++) {
-                               if (level_path == NULL) {
-                                       level_path =
-                                               g_strconcat(root_path, "/", *params, NULL);
-                               } else {
+//                             if (level_path == NULL) {
+//                                     level_path =
+//                                             g_strconcat(root_path, "/", *params, NULL);
+//                             } else {
+                               if (level_path == root_path) {
+                                       continue;
+                               }
                                        level_path =
                                                g_strconcat(level_path, "/", *params, NULL);
-                               }
+//                             }
                                path_list = eina_list_append(path_list, level_path);
                        }
 
@@ -1406,23 +1117,3 @@ char *mf_fm_svc_get_file_name(GString * path)
        }
        return guide_text;
 }
-
-int mf_fm_svc_wrapper_create_p(const char *fullpath)
-{
-       MF_TRACE_BEGIN;
-
-       mf_error("path is [%s]", fullpath);
-       int error_code = MYFILE_ERR_NONE;
-
-       if (mf_file_exists(fullpath)) {
-               return error_code;
-       }
-       if (!mf_mkpath(fullpath)) {
-               error_code = MYFILE_ERR_DIR_CREATE_FAIL;
-               goto EXIT;
-       }
-
-  EXIT:
-       mf_error("error_code  = %d", error_code);
-       return error_code;
-}
index 95a19ea..0c2c2e8 100644 (file)
@@ -48,21 +48,14 @@ Eina_Bool __mf_fs_monitor_dir_pipe_add_cb(void *data)
        }
        monitor_refresh_start_flag = EINA_TRUE;
        if (ap->mf_Status.more == MORE_THUMBNAIL_RENAME) {
-               //char *rename_item_name = mf_popup_rename_item_name_get();
-               //if (rename_item_name && g_strcmp0(fs_monitor_update_item_name, rename_item_name) == 0) {
                mf_popup_rename_cancel();
-               //}
        }
        if (ap->mf_MainWindow.pLongpressPopup) {
                SAFE_FREE_OBJ(ap->mf_MainWindow.pLongpressPopup);
        }
        if (ap->mf_MainWindow.pDeleteConfirmPopup) {
-               //mfItemData_s *item_data = elm_object_item_data_get(ap->mf_FileOperation.idle_delete_item);
-               //char *delete_item_name = item_data->m_ItemName->str;
-               //if (delete_item_name && g_strcmp0(fs_monitor_update_item_name, delete_item_name) == 0) {
                SAFE_FREE_OBJ(ap->mf_MainWindow.pDeleteConfirmPopup);
                ap->mf_FileOperation.idle_delete_item = NULL;
-               //}
        }
 
        int view_style = mf_view_style_get(ap);
index 4248ee1..63df3c5 100644 (file)
@@ -654,48 +654,6 @@ void result_cb(app_control_h request, app_control_h reply,
        MF_TRACE_END;
 }
 
-void mf_launch_load_ug(void *data, char *path, MF_LOAD_UG_TYPE type,
-                                          Eina_Bool multi_flag)
-{
-       MF_TRACE_BEGIN;
-       mf_retm_if(data == NULL, "data is NULL");
-       mf_retm_if(path == NULL, "path is NULL");
-
-       struct appdata *ap = (struct appdata *) data;
-       //struct ug_cbs cbs = { 0, };
-
-       app_control_h app_control;
-       int ret = 0;
-       ret = app_control_create(&app_control);
-
-       mf_retm_if(ret != APP_CONTROL_ERROR_NONE, "app_control create failed");
-
-       //cbs.layout_cb = __mf_launch_ug_layout_cb;
-       //cbs.result_cb = __mf_launch_ug_result_cb;
-       //cbs.destroy_cb = __mf_launch_ug_destory_cb;
-       //cbs.priv = ap;
-
-       app_control_add_extra_data(app_control, "Path", path);
-       if (multi_flag) {
-               app_control_add_extra_data(app_control, "multi", "true");
-       }
-       ap->mf_SharedGadget.location = mf_fm_svc_wrapper_get_location(path);
-       ret = app_control_send_launch_request(app_control, result_cb, ap);
-
-       if (ret != APP_CONTROL_ERROR_NONE) {
-               mf_debug("Fail to Create UG : %d", type);
-               app_control_destroy(app_control);
-               MF_TRACE_END;
-               return;
-       } else {
-               ap->mf_SharedGadget.ug = app_control;
-               ap->mf_Status.flagIME = EINA_FALSE;
-               app_control_destroy(app_control);
-               MF_TRACE_END;
-               return;
-       }
-}
-
 void mf_launch_load_storage(void *data)
 {
        MF_TRACE_BEGIN;
index 9fd5601..18b7541 100644 (file)
 
 pthread_mutex_t gLockMediaContent;
 
-mf_condition_s *mf_media_content_condition_create(char *condition)
-{
-       mf_condition_s *filter = NULL;
-
-       filter = (mf_condition_s *) calloc(1, sizeof(mf_condition_s));
-
-       if (filter == NULL) {
-               return NULL;
-       }
-
-       memset(filter, 0, sizeof(mf_condition_s));
-
-       SECURE_DEBUG("condition [%s]", condition);
-       filter->cond = condition;
-       filter->collate_type = MEDIA_CONTENT_COLLATE_DEFAULT;
-       filter->sort_type = MEDIA_CONTENT_ORDER_DESC;
-       filter->sort_keyword = MEDIA_MODIFIED_TIME;
-       filter->with_meta = true;
-
-       return filter;
-}
-
-void mf_media_conte_free_condition(mf_condition_s ** condition)
-{
-       mf_retm_if(condition == NULL, "condition is NULL");
-       if (*condition) {
-               SAFE_FREE_CHAR((*condition)->cond);
-               SAFE_FREE_CHAR(*condition);
-       }
-}
-
-int mf_media_content_create_filter(filter_h * filter,
-                                                                  mf_condition_s * condition)
-{
-       mf_retvm_if(filter == NULL, -1, "filter is NULL");
-       mf_retvm_if(condition == NULL, -1, "condition is NULL");
-
-       int ret = MEDIA_CONTENT_ERROR_NONE;
-       filter_h tmp_filter = NULL;
-       ret = media_filter_create(&tmp_filter);
-       if (ret != MEDIA_CONTENT_ERROR_NONE) {
-               mf_debug("Fail to create filter");
-               return ret;
-       }
-       if (condition->cond) {
-               ret = media_filter_set_condition(tmp_filter, condition->cond,
-                                                                                condition->collate_type);
-               if (ret != MEDIA_CONTENT_ERROR_NONE) {
-                       mf_debug("Fail to set condition");
-                       goto ERROR;
-               }
-       }
-       /*
-          if (condition->sort_keyword) {
-          ret = media_filter_set_order(tmp_filter, condition->sort_type,
-          condition->sort_keyword,
-          condition->collate_type);
-          if (ret != MEDIA_CONTENT_ERROR_NONE) {
-          mf_debug("Fail to set order");
-          goto ERROR;
-          }
-          }
-          mf_debug("offset is %d, count is %d", condition->offset, condition->count);
-          if (condition->offset != -1 && condition->count != -1 &&
-          condition->count > condition->offset) {
-          ret = media_filter_set_offset(tmp_filter, condition->offset,
-          condition->count);
-          if (ret != MEDIA_CONTENT_ERROR_NONE) {
-          mf_debug("Fail to set offset");
-          goto ERROR;
-          }
-          }
-        */
-       *filter = tmp_filter;
-       return ret;
-  ERROR:
-       if (tmp_filter) {
-               media_filter_destroy(tmp_filter);
-               tmp_filter = NULL;
-       }
-       return ret;
-}
-
 int mf_media_content_destroy_filter(filter_h filter)
 {
        mf_retvm_if(filter == NULL, -1, "filter is NULL");
index 588deba..9acb713 100644 (file)
@@ -86,53 +86,6 @@ void mf_otg_list_clean(mf_otg_list_e list_type)
        }
 }
 
-int mf_otg_init()
-{
-       if (otg_dev_list != NULL)
-               mf_otg_list_clean(MF_OTG_LIST_DEV);
-
-       if (otg_dev_removed_list != NULL)
-               mf_otg_list_clean(MF_OTG_LIST_REMOVED);
-
-       DIR *pDir = NULL;
-       struct dirent *ent;
-       pDir = opendir(OTG_FOLDER);
-
-       if (pDir == NULL) {
-               return MYFILE_ERR_DIR_OPEN_FAIL;
-       }
-
-       while ((ent = readdir(pDir)) != NULL) {
-               mf_otg_node *pNode = NULL;
-
-               if (g_strcmp0(ent->d_name, ".") == 0
-                       || g_strcmp0(ent->d_name, "..") == 0) {
-                       continue;
-               }
-
-               if ((ent->d_type & DT_DIR) == 0 && (ent->d_type & DT_REG) == 0) {
-                       continue;
-               }
-
-               pNode = (mf_otg_node *) malloc(sizeof(mf_otg_node));
-
-               if (pNode == NULL) {
-                       continue;
-               }
-               memset(pNode, 0, sizeof(mf_otg_node));
-               /* set name */
-               pNode->name = g_strconcat(OTG_FOLDER, "/", ent->d_name, NULL);
-               /* set flag */
-               pNode->flag_using = false;
-               pNode->flag_editstart = false;
-               if (otg_dev_list) {
-               }
-               otg_dev_list = eina_list_append(otg_dev_list, pNode);
-       }
-       closedir(pDir);
-       return MYFILE_ERR_NONE;
-}
-
 bool mf_otg_is_in_list(const char *dev_name)
 {
        Eina_List *l = NULL;
@@ -255,12 +208,6 @@ int mf_otg_list_update(bool flag_inc_dec)
        return MYFILE_ERR_NONE;
 }
 
-bool mf_otg_is_empty(void *data)
-{
-       return ecore_file_exists(OTG_FOLDER)
-               && ecore_file_dir_is_empty(OTG_FOLDER);
-}
-
 char *mf_otg_get_node_in_use()
 {
        Eina_List *l = NULL;
@@ -391,21 +338,6 @@ void mf_otg_generate_removed_list()
        }
 }
 
-void mf_otg_clear_removed_device()
-{
-       const Eina_List *l = NULL;
-       void *node = NULL;
-
-       EINA_LIST_FOREACH(otg_dev_list, l, node) {
-               if ((mf_otg_node *) node != NULL
-                       && ((mf_otg_node *) node)->name != NULL) {
-                       if (ecore_file_exists(((mf_otg_node *) node)->name) == false) {
-                               mf_otg_delete_node(((mf_otg_node *) node)->name);
-                       }
-               }
-       }
-}
-
 /*do external operation according to the opt*/
 static void __mf_otg_dev_removed_ex_operation(void *data,
                                                                                          mf_otg_ex_opt_e opt)
index a6bd5a1..fd8de7e 100644 (file)
@@ -596,11 +596,6 @@ int mf_storage_create(void *app_data)
        return 1;
 }
 
-mfStorageStatus *mf_get_storage_status(void *data)
-{
-       return &g_mf_storage_status;
-}
-
 int mf_storage_destroy(void *app_data)
 {
        MF_TRACE_BEGIN;
@@ -661,15 +656,6 @@ mfStorageStatus *mf_storage_get_status(void *app_data)
        return &g_mf_storage_status;
 }
 
-int mf_storage_set_update_data(void *app_data, bool is_update)
-{
-       mfStorageStatus *storage_status = &g_mf_storage_status;
-       pthread_mutex_lock(&storage_status->update_data_mutex);
-       storage_status->is_update_data = is_update;
-       pthread_mutex_unlock(&storage_status->update_data_mutex);
-       return 0;
-}
-
 int mf_storage_refresh(void *app_data)
 {
        MF_TRACE_BEGIN;
index 3517f62..57137ee 100644 (file)
@@ -133,23 +133,6 @@ static struct _ug_dt_ftype_by_mime dt_mime_type[] = {
        {NULL, FILE_TYPE_ETC},
 };
 
-
-File_Type mf_ug_detail_fs_get_category_by_mime(const char *mime)
-{
-
-       ug_detail_retvm_if(mime == NULL, FILE_TYPE_NONE, "mime is NULL");
-
-       int index = 0;
-       File_Type ftype = FILE_TYPE_NONE;
-       for (index = 0; dt_mime_type[index].mime; index++) {
-               if (strncmp(mime, dt_mime_type[index].mime, strlen(mime)) == 0) {
-                       ftype = dt_mime_type[index].ftype;
-                       break;
-               }
-       }
-       return ftype;
-}
-
 int mf_ug_detaill_fs_get_file_stat(const char *filename, Node_Info ** node)
 {
        struct stat statbuf = { 0 };
@@ -869,32 +852,6 @@ int mf_ug_detail_fs_get_list_len(const Eina_List * list)
        return eina_list_count(list);
 }
 
-View_Style mf_ug_detail_fs_get_view_type(char *path, GString * category)
-{
-       myfile_dlog("%s %d\n", __func__, __LINE__);
-
-       if (path == NULL) {
-               return VIEW_NONE;
-       }
-
-       if (mf_ug_detail_fs_is_dir(path)) {
-               return VIEW_DIR;
-       } else {
-               {
-                       if (category == NULL || category->str == NULL) {
-                               return VIEW_NONE;
-                       } else {
-                               if (strcmp(category->str, "Image") == 0
-                                       || strcmp(category->str, "Video") == 0) {
-                                       return VIEW_FILE_WITH_GPS;
-                               } else {
-                                       return VIEW_FILE_NORMAL;
-                               }
-                       }
-               }
-       }
-}
-
 static int __mf_ug_detail_fs_get_parent_path(const char *path,
                                                                                         char *parent_path)
 {
@@ -1168,12 +1125,3 @@ LONG_LONG_UNSIGNED_INT mf_ug_detail_fs_get_folder_size(char *path)
        myfile_dlog("%s %d\n", __func__, __LINE__);
        return size;
 }
-
-int mf_ug_detail_fs_check_path(void *data, char *path)
-{
-       if (path == NULL || !mf_file_exists(path)) {
-               return 0;
-       } else {
-               return 1;
-       }
-}
index 99200fb..4a3fa69 100644 (file)
@@ -602,19 +602,6 @@ void mf_util_refresh_screen(void *data)
                mf_navi_bar_reset_ctrlbar(ap);
                mf_navi_add_back_button(ap,
                                                                mf_callback_navi_backbutton_clicked_cb);
-               /*4.    set tab enable */
-               //mf_navi_bar_title_set(ap);
-
-//      Evas_Object *pImage = elm_image_add(ap->mf_MainWindow.pNaviLayout);
-//      elm_image_file_set(pImage, EDJ_IMAGE, MF_ICON_SOFT_BACK);
-//      elm_image_resizable_set(pImage, EINA_TRUE, EINA_TRUE);
-//      evas_object_show(pImage);
-//
-//      Evas_Object *btn1 = elm_button_add(ap->mf_MainWindow.pNaviLayout);
-//      elm_object_content_set(btn1,pImage);
-//      evas_object_smart_callback_add(btn1, "clicked", mf_callback_backbutton_clicked_cb, ap);
-//      //elm_object_part_content_set(ap->mf_MainWindow.pNaviLayout, "back_key", btn);
-//      elm_object_item_part_content_set(ap->mf_MainWindow.pNaviItem, "title_left_btn", btn1);
 
                if (ap->mf_Status.more == MORE_DEFAULT) {
                        mf_view_refresh(ap);
@@ -1655,51 +1642,6 @@ void mf_util_ex_disk_list_update(void *data)
 }
 #endif
 
-
-char *mf_util_upper_folder_name_get(void *data, GString * fullpath)
-{
-       mf_retvm_if(data == NULL, NULL, "data is NULL");
-       mf_retvm_if(fullpath == NULL, NULL, "fullpath is NULL");
-       mf_retvm_if(fullpath->str == NULL, NULL, "fullpath is NULL");
-       struct appdata *ap = (struct appdata *) data;
-
-       GString *parent_path = NULL;
-       GString *gName = NULL;
-       char *upper_name = NULL;
-
-       parent_path = mf_fm_svc_wrapper_get_file_parent_path(fullpath);
-
-       mf_retvm_if(parent_path == NULL, NULL, "fullpath is NULL");
-       mf_retvm_if(parent_path->str == NULL, NULL, "fullpath is NULL");
-
-
-       if (!g_strcmp0(parent_path->str, PHONE_FOLDER)) {
-               upper_name = g_strdup(mf_util_get_text(MF_LABEL_DEVICE_MEMORY));
-       } else if (!g_strcmp0(parent_path->str, MEMORY_FOLDER)) {
-               upper_name = g_strdup(mf_util_get_text(MF_LABEL_SD_CARD));
-#ifdef MYFILE_USB_OTG
-       } else if (!g_strcmp0(parent_path->str, OTG_FOLDER)) {
-               upper_name = g_strdup(mf_util_get_text(MF_LABEL_OTG));
-#endif
-       } else {
-               gName = mf_fm_svc_wrapper_get_file_name(parent_path);
-               GSTRING_CHECK_NULL_GOTO(gName, FAILED_EXIT);
-               upper_name = g_strdup(gName->str);
-       }
-
-       CHAR_CHECK_NULL_GOTO(upper_name, FAILED_EXIT);
-       SAFE_FREE_GSTRING(parent_path);
-       SAFE_FREE_GSTRING(gName);
-       return upper_name;
-
-  FAILED_EXIT:
-       SAFE_FREE_GSTRING(parent_path);
-       SAFE_FREE_GSTRING(gName);
-       mf_util_operation_alloc_failed(ap);
-       return NULL;
-
-}
-
 void mf_util_set_pm_lock(void *data, Eina_Bool isLock)
 {
        MF_TRACE_BEGIN;
@@ -1745,42 +1687,6 @@ long mf_util_character_count_get(const char *original)
        }
 }
 
-gboolean mf_util_is_file_selected(Eina_List ** source, GString * path)
-{
-       MF_TRACE_BEGIN;
-       mf_retvm_if(*source == NULL, FALSE, "source is NULL");
-       mf_retvm_if(path == NULL, FALSE, "path is NULL");
-
-       bool flag = FALSE;
-       Eina_List *l = NULL;
-       void *data = NULL;
-
-       EINA_LIST_FOREACH(*source, l, data) {
-               GString *source_path = (GString *) data;
-               if (source_path && source_path->str) {
-                       mf_debug("source_path is [%s] path is [%s]", source_path->str,
-                                        path->str);
-                       if (g_strcmp0(source_path->str, path->str) == 0) {
-                               flag = TRUE;
-                               mf_debug("flag is [%d]source_path is [%s] path is [%s]",
-                                                flag, source_path->str, path->str);
-                               *source = eina_list_remove(*source, source_path);
-                               g_string_free(source_path, TRUE);
-                               source_path = NULL;
-                               int ret = eina_list_count(*source);
-                               if (ret == 0) {
-                                       *source = NULL;
-                               }
-                               break;
-                       } else {
-                               continue;
-                       }
-               }
-       }
-       MF_TRACE_END;
-       return flag;
-}
-
 int mf_util_generate_list_data(const char *path, Eina_List ** dir_list,
                                                           Eina_List ** file_list)
 {
@@ -2190,35 +2096,6 @@ void mf_util_update_item_from_list_by_name(Eina_List ** list,
        }
 }
 
-void mf_util_remove_item_from_list_by_name(Eina_List ** list,
-                                                                                  const char *path)
-{
-       mf_retm_if(list == NULL, "list is NULL");
-
-       Eina_List *l = NULL;
-       fsNodeInfo *node = NULL;
-
-       EINA_LIST_FOREACH(*list, l, node) {
-               if ((fsNodeInfo *) node != NULL
-                       && ((fsNodeInfo *) node)->name != NULL
-                       && ((fsNodeInfo *) node)->path != NULL) {
-                       char *real_name =
-                               g_strconcat(((fsNodeInfo *) node)->path, "/",
-                                                       ((fsNodeInfo *) node)->name, NULL);
-                       SECURE_DEBUG("real is [%s] path is [%s]", real_name, path);
-                       if (g_strcmp0(real_name, path) == 0) {
-                               SAFE_FREE_CHAR(node->path);
-                               SAFE_FREE_CHAR(node->name);
-                               SAFE_FREE_CHAR(node->ext);
-                               SAFE_FREE_CHAR(node);
-                               *list = eina_list_remove_list(*list, l);
-                               break;
-                       }
-                       SAFE_FREE_CHAR(real_name);
-               }
-       }
-}
-
 void mf_util_item_remove_invalid_category_items(Eina_List ** list)
 {
        MF_TRACE_BEGIN;
@@ -2273,43 +2150,6 @@ bool mf_util_is_rotation_lock(void)
        }
 }
 
-void mf_util_free_data(void **data, int type)
-{
-       switch (type) {
-       case MYFILE_TYPE_FSNODE:{
-                       if (*data != NULL) {
-                               SAFE_FREE_CHAR(((fsNodeInfo *) (*data))->path);
-                               SAFE_FREE_CHAR(((fsNodeInfo *) (*data))->name);
-                               SAFE_FREE_CHAR(((fsNodeInfo *) (*data))->ext);
-
-                               free((fsNodeInfo *) (*data));
-                               *data = NULL;
-                       }
-               }
-               break;
-       case MYFILE_TYPE_ITEM_DATA:{
-                       if (*data != NULL) {
-                               SAFE_FREE_GSTRING(((mfItemData_s *) (*data))->m_ItemName);
-                               SAFE_FREE_CHAR(((mfItemData_s *) (*data))->size);
-                               SAFE_FREE_CHAR(((mfItemData_s *) (*data))->create_date);
-                               SAFE_FREE_CHAR(((mfItemData_s *) (*data))->thumb_path);
-                               if (((mfItemData_s *) (*data))->media) {
-                                       media_info_cancel_thumbnail(((mfItemData_s
-                                                                                                 *) (*data))->media);
-                                       media_info_destroy(((mfItemData_s *) (*data))->media);
-                                       ((mfItemData_s *) (*data))->media = NULL;
-                               }
-
-                               free((mfItemData_s *) (*data));
-                               *data = NULL;
-                       }
-               }
-               break;
-       default:
-               break;
-       }
-}
-
 void mf_util_check_pnode_list_items_exists(Eina_List ** list)
 {
        mf_retm_if(list == NULL || *list == NULL, "list is NULL");
@@ -2497,22 +2337,6 @@ void mf_util_path_stack_free()
        }
 }
 
-void mf_util_first_item_push(void *data)
-{
-       struct appdata *ap = (struct appdata *) data;
-       mf_retm_if(ap == NULL, "ap is NULL");
-       if (!ap->mf_Status.flagNoContent) {
-               int view_style = mf_view_style_get(ap);
-               char *first_item_fullpath = NULL;
-               if (view_style != MF_VIEW_STYLE_THUMBNAIL) {
-                       first_item_fullpath =
-                               mf_genlist_first_item_name_get(ap->mf_MainWindow.
-                                                                                          pNaviGenlist);
-               }
-               mf_util_path_push(first_item_fullpath);
-       }
-}
-
 char *mf_util_first_item_get(char *path)
 {
        mf_retvm_if(path == NULL, NULL, "path is NULL");
@@ -2646,14 +2470,8 @@ void mf_set_usb_storage_id(int id)
                ap->mmc_storage_name = strdup(mf_storage_file_get(path));
                free(path);
        }
-MF_TRACE_END}
-
-void mf_set_device_storage_id(int id)
-{
-       MF_TRACE_BEGIN struct appdata *ap = mf_get_appdata();
-       MF_CHECK(ap);
-       ap->device_id = id;
-MF_TRACE_END}
+       MF_TRACE_END
+}
 
 
 char *get_root_path(int storage_type, storage_mode_e smode)
index 6b1338b..8463979 100644 (file)
@@ -124,22 +124,6 @@ mf_tbl_s mf_tbl[MF_TABLE_NUM] = {
         }
 };
 
-int __get_shortcut_name_cb(void *data, int column, char **column_value,
-                                                  char **column_name)
-{
-       if (data == NULL)
-               return 0;
-
-       char **result = (char **) data;
-       if (*column_value) {
-               *result = g_strdup(*column_value);
-       }
-       mf_error(" column is [%d] column_value is [%s] column_name is [%s]",
-                        column, *column_value, *column_name);
-       return 0;
-}
-
-
 static int __mf_busy_handler(void *pData, int count)
 {
        usleep(50000);
index 3856d6f..90c9356 100644 (file)
@@ -199,29 +199,6 @@ int mf_media_delete_recent_files_by_type(MFDHandle * mfd_handle,
        return ret;
 }
 
-int mf_media_update_recent_files_thumbnail(MFDHandle * mfd_handle,
-                                                                                  const char *thumbnail,
-                                                                                  const char *new_thumbnail)
-{
-       int ret = MFD_ERROR_NONE;
-
-       if (mfd_handle == NULL) {
-               mf_debug("media service handle is NULL");
-               return MFD_ERROR_INVALID_PARAMETER;
-       }
-
-       ret =
-               mf_update_recent_files_thumbnail(mfd_handle, thumbnail,
-                                                                                new_thumbnail);
-       if (ret != MFD_ERROR_NONE) {
-               mf_debug("update device icon failed");
-               return ret;
-       }
-
-       return ret;
-
-}
-
 int mf_media_foreach_shortcut_list(MFDHandle * mfd_handle,
                                                                   mf_shortcut_item_cb callback,
                                                                   void *user_data)
@@ -379,16 +356,3 @@ int mf_destroy_recent_files_item(MFRitem * ritem)
 
        return MFD_ERROR_NONE;
 }
-
-int mf_media_find_recent_file(MFDHandle * mfd_handle, const char *path)
-{
-       int find = 0;
-
-       if (mfd_handle == NULL) {
-               mf_debug("media service handle is NULL");
-               return MFD_ERROR_INVALID_PARAMETER;
-       }
-       find = mf_find_recent_file(mfd_handle, path);
-
-       return find;
-}
index 43298d5..34944f8 100644 (file)
@@ -90,18 +90,6 @@ struct appdata *mf_get_appdata()
        return g_myfile_app_data;
 }
 
-static Eina_Bool split_on = EINA_FALSE;
-
-Eina_Bool mf_main_is_split_on()
-{
-       return split_on;
-}
-
-void mf_main_set_split_on(Eina_Bool split_state)
-{
-       split_on = split_state;
-}
-
 static void __mf_main_data_init(void *data)
 {
        MF_TRACE_BEGIN;
@@ -150,50 +138,6 @@ static void __mf_main_data_init(void *data)
 }
 
 /******************************
-** Prototype    : mf_main_load_edj
-** Description  :
-** Input        : Evas_Object *parent
-**                const char *file
-**                const char *group
-** Output       : None
-** Return Value :
-** Calls        :
-** Called By    :
-**
-**  History        :
-**  1.Date         : 2010/12/10
-**    Author       : Samsung
-**    Modification : Created function
-**
-******************************/
-Evas_Object *mf_main_load_edj(Evas_Object * parent, const char *file,
-                                                         const char *group)
-{
-       MF_TRACE_BEGIN;
-       t_start;
-       mf_debug();
-       Evas_Object *eo;
-       int r;
-
-       eo = elm_layout_add(parent);
-       elm_object_focus_set(eo, EINA_FALSE);
-       if (eo) {
-               r = elm_layout_file_set(eo, file, group);
-               if (!r) {
-                       evas_object_del(eo);
-                       MF_TRACE_END;
-                       return NULL;
-               }
-
-               evas_object_size_hint_weight_set(eo, EVAS_HINT_EXPAND,
-                                                                                EVAS_HINT_EXPAND);
-       }
-       MF_TRACE_END;
-       t_end;
-       return eo;
-}
-
-/******************************
 ** Prototype    : __mf_main_del_win
 ** Description  :
 ** Input        : void *data
@@ -340,7 +284,6 @@ static Eina_Bool __mf_main_app_init_idler_cb(void *data)
        mf_callback_set_otg_state_cb(ap);
        ap->mf_Status.app_init_idler = NULL;
 
-       //mf_callback_imf_state_callback_register(ap);
        /*** Add the media-db update callback ***********/
        media_content_add_db_updated_cb(mf_category_list_update_cb, ap,
                                                                        &ap->noti_handle);
index cc3e75a..292ab8a 100644 (file)
@@ -96,7 +96,7 @@ static int myfile_thumb_update_filelist(ThumbGen * pThumbGen)
        Eina_List *list_tmp = file_list;
        int file_count = eina_list_count(file_list);
 
-       thumbnail_h thumb_handle;
+       thumbnail_h thumb_handle = NULL;
        while (true) {
                list_tmp = file_list->prev;
                MF_THUMBNAIL_DEBUG("list_tmp = %p", list_tmp);
@@ -194,8 +194,8 @@ static int myfile_thumb_update_filelist(ThumbGen * pThumbGen)
        }
 
   EXIT:
-       pthread_exit(0);
        thumbnail_util_destroy(thumb_handle);
+       pthread_exit(0);
        return MYFILE_ERR_NONE;
 }
 
@@ -324,20 +324,6 @@ bool mf_thumb_gen_unrealize(mf_thumb_gen_h hThumbGen)
        return TRUE;
 }
 
-bool mf_thumb_gen_is_realize(mf_thumb_gen_h hThumbGen, bool * bIsRealize)
-{
-       if (hThumbGen == NULL) {
-               mf_error("hThumbGen is NULL");
-               return FALSE;
-       }
-
-       ThumbGen *pThumbGen = (ThumbGen *) hThumbGen;
-
-       *bIsRealize = pThumbGen->bIsRealize;
-
-       return TRUE;
-}
-
 bool mf_thumb_gen_set_save_directory(mf_thumb_gen_h hThumbGen,
                                                                         char *szSaveDir)
 {
@@ -517,25 +503,6 @@ bool mf_thumb_gen_set_file_list(mf_thumb_gen_h hThumbGen,
        return TRUE;
 }
 
-bool mf_thumb_gen_set_cancel_cb(mf_thumb_gen_h hThumbGen,
-                                                               mf_thumb_gen_cancel_cb cancel_cb)
-{
-       if (hThumbGen == NULL) {
-               mf_error("hThumbGen is NULL");
-               return FALSE;
-       }
-
-       ThumbGen *pThumbGen = (ThumbGen *) hThumbGen;
-
-       _mf_thumb_gen_lock();
-
-       pThumbGen->cancel_cb = cancel_cb;
-
-       _mf_thumb_gen_unlock();
-
-       return TRUE;
-}
-
 static Eina_Bool __mf_make_thumbnail_done(void *data)
 {
        mf_retvm_if(data == NULL, ECORE_CALLBACK_CANCEL, "data is NULL");
index 9236f83..ec403d9 100644 (file)
@@ -368,58 +368,6 @@ void mf_category_list_item_remove_by_fullname(Eina_List ** list,
        }
 }
 
-void mf_category_list_item_remove_by_storage_type(Eina_List ** list,
-                                                                                                 int storage_type)
-{
-       if (!*list) {
-               return;
-       }
-       Eina_List *l = NULL;
-
-       media_data_s *item_data = NULL;
-
-       EINA_LIST_FOREACH(*list, l, item_data) {
-               if (item_data) {
-                       if (item_data->storage_type == storage_type) {
-                               *list = eina_list_remove(*list, item_data);
-                               mf_media_data_item_free(&item_data);
-                       }
-               }
-       }
-       if (eina_list_count(*list) == 0) {
-               eina_list_free(*list);
-               *list = 0;
-       }
-}
-
-void mf_category_list_item_add(const char *fullpath,
-                                                          int media_content_type)
-{
-       mf_debug("========== entry");
-
-       if (media_content_type == MEDIA_CONTENT_TYPE_OTHERS) {
-               int type = mf_file_attr_get_file_type_by_mime(fullpath);
-               switch (type) {
-               case FILE_TYPE_IMAGE:
-               case FILE_TYPE_VIDEO:
-               case FILE_TYPE_SOUND:
-               case FILE_TYPE_DOC:
-               case FILE_TYPE_PDF:
-               case FILE_TYPE_PPT:
-               case FILE_TYPE_EXCEL:
-               case FILE_TYPE_TXT:
-               case FILE_TYPE_HWP:
-                       break;
-               default:
-                       return;
-               }
-       }
-       Eina_List *list = mf_category_file_list;
-       if (list) {
-               mf_media_category_item_get(fullpath, media_content_type, &list);
-       }
-}
-
 void mf_category_list_item_remove(const char *fullpath,
                                                                  int media_content_type)
 {
@@ -495,40 +443,6 @@ void mf_view_refresh_edit_status_for_category_list(Eina_List *
        mf_debug("========== end");
 }
 
-void mf_category_view_restore_the_edit_item()
-{
-       struct appdata *ap = (struct appdata *) mf_get_appdata();
-       int view_type = mf_view_style_get(ap);
-
-       mfItemData_s *itemData = NULL;
-       Elm_Object_Item *it = NULL;
-
-       if (view_type == MF_VIEW_STYLE_THUMBNAIL) {
-               it = elm_gengrid_first_item_get(ap->mf_MainWindow.pNaviGengrid);
-       } else {
-               it = elm_genlist_first_item_get(ap->mf_MainWindow.pNaviGenlist);
-       }
-       while (it) {
-               itemData = elm_object_item_data_get(it);
-               if (itemData->m_ItemName == NULL
-                       || itemData->m_ItemName->str == NULL) {
-                       continue;
-               }
-               if (itemData->m_checked == true) {
-                       mf_edit_file_list_append(itemData->item);
-               }
-
-               if (view_type == MF_VIEW_STYLE_THUMBNAIL) {
-                       it = elm_gengrid_item_next_get(it);
-               } else {
-                       it = elm_genlist_item_next_get(it);
-               }
-       }
-       int count = mf_edit_file_count_get();
-       mf_edit_view_select_all_check(count);
-       mf_edit_view_ctrlbar_state_set(ap);
-}
-
 void mf_category_search_item_update(void *data, char *path,
                                                                        media_content_db_update_item_type_e
                                                                        update_item,
@@ -649,7 +563,7 @@ void mf_category_list_update_cb(media_content_error_e error, int pid,
        case MEDIA_CONTENT_INSERT:{//go through.
                        mf_debug("MEDIA_CONTENT_INSERT");
                        /* TODO : need to add lists, not to update whole lists */
-                       //break;//go through.
+                       break;//go through.
                }
        case MEDIA_CONTENT_UPDATE:{
                        mf_debug("MEDIA_CONTENT_UPDATE");
@@ -894,7 +808,6 @@ static Evas_Object *__mf_category_media_content_create(Eina_List *
                evas_object_smart_callback_add(ap->mf_MainWindow.pNaviGengrid,
                                                                           "language,changed",
                                                                           mf_gengrid_gl_lang_changed, ap);
-               //evas_object_smart_callback_add(ap->mf_MainWindow.pNaviGengrid, "longpressed", mf_gengrid_thumbs_longpressed, ap);
                evas_object_smart_callback_add(ap->mf_MainWindow.pNaviGengrid,
                                                                           "selected", __mf_category_item_sel,
                                                                           ap);
@@ -942,7 +855,6 @@ static Evas_Object *__mf_category_media_content_create(Eina_List *
                                                                                EVAS_HINT_FILL, EVAS_HINT_FILL);
                //elm_genlist_mode_set(ap->mf_MainWindow.pNaviGenlist, ELM_LIST_COMPRESS);
                evas_object_show(ap->mf_MainWindow.pNaviGenlist);
-               //evas_object_smart_callback_add(ap->mf_MainWindow.pNaviGenlist, "longpressed", mf_genlist_gl_longpress, ap);
                evas_object_smart_callback_add(ap->mf_MainWindow.pNaviGenlist,
                                                                           "selected",
                                                                           mf_edit_list_item_sel_cb, ap);
@@ -1297,7 +1209,6 @@ void mf_category_view_create(void *data, bool flag_show)
 
        /*add control bar for navigation bar */
 
-       //mf_navi_bar_title_set(ap);
        SAFE_DEL_NAVI_ITEM(&ap->mf_Status.pPreNaviItem);
 
        if (!flag_show) {
index 0552252..3218962 100644 (file)
@@ -151,33 +151,6 @@ static void _move_more_ctxpopup(void *data, Evas_Object * win,
  **    Modification    : Created function
  **
  ******************************/
-void mf_context_popup_get_position(Evas_Object * obj, const char *label,
-                                                                  int *x, int *y)
-{
-       mf_retm_if(obj == NULL, "obj is NULL");
-       mf_retm_if(label == NULL, "label is NULL");
-       Evas_Object *pCtrlBar = obj;
-
-       Elm_Object_Item *pItem = NULL;
-       int x_position = 0;
-       int y_position = 0;
-       int w = 0;
-
-       pItem = elm_toolbar_first_item_get(pCtrlBar);
-
-       while (pItem) {
-               const char *button_label = elm_object_item_text_get(pItem);
-               if (g_strcmp0(button_label, label) == 0) {
-                       Evas_Object *icon = elm_toolbar_item_object_get(pItem);
-                       evas_object_geometry_get(icon, &x_position, &y_position, &w,
-                                                                        NULL);
-                       *x = x_position + w / 2;
-                       *y = y_position;
-                       return;
-               }
-               pItem = elm_toolbar_item_next_get(pItem);
-       }
-}
 
 int mf_context_popup_mousedown_cb(void *data, int type, void *event)
 {
@@ -188,12 +161,6 @@ int mf_context_popup_mousedown_cb(void *data, int type, void *event)
        return 0;
 }
 
-void mf_context_popup_position_get(int *x, int *y)
-{
-       *x = touch_x;
-       *y = touch_y;
-}
-
 /******************************
 ** Prototype    : mfContextPopupCreate
 ** Description  : Create the context popup
index 35c7c92..e6c6351 100644 (file)
@@ -44,26 +44,6 @@ Eina_Bool mf_detail_view_navi_back_cb(void *data, Elm_Object_Item * it)
        return EINA_FALSE;
 }
 
-void
-mf_detail_view_back_cb(void *data, Evas_Object * obj, void *event_info)
-{
-       MF_TRACE_BEGIN;
-       struct appdata *ap = (struct appdata *) data;
-
-       mf_detail_data_destroy(ap);
-
-       mf_retm_if(ap->mf_MainWindow.pNaviBar == NULL,
-                          "ap->mf_MainWindow.pNaviBar is NULL");
-       if (ap->mf_Status.more == MORE_DEFAULT) {
-               ap->mf_Status.view_type = ap->mf_Status.preViewType;
-               mf_view_update(ap);
-       } else {
-               mf_callback_cancel_cb(ap, NULL, NULL);
-       }
-
-       return;
-}
-
 Evas_Object *mf_detail_view_content_create(void *data)
 {
        MF_TRACE_BEGIN;
@@ -148,7 +128,6 @@ void mf_detail_view_create(void *data)
                                                                                 EINA_TRUE, EINA_FALSE);
        mf_navi_bar_title_content_set(ap, MF_TITLE_LABEL_DETAILS);
 
-       //mf_navi_bar_title_set(ap);
        t_end;
        /*temp data free */
        MF_TRACE_END;
index 04a2ecf..69ddda0 100644 (file)
@@ -57,7 +57,6 @@ Evas_Object *mf_downloaded_history_view_content_create(void *data)
                content = mf_object_create_genlist(ap->mf_MainWindow.pNaviLayout);
                evas_object_smart_callback_add(content, "language,changed",
                                                                           mf_genlist_gl_lang_changed, data);
-               // evas_object_smart_callback_add(content, "longpressed", mf_genlist_gl_longpress, ap);
                evas_object_smart_callback_add(content, "selected",
                                                                           mf_download_edit_list_item_sel_cb,
                                                                           ap);
index 00ed8db..834db9d 100644 (file)
@@ -161,11 +161,6 @@ void mf_edit_select_all_set(Eina_Bool select_all_state)
        selected_all = select_all_state;
 }
 
-Eina_Bool mf_edit_select_all_get()
-{
-       return selected_all;
-}
-
 Eina_List *mf_edit_get_all_selected_files()
 {
        MF_TRACE_BEGIN;
@@ -498,102 +493,6 @@ void mf_edit_item_sel_all_cb(void *data, Evas_Object * obj,
        MF_TRACE_END;
 }
 
-void mf_edit_item_search_sel_all_cb(void *data, Evas_Object * obj,
-                                                        void *event_info)
-{
-       MF_TRACE_BEGIN;
-       struct appdata *ap = (struct appdata *) data;
-       mf_retm_if(ap == NULL, "input parameter data error");
-       int view_style = mf_view_style_get(ap);
-
-       mf_list_data_t *it_data = NULL;
-       Elm_Object_Item *it;
-
-       if (selected_all) {
-               selected_all = EINA_FALSE;
-       } else {
-               selected_all = EINA_TRUE;
-       }
-       mf_edit_folder_list_clear();
-       mf_edit_file_list_clear();
-
-       int count;
-       int i;
-       count = eina_list_count(ap->mf_FileOperation.search_result_file_list);
-       mf_error("============file list  count is [%d]", count);
-       for (i = 0; i < count ; i++) {
-               it_data = eina_list_nth(ap->mf_FileOperation.search_result_file_list, i);
-               if (!it_data) {
-                       continue;
-               }
-               if (selected_all) {
-                       mf_edit_file_list_append(it_data);
-               }
-               it_data->m_checked = selected_all;
-               if (it_data->pCheckBox) {
-                       if (it_data->m_checked) {
-                               elm_object_signal_emit(it_data->pCheckBox,
-                                               "elm,activate,check,on", "elm");
-                       } else {
-                               elm_object_signal_emit(it_data->pCheckBox,
-                                               "elm,activate,check,off",
-                                               "elm");
-                       }
-                       elm_check_state_set(it_data->pCheckBox,
-                                       it_data->m_checked);
-               }
-       }
-
-       count = eina_list_count(ap->mf_FileOperation.search_result_folder_list);
-       mf_error("============folder  list  count is [%d]", count);
-       for (i = 0; i < count ; i++) {
-               it_data = eina_list_nth(ap->mf_FileOperation.search_result_folder_list, i);
-               if (!it_data) {
-                       continue;
-               }
-               if (selected_all) {
-                       mf_edit_folder_list_append(it_data);
-               }
-               it_data->m_checked = selected_all;
-               if (it_data->pCheckBox) {
-                       if (it_data->m_checked) {
-                               elm_object_signal_emit(it_data->pCheckBox,
-                                               "elm,activate,check,on", "elm");
-                       } else {
-                               elm_object_signal_emit(it_data->pCheckBox,
-                                               "elm,activate,check,off",
-                                               "elm");
-                       }
-                       elm_check_state_set(it_data->pCheckBox,
-                                       it_data->m_checked);
-               }
-       }
-       count = mf_edit_file_count_get();
-       mf_error("============ count is [%d]", count);
-       char *label = NULL;
-
-       if (count > 0) {
-               char *tmp = mf_util_get_text(MF_LABEL_SELECTED);
-               label = g_strdup_printf(tmp, count);
-       } else {
-               label = g_strdup(MF_LABEL_SELECT_ITEMS);
-       }
-       mf_object_item_text_set(ap->mf_MainWindow.pNaviItem, label,
-                       "elm.text.title");
-       SAFE_FREE_CHAR(label);
-
-       Evas_Object *btn =
-                       elm_object_item_part_content_get(ap->mf_MainWindow.pNaviItem, "title_right_btn");
-       if (btn) {
-               if (count <= 0) {
-                       elm_object_disabled_set(btn, EINA_TRUE);
-               } else {
-                       elm_object_disabled_set(btn, EINA_FALSE);
-               }
-       }
-       MF_TRACE_END;
-}
-
 void mf_edit_download_item_sel_all_cb(void *data, Evas_Object * obj,
                void *event_info)
 {
@@ -1062,38 +961,6 @@ void mf_edit_view_select_all_layout_remove(void *data)
        }
 }
 
-void mf_edit_view_title_btn_add(void *data)
-{
-       MF_TRACE_BEGIN;
-       struct appdata *ap = (struct appdata *) data;
-       mf_retm_if(ap == NULL, "ap is NULL");
-
-       if (ap->mf_Status.view_type != mf_view_root_category) {
-               mf_navi_bar_remove_info_box(ap);
-       }
-       /*create conformant */
-
-       Evas_Object *allbtn = NULL;
-
-       mf_object_item_part_content_remove(ap->mf_MainWindow.pNaviItem,
-                                                                          TITLE_LEFT_BTN);
-       mf_object_item_part_content_remove(ap->mf_MainWindow.pNaviItem,
-                                                                          TITLE_RIGHT_BTN);
-
-       allbtn =
-               mf_navi_bar_select_all_button_create(ap->mf_MainWindow.pNaviBar,
-                                                                                        edit_select_all_cb, ap);
-       elm_object_item_part_content_set(ap->mf_MainWindow.pNaviItem,
-                                                                        TITLE_RIGHT_BTN, allbtn);
-
-       if (edit_count == 0) {
-               elm_object_disabled_set(allbtn, EINA_TRUE);
-       }
-       mf_navi_bar_title_content_set(ap, MF_LABEL_SELECT_ITEMS);
-
-       mf_navi_bar_reset_ctrlbar(ap);
-}
-
 Eina_List *mf_edit_get_selected_folder_list()
 {
        Eina_List *select_list = NULL;
@@ -1399,8 +1266,6 @@ void mf_edit_view_refresh(void *data, Eina_List ** file_list,
        } else {
                selected_all = EINA_FALSE;
        }
-       //mf_edit_view_select_info_create(ap);
-       //mf_edit_view_title_btn_add(ap);
        if (select_info_func != NULL) {
                select_info_func(ap);
        }
@@ -1449,7 +1314,6 @@ void mf_edit_view_create(void *data)
        }
        mf_edit_view_list_update(ap);
        mf_navi_bar_title_content_set(ap, title);
-       //mf_edit_view_title_btn_add(ap);
        mf_edit_view_title_button_set(ap);
 
 
@@ -1483,7 +1347,6 @@ void mf_edit_download_view_create(void *data)
        }
        mf_edit_view_list_update(ap);
        mf_navi_bar_title_content_set(ap, title);
-       //mf_edit_view_title_btn_add(ap);
        mf_edit_view_title_button_set(ap);
        mf_navi_bar_set_ctrlbar_item_disable(ap->mf_MainWindow.pNaviItem,
                                                                                 CTRL_DISABLE_EDIT_ALL, TRUE);
index f43bf33..cb6c619 100644 (file)
@@ -183,37 +183,6 @@ void mf_gengrid_create_grid_items(void *data, Evas_Object * grid,
        }
 }
 
-void mf_gengrid_refresh(void *data)
-{
-       MF_TRACE_BEGIN;
-       mf_retm_if(data == NULL, "data is NULL");
-       struct appdata *ap = (struct appdata *) data;
-
-       mf_gengrid_create_grid_items(ap, ap->mf_MainWindow.pNaviGengrid,
-                                                                ap->mf_FileOperation.file_list);
-}
-
-void mf_gengrid_get_grid_selected_items(Evas_Object * gengrid,
-                                                                               Eina_List ** list)
-{
-       MF_TRACE_BEGIN;
-       mf_retm_if(gengrid == NULL, "gengrid is NULL");
-
-       mfItemData_s *itemData = NULL;
-       Elm_Object_Item *it = NULL;
-
-       it = elm_gengrid_first_item_get(gengrid);
-       while (it) {
-               itemData = elm_object_item_data_get(it);
-               if (itemData->m_checked) {
-                       *list = eina_list_append(*list, itemData);
-               }
-               it = elm_gengrid_item_next_get(it);
-       }
-       MF_TRACE_END;
-
-}
-
 Evas_Object *mf_gengrid_item_icon_get(void *data, Evas_Object * obj,
                                                                          const char *part)
 {
@@ -704,24 +673,6 @@ void mf_gengrid_create_list_default_style(Evas_Object * pGengrid,
        }
 }
 
-void mf_gengrid_thumbs_longpressed(void *data, Evas_Object * obj,
-                                                                  void *event_info)
-{
-       struct appdata *ap = (struct appdata *) data;
-       mf_retm_if(ap == NULL, "ap is NULL");
-       mf_retm_if(event_info == NULL, "event_info is NULL");
-
-       Elm_Object_Item *selected = elm_object_item_data_get(event_info);
-       mf_retm_if(selected == NULL, "selected is NULL");
-       //elm_gengrid_item_selected_set(event_info, EINA_FALSE);//Fixed P131126-05278 ,Longpress, don't need to set as false.
-       if (ap->mf_Status.more == MORE_DEFAULT
-               || ap->mf_Status.more == MORE_SEARCH) {
-               SAFE_FREE_OBJ(ap->mf_MainWindow.pLongpressPopup);
-               ap->mf_MainWindow.pLongpressPopup =
-                       mf_popup_create_operation_item_pop(selected);
-       }
-}
-
 void mf_gengrid_gl_lang_changed(void *data, Evas_Object * obj,
                                                                void *event_info)
 {
@@ -754,8 +705,6 @@ Evas_Object *mf_gengrid_create_list(void *data, Evas_Object * parent)
        evas_object_smart_callback_add(gengrid, "language,changed",
                                                                   mf_gengrid_gl_lang_changed, ap);
 
-       //evas_object_smart_callback_add(gengrid, "longpressed",
-       //                 mf_gengrid_thumbs_longpressed, ap);
        evas_object_smart_callback_add(gengrid, "realized",
                                                                   mf_gengrid_realized, ap);
        elm_gengrid_item_size_set(gengrid, MF_HD_GENGRID_ITEM_WIDTH,
index ce4e940..b26c679 100644 (file)
@@ -676,20 +676,23 @@ static Evas_Object *__mf_genlist_gl_default_icon_get_lite(void *data,
 
        } else if (!strcmp(part, "elm.icon.1")) {
 
-               mf_debug("file type : %d / storage type : %d", params->file_type,
-                                params->storage_type);
+               mf_debug("file type : %d / storage type : %d , params->thumb_path = %s", params->file_type,
+                                params->storage_type , params->thumb_path);
 
                params->real_thumb_flag = EINA_FALSE;
                /* Make thumbnail for performance issue */
+               mf_debug("thumb path is %s", params->thumb_path);
                if (params->thumb_path == NULL) {
+                       mf_debug("thumb path is null");
                        mf_genlist_get_thumbnail(params);
                }
-
+               mf_debug("thumb path is %s", params->thumb_path);
                if (params->file_type == FILE_TYPE_MUSIC
                        || params->file_type == FILE_TYPE_SOUND) {
-                       if (params->thumb_path && mf_file_exists(params->thumb_path)
-                               && strcmp(params->thumb_path,
-                                                 MF_MUSIC_DEFAULT_THUMBNAIL_FROM_DB) == 0) {
+                       if ((!(params->thumb_path && mf_file_exists(params->thumb_path)
+                               && !strcmp(params->thumb_path,
+                                                 MF_MUSIC_DEFAULT_THUMBNAIL_FROM_DB) == 0))) {
+
                                SAFE_FREE_CHAR(params->thumb_path);
                                if (params->file_type == FILE_TYPE_MUSIC) {
                                        params->thumb_path = g_strdup(MF_ICON_MUSIC_THUMBNAIL);
@@ -699,6 +702,7 @@ static Evas_Object *__mf_genlist_gl_default_icon_get_lite(void *data,
 
                                params->thumbnail_type = MF_THUMBNAIL_TYPE_DEFAULT;
                        } else {
+                               mf_debug("inside else --------------------------------------------");
                                if (params->file_type == FILE_TYPE_MUSIC) {
                                        params->thumb_path = g_strdup(MF_ICON_MUSIC_THUMBNAIL);
                                } else {
@@ -710,9 +714,6 @@ static Evas_Object *__mf_genlist_gl_default_icon_get_lite(void *data,
                        mf_debug("thumb path : %s, thumb type : %d",
                                         params->thumb_path, params->thumbnail_type);
                }
-               //layout = mf_object_create_layout(obj, EDJ_GENLIST_NAME, "genlist_content");
-               //elm_layout_theme_set(layout, "layout", "list/B/type.2", "default");
-               //evas_object_repeat_events_set(layout, EINA_TRUE);
 
                if (params->thumb_path == NULL) {
                        mf_debug("thumb path is NULL");
@@ -1018,20 +1019,6 @@ void mf_genlist_gl_selected(void *data, Evas_Object * obj,
        MF_TRACE_END;
 }
 
-void mf_genlist_disable_items(Evas_Object * genlist, Eina_Bool disable)
-{
-       MF_TRACE_BEGIN;
-       mf_retm_if(genlist == NULL, "genlist is NULL");
-
-       Elm_Object_Item *it = NULL;
-
-       it = elm_genlist_first_item_get(genlist);
-       while (it) {
-               elm_object_item_disabled_set(it, disable);
-               it = elm_genlist_item_next_get(it);
-       }
-}
-
 static Evas_Object *__mf_genlist_widget_storage_content_get(void *data,
                                                                                                                        Evas_Object *
                                                                                                                        obj,
@@ -1081,36 +1068,6 @@ static char *__mf_genlist_widget_storage_label_get(void *data,
        }
 }
 
-void mf_genlist_cloud_content_set(void *data, Evas_Object * genlist,
-                                                                 Eina_List * file_list)
-{
-       const Eina_List *list = NULL;
-       void *item = NULL;
-       struct appdata *ap = (struct appdata *) data;
-       mf_retm_if(ap == NULL, "ap is NULL");
-       mf_retm_if(genlist == NULL, "genlist is NULL");
-       mf_retm_if(file_list == NULL, "file_list is NULL");
-
-       EINA_LIST_FOREACH(file_list, list, item) {
-               Elm_Object_Item *node_item = NULL;
-               Elm_Genlist_Item_Class *itc_cloud = NULL;
-               itc_cloud = elm_genlist_item_class_new();
-               if (itc_cloud != NULL) {
-                       itc_cloud->item_style = "1line";
-                       itc_cloud->func.text_get =
-                               __mf_genlist_widget_storage_label_get;
-                       itc_cloud->func.content_get =
-                               __mf_genlist_widget_storage_content_get;
-                       node_item =
-                               elm_genlist_item_append(genlist, itc_cloud, item, NULL,
-                                                                               ELM_GENLIST_ITEM_NONE,
-                                                                               __mf_genlist_widget_storage_selected_cb,
-                                                                               ap);
-                       elm_object_item_data_set(node_item, item);
-               }
-       }
-}
-
 /**    button related  **/
 void mf_genlist_create_itc_style(Elm_Genlist_Item_Class ** itc,
                                                                 int itc_type)
@@ -1321,39 +1278,6 @@ void mf_genlist_create_list_default_style(Evas_Object * pGenlist,
        MF_TRACE_BEGIN;
 }
 
-void mf_genlist_gl_longpress(void *data, Evas_Object * obj,
-                                                        void *event_info)
-{
-       MF_TRACE_BEGIN;
-       struct appdata *ap = (struct appdata *) data;
-       mf_retm_if(ap == NULL, "input parameter data error");
-
-       if (event_info) {
-               Elm_Object_Item *it = (Elm_Object_Item *) event_info;
-               //elm_genlist_item_selected_set(it, EINA_FALSE);//Fixed P131126-05278 ,pressed, don't need to set as false, only need set as false at the sel callback.
-
-               if (ap->mf_Status.more == MORE_DEFAULT
-                       || ap->mf_Status.more == MORE_SEARCH) {
-                       elm_genlist_item_selected_set(it, FALSE);
-                       void *selected = elm_object_item_data_get(it);
-                       SAFE_FREE_OBJ(ap->mf_MainWindow.pLongpressPopup);
-                       ap->mf_MainWindow.pLongpressPopup =
-                               mf_popup_create_operation_item_pop(selected);
-               }
-       }
-       MF_TRACE_END;
-}
-
-void mf_genlist_gl_drag_stop(void *data, Evas_Object * obj,
-                                                        void *event_info)
-{
-       MF_TRACE_BEGIN;
-       struct appdata *ap = (struct appdata *) data;
-       mf_retm_if(ap == NULL, "input parameter data error");
-       MF_TRACE_END;
-}
-
-
 void mf_genlist_gl_lang_changed(void *data, Evas_Object * obj,
                                                                void *event_info)
 {
@@ -1386,7 +1310,6 @@ Evas_Object *mf_genlist_create_list(void *data, Evas_Object * parent)
        genlist = mf_object_create_genlist(parent);
        evas_object_smart_callback_add(genlist, "language,changed",
                                                                   mf_genlist_gl_lang_changed, data);
-       //evas_object_smart_callback_add(genlist, "longpressed", mf_genlist_gl_longpress, ap);
 
        if (genlist == NULL) {
                MF_TRACE_END;
@@ -1435,38 +1358,6 @@ Evas_Object *mf_genlist_create_list(void *data, Evas_Object * parent)
        return genlist;
 }
 
-void mf_genlist_get_list_selected_items(Evas_Object * pGenlist,
-                                                                               Eina_List ** list)
-{
-       MF_TRACE_BEGIN;
-       mf_retm_if(pGenlist == NULL, "pGenlist is NULL");
-       Elm_Object_Item *item = NULL;
-       mfItemData_s *itemData = NULL;
-
-       item = elm_genlist_first_item_get(pGenlist);
-       while (item) {
-               itemData = elm_object_item_data_get(item);
-               if (itemData->m_checked) {
-                       *list = eina_list_append(*list, itemData);
-               }
-               item = elm_genlist_item_next_get(item);
-       }
-       MF_TRACE_END;
-}
-
-void mf_genlist_clear(Evas_Object * genlist)
-{
-       mf_retm_if(genlist == NULL, "genlist is NULL");
-
-       Elm_Object_Item *it;
-       it = elm_genlist_first_item_get(genlist);
-       while (it) {
-               elm_object_item_del(it);
-               it = elm_genlist_first_item_get(genlist);
-       }
-
-}
-
 static void _index_clicked(void *data, Evas_Object * obj, const char *em,
                                                   const char *src)
 {
@@ -1601,39 +1492,6 @@ Evas_Object *mf_genlist_create_path_tab(Evas_Object * parent, char *info,
        return tab;
 }
 
-Evas_Object *mf_genlist_create_path_info(Evas_Object * parent, char *info,
-                                                                                Eina_Bool slide_flag)
-{
-       char *strings = NULL;
-       Evas_Object *bx = elm_box_add(parent);
-       Evas_Object *ly = elm_layout_add(parent);
-       elm_layout_theme_set(ly, "genlist/item", "group_index", "default");
-       evas_object_size_hint_weight_set(ly, EVAS_HINT_EXPAND, 0);
-       evas_object_size_hint_align_set(ly, -1, -1);
-
-       if (info) {
-               strings = elm_entry_utf8_to_markup(info);
-       }
-
-       if (strings) {
-               mf_object_text_set(ly, strings, "elm.text.main");
-               free(strings);
-               strings = NULL;
-       } else if (info) {
-               mf_object_text_set(ly, info, "elm.text.main");
-       }
-
-       evas_object_show(ly);
-       if (slide_flag) {
-               elm_object_signal_emit(ly, "elm,state,slide,start", "");
-       }
-       elm_layout_signal_callback_add(ly, "mouse,clicked,1", "*",
-                                                                  _index_clicked, NULL);
-       elm_box_pack_end(bx, ly);
-       MF_TRACE_END;
-       return bx;
-}
-
 char *mf_genlist_first_item_name_get(Evas_Object * genlist)
 {
        mf_retvm_if(genlist == NULL, NULL, "genlist is NULL");
index c323dee..83896e4 100644 (file)
@@ -73,32 +73,6 @@ Evas_Object *mf_navi_bar_create(Evas_Object * parent)
        return navi_bar;
 }
 
-char *mf_navi_bar_path_info_get(void *data, mf_navi_pathinfo_type type)
-{
-       MF_TRACE_BEGIN;
-       mf_retvm_if(data == NULL, NULL, "data is NULL");
-       struct appdata *ap = (struct appdata *) data;
-       char *info = NULL;
-
-       switch (type) {
-       case mf_navi_pathinfo_root:
-               info = g_strdup(MF_LABE_HEADER_STORAGE);
-               break;
-       case mf_navi_pathinfo_normal:
-               info = mf_fm_svc_path_info_get(ap->mf_Status.path->str);
-               break;
-       case mf_navi_pathinfo_recent:
-               info = g_strdup(MF_LABEL_RECTENT_FILES);
-               break;
-       case mf_navi_pathinfo_category:
-               info = g_strdup(ap->mf_Status.categorytitle);
-               break;
-       default:
-               return NULL;
-       }
-       return info;
-}
-
 Evas_Object *mf_navi_bar_create_normal_pathinfo(void *data)
 {
        MF_TRACE_BEGIN;
@@ -116,13 +90,6 @@ Evas_Object *mf_navi_bar_create_normal_pathinfo(void *data)
                                                                           ap->mf_Status.path->str, ap);
        }
 
-       //char *info = NULL;
-       //info = mf_navi_bar_path_info_get(ap, type);
-
-       //mf_genlist_create_path_info(ap->mf_MainWindow.pNaviBar, info, pathinfo, EINA_TRUE);
-       //SAFE_FREE_CHAR(info);
-       //elm_object_scroll_freeze_push(genlist);
-
        MF_TRACE_END;
 
        return pathinfo_obj;
@@ -386,126 +353,6 @@ Evas_Object *mf_navi_bar_select_all_button_create(Evas_Object * parent,
        return select_btn;
 }
 
-void mf_navi_bar_title_set(void *data)
-{
-       MF_TRACE_BEGIN;
-       t_start;
-       mf_retm_if(data == NULL, "data is NULL");
-       struct appdata *ap = (struct appdata *) data;
-       int more = ap->mf_Status.more;
-       Elm_Object_Item *navi_it = ap->mf_MainWindow.pNaviItem;
-       Evas_Object *pNavi = ap->mf_MainWindow.pNaviBar;
-       Evas_Object *unset = NULL;
-       char *title = NULL;
-
-       if (ap->mf_Status.more == MORE_SEARCH
-               || ap->mf_Status.more == MORE_EDIT
-               || ap->mf_Status.more == MORE_SHARE_EDIT
-               || ap->mf_Status.more == MORE_EDIT_DETAIL
-               || ap->mf_Status.more == MORE_EDIT_COPY
-               || ap->mf_Status.more == MORE_EDIT_MOVE
-               || ap->mf_Status.more == MORE_EDIT_DELETE
-               || ap->mf_Status.more == MORE_EDIT_DELETE_SHORTCUT
-               || ap->mf_Status.more == MORE_EDIT_DELETE_RECENT
-               || ap->mf_Status.more == MORE_COMPRESS
-               || ap->mf_Status.more == MORE_DECOMPRESS) {
-               if (more == MORE_EDIT) {
-                       title = MF_LABEL_SELECT_ITEMS;
-               } else if (more == MORE_SHARE_EDIT) {
-                       title = MF_LABEL_SELECT_ITEMS;
-               } else if ((ap->mf_Status.view_type == mf_view_root_category)
-                                  && (ap->mf_Status.categorytitle != NULL)) {
-                       title = ap->mf_Status.categorytitle;
-               } else {
-                       title = ap->mf_MainWindow.naviframe_title;
-               }
-               mf_navi_bar_title_content_set(ap, title);
-       } else if (more != MORE_EDIT && more != MORE_SEARCH) {
-               if (ap->mf_Status.view_type == mf_view_normal) {
-                       if (more == MORE_INTERNAL_COPY || more == MORE_INTERNAL_MOVE
-                               || more == MORE_INTERNAL_DECOMPRESS) {
-                               Evas_Object *home_btn =
-                                       mf_navi_bar_home_button_create(pNavi,
-                                                                                                  mf_callback_home_button_cb,
-                                                                                                  ap);
-                               unset =
-                                       elm_object_item_part_content_unset(navi_it,
-                                                                                                          TITLE_LEFT_BTN);
-                               SAFE_FREE_OBJ(unset);
-                               elm_object_item_part_content_set(navi_it, TITLE_LEFT_BTN,
-                                                                                                home_btn);
-
-                               Evas_Object *upper_btn =
-                                       mf_navi_bar_upper_button_create(pNavi,
-                                                                                                       mf_callback_upper_click_cb,
-                                                                                                       ap);
-                               unset =
-                                       elm_object_item_part_content_unset(navi_it,
-                                                                                                          TITLE_RIGHT_BTN);
-                               SAFE_FREE_OBJ(unset);
-                               elm_object_item_part_content_set(navi_it, TITLE_RIGHT_BTN,
-                                                                                                upper_btn);
-                       } else {
-                               Evas_Object *home_btn =
-                                       mf_navi_bar_home_button_create(pNavi,
-                                                                                                  mf_callback_home_button_cb,
-                                                                                                  ap);
-                               unset =
-                                       elm_object_item_part_content_unset(navi_it,
-                                                                                                          TITLE_LEFT_BTN);
-                               SAFE_FREE_OBJ(unset);
-                               elm_object_item_part_content_set(navi_it, TITLE_LEFT_BTN,
-                                                                                                home_btn);
-
-                               Evas_Object *search_btn =
-                                       mf_navi_bar_search_button_create(pNavi,
-                                                                                                        mf_search_bar_enter_search_routine,
-                                                                                                        ap);
-                               unset =
-                                       elm_object_item_part_content_unset(navi_it,
-                                                                                                          TITLE_RIGHT_BTN);
-                               SAFE_FREE_OBJ(unset);
-                               elm_object_item_part_content_set(navi_it, TITLE_RIGHT_BTN,
-                                                                                                search_btn);
-                       }
-               } else if (ap->mf_Status.view_type == mf_view_root
-                                  && more == MORE_DEFAULT) {
-                       Evas_Object *search_btn =
-                               mf_navi_bar_search_button_create(pNavi,
-                                                                                                mf_search_bar_enter_search_routine,
-                                                                                                ap);
-                       unset =
-                               elm_object_item_part_content_unset(navi_it,
-                                                                                                  TITLE_RIGHT_BTN);
-                       SAFE_FREE_OBJ(unset);
-                       elm_object_item_part_content_set(navi_it, TITLE_RIGHT_BTN,
-                                                                                        search_btn);
-               }
-               if ((ap->mf_Status.view_type == mf_view_root_category)
-                       && (ap->mf_Status.categorytitle != NULL)) {
-                       mf_error("ap->mf_Status.categorytitle = %s",
-                                        ap->mf_Status.categorytitle);
-                       title = ap->mf_Status.categorytitle;
-                       Evas_Object *search_btn =
-                               mf_navi_bar_search_button_create(pNavi,
-                                                                                                mf_search_bar_enter_search_routine,
-                                                                                                ap);
-                       unset =
-                               elm_object_item_part_content_unset(navi_it,
-                                                                                                  TITLE_RIGHT_BTN);
-                       SAFE_FREE_OBJ(unset);
-                       elm_object_item_part_content_set(navi_it, TITLE_RIGHT_BTN,
-                                                                                        search_btn);
-               } else {
-                       title = ap->mf_MainWindow.naviframe_title;
-               }
-               mf_navi_bar_title_content_set(ap, title);
-       }
-       t_end;
-
-       MF_TRACE_END;
-}
-
 /******************************
 ** Prototype    : __mf_navi_bar_select_count_label_timeout_cb
 ** Description  :
@@ -599,10 +446,6 @@ void mf_navi_bar_set_ctrlbar(void *data)
                                                                        (Evas_Smart_Cb)
                                                                        mf_callback_more_button_cb, ap,
                                                                        EINA_FALSE);
-               //toolbar = mf_object_toolbar_create(ap->mf_MainWindow.pNaviBar);
-               //mf_object_item_tabbar_item_append(toolbar, NULL, LABEL_DELETE, mf_callback_delete_cb, ap);
-               //mf_object_item_tabbar_item_append(toolbar, NULL, LABEL_MOVE, mf_callback_copy_move_cb, ap);
-               //mf_object_item_tabbar_item_append(toolbar, NULL, LABEL_COPY, mf_callback_copy_move_cb, ap);
                break;
        case MORE_INTERNAL_COPY:
        case MORE_DATA_COPYING:
@@ -614,9 +457,6 @@ void mf_navi_bar_set_ctrlbar(void *data)
                                                                                (Evas_Smart_Cb)
                                                                                mf_callback_more_button_cb, ap,
                                                                                EINA_FALSE);
-                       //toolbar = mf_object_toolbar_create(ap->mf_MainWindow.pNaviBar);
-                       //mf_object_item_tabbar_item_append(toolbar, NULL, LABEL_CANCEL, mf_callback_cancel_cb, ap);
-                       //mf_object_item_tabbar_item_append(toolbar, NULL, LABEL_COPY_HERE, mf_callback_paste_here_cb, ap);
                }
                break;
        case MORE_INTERNAL_MOVE:
@@ -629,15 +469,9 @@ void mf_navi_bar_set_ctrlbar(void *data)
                                                                                (Evas_Smart_Cb)
                                                                                mf_callback_more_button_cb, ap,
                                                                                EINA_FALSE);
-                       //toolbar = mf_object_toolbar_create(ap->mf_MainWindow.pNaviBar);
-                       //mf_object_item_tabbar_item_append(toolbar, NULL, LABEL_CANCEL, mf_callback_cancel_cb, ap);
-                       //mf_object_item_tabbar_item_append(toolbar, NULL, LABEL_MOVE_HERE, mf_callback_move_here_cb, ap);
                }
                break;
        case MORE_SHARE_EDIT:
-               //toolbar = mf_object_toolbar_create(ap->mf_MainWindow.pNaviBar);
-               //mf_object_item_tabbar_item_append(toolbar, NULL, LABEL_CANCEL, mf_callback_cancel_cb, ap);
-               //mf_object_item_tabbar_item_append(toolbar, NULL, LABEL_SHARE, mf_callback_share_cb, ap);
                break;
 
        case MORE_INTERNAL_DECOMPRESS:
@@ -649,9 +483,6 @@ void mf_navi_bar_set_ctrlbar(void *data)
                                                                                (Evas_Smart_Cb)
                                                                                mf_callback_more_button_cb, ap,
                                                                                EINA_FALSE);
-                       //toolbar = mf_object_toolbar_create(ap->mf_MainWindow.pNaviBar);
-                       //mf_object_item_tabbar_item_append(toolbar, NULL, LABEL_CANCEL, mf_callback_cancel_cb, ap);
-                       //mf_object_item_tabbar_item_append(toolbar, NULL, MF_LABEL_DECOMPRESS_HERE, mf_callback_decompress_here_cb, ap);
                }
                break;
        default:
@@ -663,13 +494,6 @@ void mf_navi_bar_set_ctrlbar(void *data)
                evas_object_event_callback_add(more_bt, EVAS_CALLBACK_KEY_DOWN,
                                                                           mf_callback_more_keydown_cb, ap);
        }
-       //Prevent issue fix
-       /*  if (toolbar) {
-          ap->mf_MainWindow.pNaviCtrlBar = toolbar;
-          elm_object_item_part_content_set(navi_it, NAVI_CTRL_PART, toolbar);
-
-          elm_object_focus_allow_set(ap->mf_MainWindow.pNaviCtrlBar, EINA_TRUE);
-          } */
        elm_object_item_signal_callback_add(navi_it, "elm,action,more_event",
                                                                                "", mf_callback_hardkey_more_cb,
                                                                                ap);
@@ -784,30 +608,6 @@ void mf_navi_bar_recover_info_box(void *data)
 **    Modification : Created function
 **
 ******************************/
-bool mf_navi_bar_reset_item_by_location(void *data, int location)
-{
-       MF_TRACE_BEGIN;
-       struct appdata *ap = (struct appdata *) data;
-       mf_retvm_if(ap == NULL, false, "ap is NULL");
-
-       bool bEditStartFlag = FALSE;
-       bool bInUseFlag = FALSE;
-       if (ap->mf_MainWindow.record.location == location) {
-               bEditStartFlag = TRUE;
-       }
-       if (ap->mf_MainWindow.location == location) {
-               bInUseFlag = TRUE;
-       }
-
-       if (bInUseFlag == TRUE) {
-               SAFE_FREE_GSTRING(ap->mf_Status.path);
-               ap->mf_Status.path = g_string_new(ap->mf_MainWindow.record.path);
-               ap->mf_MainWindow.location = ap->mf_MainWindow.record.location;
-               ap->mf_Status.view_type = ap->mf_MainWindow.record.view_type;
-       }
-       MF_TRACE_END;
-       return bEditStartFlag;
-}
 
 void mf_navi_bar_recover_state(void *data)
 {
@@ -843,25 +643,6 @@ void mf_navi_bar_reset(void *data)
        MF_TRACE_END;
 }
 
-
-void
-my_elm_object_item_disabled_set(Evas_Object * ctrlbar,
-                                                               Elm_Object_Item * it, Eina_Bool disabled)
-{
-       //Fixed P131025-04748 by jian12.li.
-       MF_TRACE_BEGIN;
-       const char *button_label =
-               elm_object_item_part_text_get(it, NAVI_CTRL_TEXT_PART);
-       mf_error("my_elm_object_item_disabled_set button_label is [%s]",
-                        button_label);
-       elm_object_item_disabled_set(it, disabled);
-       if (disabled) {
-               elm_object_focus_allow_set(ctrlbar, false);
-               //elm_object_focus_allow_set(it, false);
-       }
-       MF_TRACE_END;
-}
-
 void mf_navi_bar_set_ctrlbar_item_disable(Elm_Object_Item * navi_it,
                                                                                  int disable_item, bool disable)
 {
@@ -889,40 +670,6 @@ void mf_navi_bar_set_ctrlbar_item_disable(Elm_Object_Item * navi_it,
        MF_TRACE_END;
 }
 
-int mf_navi_bar_get_disable_ctrlbar_item(Elm_Object_Item * navi_it)
-{
-       MF_TRACE_BEGIN;
-       mf_retvm_if(navi_it == NULL, 0, "navi_it is NULL");
-       int disable_item = 0;
-
-       Evas_Object *ctrlbar =
-               elm_object_item_part_content_get(navi_it, NAVI_CTRL_PART);
-       Elm_Object_Item *item = NULL;
-       const char *button_label = NULL;
-       item = elm_toolbar_first_item_get(ctrlbar);
-
-       while (item) {
-               button_label =
-                       elm_object_item_part_text_get(item, NAVI_CTRL_TEXT_PART);
-               if (elm_object_item_disabled_get(item)) {
-                       if (g_strcmp0(button_label, mf_util_get_text(LABEL_DELETE)) ==
-                               0) {
-                               disable_item |= CTRL_DISABLE_DELETE;
-                       }
-                       if (g_strcmp0(button_label, mf_util_get_text(LABEL_SHARE)) ==
-                               0) {
-                               disable_item |= CTRL_DISABLE_SEND;
-                       }
-
-               }
-               item = elm_toolbar_item_next_get(item);
-       }
-
-       MF_TRACE_END;
-
-       return disable_item;
-}
-
 Evas_Object *mf_navi_bar_content_create(void *data)
 {
        MF_TRACE_BEGIN;
index b16c2e1..f89df72 100644 (file)
@@ -230,7 +230,6 @@ void mf_normal_view_create(void *data)
                                                                                         CTRL_DISABLE_OTG_ROOT, TRUE);
        }
 #endif
-       //mf_navi_bar_title_set(ap);
        t_end;
        /*temp data free */
        MF_TRACE_END;
index 330d1da..992d617 100644 (file)
@@ -64,28 +64,6 @@ Elm_Object_Item *mf_object_item_tabbar_item_append(Evas_Object * obj,
        return item;
 }
 
-void mf_object_item_tabbar_item_set_disable(Evas_Object * obj,
-                                                                                       const char *label,
-                                                                                       Eina_Bool disable)
-{
-       mf_retm_if(obj == NULL, "obj is NULL");
-       mf_retm_if(label == NULL, "label is NULL");
-
-       Elm_Object_Item *item = elm_toolbar_first_item_get(obj);
-       const char *button_label = NULL;
-
-       while (item) {
-               button_label =
-                       elm_object_item_part_text_get(item, NAVI_CTRL_TEXT_PART);
-               if (g_strcmp0(button_label, mf_util_get_text(label)) == 0
-                       || g_strcmp0(button_label, (label)) == 0) {
-                       elm_object_item_disabled_set(item, disable);
-               }
-               button_label = NULL;
-               item = elm_toolbar_item_next_get(item);
-       }
-}
-
 void mf_object_item_part_content_remove(Elm_Object_Item * item,
                                                                                const char *part)
 {
@@ -100,101 +78,6 @@ void mf_object_item_part_content_remove(Elm_Object_Item * item,
        MF_TRACE_END;
 }
 
-mfItemData_s *mf_object_item_normal_data_get(const char *fullpath,
-                                                                                        void *user_data,
-                                                                                        int list_type)
-{
-       mf_retvm_if(fullpath == NULL, NULL, "fullpath error");
-       mf_retvm_if(user_data == NULL, NULL, "user_data error");
-       struct appdata *ap = (struct appdata *) user_data;
-       mfItemData_s *item_data = NULL;
-       i18n_udate date = 0;
-       off_t size = 0;
-
-       item_data =
-               (mfItemData_s *) calloc(sizeof(mfItemData_s), sizeof(char));
-       if (item_data == NULL) {
-               return NULL;
-       }
-       item_data->m_ItemName = g_string_new(fullpath);
-       if (!mf_is_dir(fullpath)) {
-               mf_file_attr_get_file_size(fullpath, &size);
-               mf_file_attr_get_file_size_info(&(item_data->size), size);
-       }
-
-       mf_file_attr_get_file_mdate(fullpath, &date);
-       item_data->modify_time = date;
-       item_data->m_checked = FALSE;
-       item_data->pCheckBox = NULL;
-       item_data->thumb_path = NULL;
-       item_data->real_thumb_flag = FALSE;
-       item_data->media = NULL;
-       item_data->ap = ap;
-       if (mf_is_dir(fullpath)) {
-               item_data->file_type = FILE_TYPE_DIR;
-       } else {
-               mf_file_attr_get_file_category(fullpath, &item_data->file_type);
-       }
-       item_data->storage_type = mf_fm_svc_wrapper_get_location(fullpath);
-       item_data->list_type = list_type;
-       return item_data;
-
-}
-
-Elm_Object_Item *mf_object_list_item_append(Evas_Object * parent,
-                                                                                       void *obj_data,
-                                                                                       void (*func) (void *data,
-                                                                                                                 Evas_Object *
-                                                                                                                 obj,
-                                                                                                                 void
-                                                                                                                 *event_info),
-                                                                                       void *func_data,
-                                                                                       void *user_data)
-{
-       MF_TRACE_BEGIN;
-       mf_retvm_if(parent == NULL, NULL, "parent error");
-       mf_retvm_if(obj_data == NULL, NULL, "obj_data error");
-       struct appdata *ap = (struct appdata *) user_data;
-       Elm_Object_Item *it = NULL;
-       int view_style = mf_view_style_get(ap);
-
-       if (view_style != MF_VIEW_STYLE_THUMBNAIL) {
-               Elm_Genlist_Item_Class *itc = NULL;
-
-               if (ap->mf_Status.view_type == mf_view_root_category) {
-                       if (ap->mf_Status.more != MORE_SEARCH) {
-                               itc = ap->mf_gl_style.categoryitc;
-                       } else {
-                               itc = ap->mf_gl_style.search_itc;
-                       }
-               } else {
-                       mfItemData_s *item_data = (mfItemData_s *) obj_data;
-                       if (item_data->file_type != FILE_TYPE_DIR) {
-                               itc = ap->mf_gl_style.itc;
-                       } else {
-                               itc = ap->mf_gl_style.userfolderitc;
-                       }
-               }
-               it = elm_genlist_item_append(parent, itc, obj_data, NULL,
-                                                                        ELM_GENLIST_ITEM_NONE, func,
-                                                                        func_data);
-       } else {
-               Elm_Gengrid_Item_Class *gitc = NULL;
-//Prevent issue fix
-               gitc = &gic;
-               /*  if (ap->mf_Status.view_type == mf_view_root_category) {
-                  gitc = &gic;
-                  } else {
-                  gitc = &gic;
-                  } */
-               it = elm_genlist_item_append(parent, gitc, obj_data, NULL,
-                                                                        ELM_GENLIST_ITEM_NONE, func,
-                                                                        func_data);
-
-       }
-       return it;
-}
-
 Elm_Object_Item *mf_object_item_genlist_x_y_item_get(Evas_Object * genlist,
                                                                                                         int x, int y)
 {
@@ -206,12 +89,3 @@ Elm_Object_Item *mf_object_item_genlist_x_y_item_get(Evas_Object * genlist,
        }
        return it;
 }
-
-void mf_object_item_gengrid_current_page_get(Evas_Object * gengrid, int *x,
-                                                                                        int *y)
-{
-
-       if (gengrid) {
-               //elm_gengrid_current_page_get(gengrid, x, y);
-       }
-}
index 9361410..2c529ed 100644 (file)
@@ -78,18 +78,6 @@ Evas_Object *mf_object_create_conform(Evas_Object * parent)
        return conform;
 }
 
-Evas_Object *mf_object_create_check_box(Evas_Object * parent)
-{
-       mf_retvm_if(parent == NULL, NULL, "parent is NULL");
-
-       Evas_Object *checkbox = NULL;
-       checkbox = elm_check_add(parent);
-       elm_object_focus_set(checkbox, EINA_TRUE);
-       evas_object_propagate_events_set(checkbox, EINA_FALSE);
-       evas_object_show(checkbox);
-       return checkbox;
-}
-
 Evas_Object *mf_object_create_no_content(Evas_Object * parent)
 {
        MF_TRACE_BEGIN;
@@ -117,60 +105,6 @@ Evas_Object *mf_object_create_no_content(Evas_Object * parent)
        return nocontent;
 }
 
-Evas_Object *mf_object_create_text_no_content(Evas_Object * parent)
-{
-       MF_TRACE_BEGIN;
-       t_start;
-       Evas_Object *nocontent = elm_layout_add(parent);
-       elm_layout_theme_set(nocontent, "layout", "nocontents", "text");
-       elm_object_focus_set(nocontent, EINA_FALSE);
-       char edj_path[1024] = { 0 };
-       char *path = app_get_resource_path();
-       snprintf(edj_path, 1024, "%s%s/%s", path, "edje", EDJ_IMAGE);
-       free(path);
-
-       Evas_Object *icon = elm_image_add(nocontent);
-       elm_image_file_set(icon, edj_path, IMG_ICON_TEXT_NO_CONTENTS);
-       elm_object_part_content_set(nocontent, "nocontents.image", icon);
-       evas_object_size_hint_weight_set(nocontent, EVAS_HINT_EXPAND,
-                                                                        EVAS_HINT_EXPAND);
-       evas_object_size_hint_align_set(nocontent, EVAS_HINT_FILL,
-                                                                       EVAS_HINT_FILL);
-
-       //mf_object_text_set(nocontent, MF_LABEL_NO_FILES, "elm.text");  //fix P131223-01999 by ray
-
-       MF_TRACE_END;
-       t_end;
-       return nocontent;
-}
-
-Evas_Object *mf_object_create_pic_no_content(Evas_Object * parent)
-{
-       MF_TRACE_BEGIN;
-       t_start;
-       Evas_Object *nocontent = elm_layout_add(parent);
-       elm_layout_theme_set(nocontent, "layout", "nocontents", "text");
-       elm_object_focus_set(nocontent, EINA_FALSE);
-       char edj_path[1024] = { 0 };
-       char *path = app_get_resource_path();
-       snprintf(edj_path, 1024, "%s%s/%s", path, "edje", EDJ_IMAGE);
-       free(path);
-
-       Evas_Object *icon = elm_image_add(nocontent);
-       elm_image_file_set(icon, edj_path, IMG_ICON_IMG_NO_CONTENTS);
-       elm_object_part_content_set(nocontent, "nocontents.image", icon);
-       evas_object_size_hint_weight_set(nocontent, EVAS_HINT_EXPAND,
-                                                                        EVAS_HINT_EXPAND);
-       evas_object_size_hint_align_set(nocontent, EVAS_HINT_FILL,
-                                                                       EVAS_HINT_FILL);
-
-       //mf_object_text_set(nocontent, MF_LABEL_NO_FILES, "elm.text");  //fix P131223-01999 by ray
-
-       MF_TRACE_END;
-       t_end;
-       return nocontent;
-}
-
 Evas_Object *mf_object_create_multi_no_content(Evas_Object * parent)
 {
        MF_TRACE_BEGIN;
@@ -198,101 +132,6 @@ Evas_Object *mf_object_create_multi_no_content(Evas_Object * parent)
        return nocontent;
 }
 
-Evas_Object *mf_object_create_dev_no_content(Evas_Object * parent)
-{
-       MF_TRACE_BEGIN;
-       t_start;
-       Evas_Object *nocontent = elm_layout_add(parent);
-       elm_layout_theme_set(nocontent, "layout", "nocontents", "text");
-       elm_object_focus_set(nocontent, EINA_FALSE);
-       char edj_path[1024] = { 0 };
-       char *path = app_get_resource_path();
-       snprintf(edj_path, 1024, "%s%s/%s", path, "edje", EDJ_IMAGE);
-       free(path);
-
-       Evas_Object *icon = elm_image_add(nocontent);
-       elm_image_file_set(icon, edj_path, IMG_ICON_DEV_NO_CONTENTS);
-       elm_object_part_content_set(nocontent, "nocontents.image", icon);
-       evas_object_size_hint_weight_set(nocontent, EVAS_HINT_EXPAND,
-                                                                        EVAS_HINT_EXPAND);
-       evas_object_size_hint_align_set(nocontent, EVAS_HINT_FILL,
-                                                                       EVAS_HINT_FILL);
-
-       //mf_object_text_set(nocontent, MF_LABEL_NO_FILES, "elm.text");  //fix P131223-01999 by ray
-
-       MF_TRACE_END;
-       t_end;
-       return nocontent;
-}
-
-void mf_object_disable_virtualkeypad()
-{
-       MF_TRACE_BEGIN;
-       t_start;
-       struct appdata *ap = (struct appdata *) mf_get_appdata();
-       elm_object_signal_emit(ap->mf_MainWindow.pConformant,
-                                                  "elm,state,virtualkeypad,disable", "");
-       elm_object_signal_emit(ap->mf_MainWindow.pConformant,
-                                                  "elm,state,clipboard,disable", "");
-       //elm_object_signal_emit(ap->mf_MainWindow.pConformant, "elm,state,virtualkeypad,enable", "");
-       //elm_object_signal_emit(ap->mf_MainWindow.pConformant, "elm,state,clipboard,enable", "");
-       MF_TRACE_END;
-       t_end;
-}
-
-void mf_object_enable_virtualkeypad()
-{
-       MF_TRACE_BEGIN;
-       t_start;
-       struct appdata *ap = (struct appdata *) mf_get_appdata();
-       elm_object_signal_emit(ap->mf_MainWindow.pConformant,
-                                                  "elm,state,virtualkeypad,enable", "");
-       elm_object_signal_emit(ap->mf_MainWindow.pConformant,
-                                                  "elm,state,clipboard,enable", "");
-       MF_TRACE_END;
-       t_end;
-}
-
-Evas_Object *mf_object_create_editfield(Evas_Object * parent,
-                                                                               Evas_Object ** pEntry)
-{
-       mf_retvm_if(parent == NULL, NULL, "parent is NULL");
-       Evas_Object *layout = elm_layout_add(parent);
-       elm_layout_theme_set(layout, "layout", "item/editfield", "default");
-       Evas_Object *entry = elm_entry_add(parent);
-       elm_object_style_set(entry, "default");
-       elm_entry_cnp_mode_set(entry, ELM_CNP_MODE_PLAINTEXT);
-       elm_object_part_content_set(layout, "elm.icon.entry", entry);
-       *pEntry = entry;
-       return layout;
-}
-
-/*static void __mf_object_eraser_clicked_cb(void *data, Evas_Object *obj, void *ei)
-{
-       mf_retm_if(data == NULL, "data is NULL");
-       Evas_Object *entry = data;
-       elm_object_focus_set(entry, EINA_TRUE);
-       elm_entry_entry_set(entry, "");
-}*/
-
-Evas_Object *mf_object_create_panes(Evas_Object * parent)
-{
-       MF_TRACE_BEGIN;
-       mf_retvm_if(parent == NULL, NULL, "parent is NULL");
-
-       Evas_Object *panes = NULL;
-       panes = elm_panes_add(parent);
-       mf_retvm_if(panes == NULL, NULL, "panes is NULL");
-       elm_object_focus_set(panes, EINA_FALSE);
-       evas_object_size_hint_weight_set(panes, EVAS_HINT_EXPAND,
-                                                                        EVAS_HINT_EXPAND);
-       evas_object_size_hint_align_set(panes, EVAS_HINT_FILL, EVAS_HINT_FILL);
-       elm_panes_fixed_set(panes, EINA_FALSE);
-       evas_object_show(panes);
-       MF_TRACE_END;
-       return panes;
-}
-
 Evas_Object *mf_object_create_layout_main(Evas_Object * parent)
 {
        MF_TRACE_BEGIN;
@@ -320,17 +159,6 @@ Evas_Object *mf_object_create_layout_main(Evas_Object * parent)
        return layout;
 }
 
-Evas_Object *mf_object_get_part_content(Evas_Object * parent,
-                                                                               const char *part)
-{
-       mf_retvm_if(parent == NULL, NULL, "parent is NULL");
-       mf_retvm_if(part == NULL, NULL, "part is NULL");
-
-       Evas_Object *content = NULL;
-       content = elm_object_part_content_get(parent, part);
-       return content;
-}
-
 Evas_Object *mf_object_unset_part_content(Evas_Object * parent,
                                                                                  const char *part)
 {
@@ -377,31 +205,6 @@ Evas_Object *mf_object_create_button(Evas_Object * parent,
        return btn;
 }
 
-void mf_object_panes_right_set(Evas_Object * panes, Evas_Object * content)
-{
-       mf_retm_if(panes == NULL, "panes is NULL");
-       mf_retm_if(content == NULL, "content is NULL");
-       elm_object_part_content_set(panes, "right", content);
-}
-
-Evas_Object *mf_object_tabbar_create(Evas_Object * parent)
-{
-       mf_debug("");
-       Evas_Object *tabbar = NULL;
-
-       /* create controlbar */
-       tabbar = elm_toolbar_add(parent);
-       mf_retvm_if(tabbar == NULL, NULL, "Failed to add toolbar");
-
-       elm_toolbar_shrink_mode_set(tabbar, ELM_TOOLBAR_SHRINK_EXPAND);
-       elm_toolbar_reorder_mode_set(tabbar, EINA_FALSE);
-       elm_toolbar_transverse_expanded_set(tabbar, EINA_TRUE);
-       elm_toolbar_select_mode_set(tabbar, ELM_OBJECT_SELECT_MODE_ALWAYS);
-       elm_object_style_set(tabbar, "root_tabbar/item_with_title");
-
-       return tabbar;
-}
-
 Evas_Object *mf_object_path_widget_create(Evas_Object * parent)
 {
        mf_debug("");
@@ -420,23 +223,6 @@ Evas_Object *mf_object_path_widget_create(Evas_Object * parent)
        return obj;
 }
 
-Evas_Object *mf_object_toolbar_create(Evas_Object * parent)
-{
-       mf_debug("");
-       Evas_Object *toolbar = NULL;
-
-       toolbar = elm_toolbar_add(parent);
-       mf_retvm_if(toolbar == NULL, NULL, "Failed to add toolbar");
-
-       elm_object_style_set(toolbar, "default");
-       elm_toolbar_shrink_mode_set(toolbar, ELM_TOOLBAR_SHRINK_EXPAND);
-       elm_toolbar_transverse_expanded_set(toolbar, EINA_TRUE);
-       elm_toolbar_select_mode_set(toolbar, ELM_OBJECT_SELECT_MODE_NONE);
-
-       elm_object_focus_allow_set(toolbar, EINA_TRUE);
-       return toolbar;
-}
-
 void mf_object_text_set(Evas_Object * obj, const char *ID,
                                                const char *part)
 {
@@ -450,44 +236,6 @@ void mf_object_text_set(Evas_Object * obj, const char *ID,
        //elm_object_domain_part_text_translatable_set(obj, part, domain, EINA_TRUE);
 }
 
-Evas_Object *mf_object_create_select_all_btn(Evas_Object * parent,
-                                                                                        void *data)
-{
-       mf_retvm_if(parent == NULL, NULL, "parent is NULL");
-
-       Evas_Object *btn = elm_button_add(parent);
-
-       char edj_path[1024] = { 0 };
-       char *path = app_get_resource_path();
-       snprintf(edj_path, 1024, "%s%s/%s", path, "edje", EDJ_NAME);
-       free(path);
-
-       elm_object_style_set(btn, "naviframe/title_icon");
-       Evas_Object *icon = elm_icon_add(btn);
-       elm_image_file_set(icon, edj_path, "icon.select_all");
-       evas_object_size_hint_aspect_set(icon, EVAS_ASPECT_CONTROL_VERTICAL, 1,
-                                                                        1);
-       elm_image_resizable_set(icon, EINA_TRUE, EINA_TRUE);
-       elm_object_content_set(btn, icon);
-       elm_object_focus_allow_set(btn, EINA_FALSE);
-       evas_object_propagate_events_set(btn, EINA_FALSE);
-
-       evas_object_show(btn);
-
-       return btn;
-}
-
-Evas_Object *mf_object_create_select_all_checkbox(Evas_Object * parent)
-{
-       Evas_Object *check = NULL;
-       check = elm_check_add(parent);
-       elm_object_focus_set(check, EINA_FALSE);
-       evas_object_propagate_events_set(check, EINA_FALSE);
-       elm_check_state_pointer_set(check, NULL);
-       evas_object_show(check);
-       return check;
-}
-
 void mf_object_entry_unfocus(Evas_Object * entry)
 {
        if (entry) {
index 847f078..dc5c21b 100644 (file)
@@ -69,11 +69,6 @@ static void *rename_cancel_params = NULL;
 
 static void __mf_popup_view_as_genlist_change(ListByData_s * params);
 
-char *mf_popup_rename_item_name_get()
-{
-       return operation_rename_item_name;
-}
-
 void mf_popup_rename_cancel()
 {
        if (rename_cancel_cb && rename_cancel_params) {
@@ -104,58 +99,11 @@ void mf_popup_rename_func_reset()
        rename_cancel_params = NULL;
 }
 
-void mf_popup_ok_button_set(Evas_Object * obj)
-{
-       ok_button = obj;
-}
-
-void mf_popup_entry_string_set(char *string)
-{
-       SAFE_FREE_CHAR(entry_string);
-       if (string) {
-               entry_string = g_strdup(string);
-       }
-}
-
 char *mf_popup_entry_string_get()
 {
        return entry_string;
 }
 
-/*static int __mf_popup_get_list_by_selected_item()
-{
-       int iSortTypeValue = 0;
-       mf_util_get_pref_value(PREF_TYPE_SORT_TYPE, &iSortTypeValue);
-
-       int ret = -1;
-       switch (iSortTypeValue) {
-       case    MYFILE_SORT_BY_DATE_O2R:
-               ret = 3;
-               break;
-       case    MYFILE_SORT_BY_DATE_R2O:
-               ret = 2;
-               break;
-       case    MYFILE_SORT_BY_TYPE_A2Z:
-               ret = 5;
-               break;
-       case    MYFILE_SORT_BY_NAME_A2Z:
-               ret = 0;
-               break;
-       case    MYFILE_SORT_BY_NAME_Z2A:
-               ret = 1;
-               break;
-       case    MYFILE_SORT_BY_SIZE_L2S:
-               ret = 4;
-               break;
-       case    MYFILE_SORT_BY_SIZE_S2L:
-       case    MYFILE_SORT_BY_TYPE_Z2A:
-       default:
-               ret = 0;
-               break;
-       }
-       return ret;
-}*/
-
 static int __mf_popup_get_view_as_type(int index)
 {
        eMfViewStyle ret = MF_VIEW_STYLE_LIST;
@@ -512,16 +460,6 @@ static void __mf_popup_longpress_del_cb(void *data, Evas * e,
        }
 }
 
-void mf_popup_clear_btn_show_cb(void *data, Evas * e, Evas_Object * obj,
-                                                               void *event_info)
-{
-       Evas_Object *entry = (Evas_Object *) data;
-       if (entry) {
-               elm_entry_cursor_end_set(entry);
-       }
-
-}
-
 void mf_popup_new_folder_del_cb(void *data, Evas * e, Evas_Object * obj,
                                                                void *event_info)
 {
@@ -764,9 +702,6 @@ Evas_Object *mf_popup_entry_create(Evas_Object * parent)
        elm_entry_prediction_allow_set(en, EINA_FALSE);
        evas_object_show(en);
 
-       //Evas_Object *clear_button= elm_object_part_content_get(en, "elm.swallow.clear");
-       //evas_object_event_callback_add(clear_button, EVAS_CALLBACK_SHOW, mf_popup_clear_btn_show_cb, en);
-
        return en;
 }
 
@@ -972,8 +907,7 @@ Evas_Object *mf_popup_create_rename_popup(void *data, char *context)
        }
        evas_object_smart_callback_add(en, "preedit,changed",
                                                                   (Evas_Smart_Cb)
-                                                                  mf_popup_create_folder_imf_changed_cb
-                                                                  /*mf_callback_new_folder_changed_cb */ ,
+                                                                  mf_popup_create_folder_imf_changed_cb,
                                                                   ap);
        evas_object_smart_callback_add(en, "longpressed",
                                                                   (Evas_Smart_Cb)
@@ -1063,8 +997,7 @@ Evas_Object *mf_popup_create_new_folder_popup(void *data, char *context)
                                                                   ap);
        evas_object_smart_callback_add(en, "preedit,changed",
                                                                   (Evas_Smart_Cb)
-                                                                  mf_popup_create_folder_imf_changed_cb
-                                                                  /*mf_callback_new_folder_changed_cb */ ,
+                                                                  mf_popup_create_folder_imf_changed_cb,
                                                                   ap);
        evas_object_smart_callback_add(en, "activated",
                                                                   (Evas_Smart_Cb)
@@ -1216,72 +1149,6 @@ Evas_Object *mf_popup_center_processing(void *data,
        return popup;
 }
 
-Evas_Object *mf_popup_text(void *data,
-                                                  const char *context, Evas_Object_Event_Cb func,
-                                                  void *param)
-{
-       mf_error("==================================");
-       Evas_Object *popup;
-       struct appdata *ap;
-
-       ap = (struct appdata *) data;
-       popup = elm_popup_add(ap->mf_MainWindow.pMainLayout);
-
-       Evas_Object *box = elm_box_add(popup);
-       elm_box_horizontal_set(box, EINA_TRUE);
-       evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND,
-                                                                        EVAS_HINT_EXPAND);
-       evas_object_size_hint_align_set(box, EVAS_HINT_FILL, EVAS_HINT_FILL);
-       elm_box_align_set(box, 0.5, 0.5);
-       elm_box_padding_set(box, 16, 0);
-
-       // [UI] progress icon
-       Evas_Object *progressbar = elm_progressbar_add(popup);
-       elm_object_style_set(progressbar, "process_large");     /* "toolbar_process" or "pending_list" or "list_prosess" */
-       //evas_object_size_hint_align_set(progressbar, EVAS_HINT_FILL, 0.5);
-       //evas_object_size_hint_weight_set(progressbar, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-       elm_progressbar_pulse(progressbar, EINA_TRUE);
-       evas_object_show(progressbar);
-       elm_box_pack_end(box, progressbar);
-
-       // [UI] text
-       Evas_Object *label = elm_label_add(popup);
-       //elm_object_text_set(label, context);/* "Loading..." */
-       mf_object_text_set(label, context, NULL);
-       evas_object_show(label);
-       elm_box_pack_end(box, label);
-
-
-       // [UI] add table
-       Evas_Object *table = elm_table_add(popup);
-       evas_object_show(table);
-       elm_table_homogeneous_set(table, EINA_FALSE);
-
-       Evas_Object *rect_up;           // rect as a padding
-       rect_up = evas_object_rectangle_add(evas_object_evas_get(popup));
-       evas_object_size_hint_min_set(rect_up, ELM_SCALE_SIZE(100),
-                                                                 ELM_SCALE_SIZE(20));
-
-       Evas_Object *rect_down;         // rect as a padding
-       rect_down = evas_object_rectangle_add(evas_object_evas_get(popup));
-       evas_object_size_hint_min_set(rect_down, ELM_SCALE_SIZE(100),
-                                                                 ELM_SCALE_SIZE(20));
-
-       // box
-       elm_table_pack(table, rect_up, 0, 0, 2, 1);     // rect as a padding
-       elm_table_pack(table, box, 0, 1, 2, 1);
-       elm_table_pack(table, rect_down, 0, 2, 2, 1);   // rect as a padding
-       evas_object_show(box);
-       elm_object_content_set(popup, table);
-       eext_object_event_callback_add(popup, EEXT_CALLBACK_BACK,
-                                                                  eext_popup_back_cb, NULL);
-
-       evas_object_show(popup);
-       evas_object_event_callback_add(popup, EVAS_CALLBACK_DEL,
-                                                                  (Evas_Object_Event_Cb) func, param);
-       return popup;
-}
-
 /******************************
 ** Prototype    : mf_popup_create_popup
 ** Description  :
@@ -1889,47 +1756,6 @@ Evas_Object *mf_popup_create_operation_item_pop(void *data)
        return popup;
 }
 #endif
-Evas_Object *mf_popup_share_as_video_or_image(void *func_for_video,
-                                                                                         void *func_for_image,
-                                                                                         void *data)
-{
-       MF_TRACE_BEGIN mfItemData_s * item_data = (mfItemData_s *) data;
-       mf_retvm_if(item_data == NULL, NULL, "input data is NULL");
-       struct appdata *ap = (struct appdata *) item_data->ap;
-       mf_retvm_if(ap == NULL, NULL, "input ap is NULL");
-
-       Evas_Object *popup = NULL;
-       popup = elm_popup_add(ap->mf_MainWindow.pWindow);
-       mf_retvm_if(popup == NULL, NULL, "popup is NULL");
-       elm_object_style_set(popup, "indicator_norepeatevent");
-       elm_object_focus_set(popup, EINA_FALSE);
-       evas_object_size_hint_weight_set(popup, EVAS_HINT_EXPAND,
-                                                                        EVAS_HINT_EXPAND);
-       elm_object_part_text_set(popup, "title,text",
-                                                        mf_util_get_text
-                                                        (MF_LABEL_SHARE_SOUND_AND_SHOT_PICS));
-
-       elm_popup_item_append(popup,
-                                                 mf_util_get_text(MF_LABEL_SHARE_AS_VIDEO_FILES),
-                                                 NULL, func_for_video, data);
-       elm_popup_item_append(popup,
-                                                 mf_util_get_text(MF_LABEL_SHARE_AS_IMAGE_FILES),
-                                                 NULL, func_for_image, data);
-       evas_object_event_callback_add(popup, EVAS_CALLBACK_DEL,
-                                                                  (Evas_Object_Event_Cb)
-                                                                  __mf_popup_longpress_del_cb, ap);
-       evas_object_smart_callback_add(popup, "block,clicked",
-                                                                  (Evas_Smart_Cb)
-                                                                  __mf_popup_block_clicked_cb, NULL);
-       eext_object_event_callback_add(popup, EEXT_CALLBACK_BACK,
-                                                                  eext_popup_back_cb, NULL);
-       //evas_object_smart_callback_add(popup, "popup,selected", func, (void *)data);
-
-       mf_info("popup is [%p]", popup);
-       evas_object_show(popup);
-       MF_TRACE_END;
-       return popup;
-}
 
 static void __mf_popup_listby_gl_style_set(void *data, int type)
 {
@@ -1954,20 +1780,6 @@ static void __mf_popup_listby_gl_style_set(void *data, int type)
        }
 }
 
-void mf_ea_popup_back_cb(void *data, Evas_Object * obj, void *event_info)
-{
-       MF_TRACE_BEGIN;
-       if (obj) {
-               eext_popup_back_cb(data, obj, event_info);
-       }
-       if (data) {
-               Evas_Smart_Cb func = data;
-               struct appdata *app_data = mf_get_appdata();
-               func(app_data, obj, event_info);
-       }
-       MF_TRACE_END;
-}
-
 void mf_popup_del_by_timeout(void *data, Evas_Object * obj,
                                                         void *event_info)
 {
@@ -2385,136 +2197,6 @@ void mf_popup_indicator_popup(void *data, const char *text)
        return;
 }
 
-static Eina_Bool mf_check_view_show_flag = EINA_TRUE;
-
-Eina_Bool mf_popup_check_view_flag_get()
-{
-       return mf_check_view_show_flag;
-}
-
-void mf_popup_check_view_flag_set(Eina_Bool state)
-{
-       mf_check_view_show_flag = state;
-}
-
-static void _go_check_clicked_cb(void *data, Evas_Object * obj,
-                                                                void *event_info)
-{
-       Eina_Bool state = elm_check_state_get(obj);
-       if (state) {
-               elm_object_signal_emit(obj, "elm,activate,check,off", "elm");
-       } else {
-               elm_object_signal_emit(obj, "elm,activate,check,on", "elm");
-       }
-
-       mf_check_view_show_flag = !state;
-}
-
-Evas_Object *mf_popup_check_view_popup(void *data,
-                                                                          const char *title,
-                                                                          const char *text,
-                                                                          const char *check_text,
-                                                                          const char *first_btn_text,
-                                                                          const char *second_btn_text,
-                                                                          Evas_Smart_Cb func, void *param)
-{
-       Evas_Object *popup;
-       Evas_Object *layout;
-       Evas_Object *scroller;
-       Evas_Object *label;
-       Evas_Object *check;
-
-       struct appdata *ap = NULL;
-       Evas_Object *btn1 = NULL;
-       Evas_Object *btn2 = NULL;
-       ap = (struct appdata *) data;
-       mf_retvm_if(ap == NULL, NULL, "ap is NULL");
-
-       popup = elm_popup_add(ap->mf_MainWindow.pWindow);
-       eext_object_event_callback_add(popup, EEXT_CALLBACK_BACK,
-                                                                  eext_popup_back_cb, NULL);
-       evas_object_size_hint_weight_set(popup, EVAS_HINT_EXPAND,
-                                                                        EVAS_HINT_EXPAND);
-       if (title) {
-               mf_object_text_set(popup, title, "title,text");
-       }
-       /* layout */
-       char edj_path[1024] = { 0 };
-       char *path = app_get_resource_path();
-       snprintf(edj_path, 1024, "%s%s/%s", path, "edje", EDJ_NAME);
-       free(path);
-
-       layout = elm_layout_add(popup);
-       elm_layout_file_set(layout, edj_path, "popup_checkview_layout");
-       evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND,
-                                                                        EVAS_HINT_EXPAND);
-       elm_object_part_text_set(layout, "elm.text", "Description text");
-
-       /* ok button */
-       /*btn = elm_button_add(popup);
-          elm_object_style_set(btn, "popup");
-          elm_object_text_set(btn, "OK");
-          elm_object_part_content_set(popup, "button1", btn); */
-//  evas_object_smart_callback_add(btn, "clicked", popup_btn_clicked_cb, popup);
-
-       /* check */
-       check = elm_check_add(popup);
-       elm_object_style_set(check, "popup");
-       mf_object_text_set(check, check_text, NULL);
-       evas_object_size_hint_align_set(check, EVAS_HINT_FILL, EVAS_HINT_FILL);
-       evas_object_size_hint_weight_set(check, EVAS_HINT_EXPAND,
-                                                                        EVAS_HINT_EXPAND);
-       elm_object_part_content_set(layout, "elm.swallow.end", check);
-       evas_object_smart_callback_add(check, "changed", _go_check_clicked_cb,
-                                                                  NULL);
-
-       /* scroller */
-       scroller = elm_scroller_add(layout);
-       elm_scroller_bounce_set(scroller, EINA_TRUE, EINA_TRUE);
-       elm_scroller_policy_set(scroller, ELM_SCROLLER_POLICY_OFF,
-                                                       ELM_SCROLLER_POLICY_AUTO);
-       elm_object_part_content_set(layout, "elm.swallow.content", scroller);
-
-       /* label */
-       label = elm_label_add(scroller);
-       elm_object_style_set(label, "popup/default");
-       elm_label_line_wrap_set(label, ELM_WRAP_MIXED);
-       mf_object_text_set(label, text, NULL);
-       //elm_object_text_set(label, "This is popup description text. To provide information about popup, it is scrollable text.");
-       evas_object_size_hint_weight_set(label, EVAS_HINT_EXPAND, 0.0);
-       evas_object_size_hint_align_set(label, EVAS_HINT_FILL, EVAS_HINT_FILL);
-       evas_object_show(label);
-       elm_object_content_set(scroller, label);
-
-       elm_object_content_set(popup, layout);
-
-       evas_object_show(popup);
-       if (first_btn_text && func) {
-               btn1 = mf_object_create_button(popup,
-                                                                          "popup_button/default",
-                                                                          first_btn_text,
-                                                                          NULL,
-                                                                          (Evas_Smart_Cb) func,
-                                                                          param, EINA_FALSE);
-               elm_object_part_content_set(popup, "button1", btn1);
-       }
-       if (second_btn_text && func) {
-               btn2 = mf_object_create_button(popup,
-                                                                          "popup_button/default",
-                                                                          second_btn_text,
-                                                                          NULL,
-                                                                          (Evas_Smart_Cb) func,
-                                                                          param, EINA_FALSE);
-               elm_object_part_content_set(popup, "button2", btn2);
-       }
-       evas_object_event_callback_add(popup, EVAS_CALLBACK_DEL,
-                                                                  __mf_popup_normal_del_cb, ap);
-       eext_object_event_callback_add(popup, EEXT_CALLBACK_BACK,
-                                                                  eext_popup_back_cb, NULL);
-       evas_object_show(popup);
-       return popup;
-}
-
 void __mf_popup_view_as_genlist_change(ListByData_s * params)
 {
        if (params == NULL) {
index 9739d32..5c67ed1 100644 (file)
@@ -87,7 +87,6 @@ Evas_Object *mf_recent_view_content_create(void *data)
                content = mf_object_create_genlist(ap->mf_MainWindow.pNaviLayout);
                evas_object_smart_callback_add(content, "language,changed",
                                                                           mf_genlist_gl_lang_changed, data);
-               // evas_object_smart_callback_add(content, "longpressed", mf_genlist_gl_longpress, ap);
                evas_object_smart_callback_add(content, "selected",
                                                                           mf_edit_list_item_sel_cb, ap);
                mf_genlist_create_itc_style(&ap->mf_gl_style.itc,
@@ -201,7 +200,6 @@ void mf_recent_view_create(void *data)
 
        mf_navi_bar_title_content_set(ap, LABEL_MYFILE_CHAP);
 
-       //mf_navi_bar_title_set(ap);
 
        MF_TRACE_END;
 }
index b91e44f..a64a411 100644 (file)
@@ -153,39 +153,6 @@ void mf_mw_root_category_item_update(void *data)
        MF_TRACE_END;
 }
 
-void mf_mw_root_category_refresh(void *data)
-{
-       MF_TRACE_BEGIN;
-       mf_retm_if(data == NULL, "data is NULL");
-       struct appdata *ap = (struct appdata *) data;
-
-       Evas_Object *category = root_category;
-
-       int changed_angle = elm_win_rotation_get(ap->mf_MainWindow.pWindow);
-       mf_debug("category=%p, changed_angle is [%d]", category,
-                        changed_angle);
-
-       if (category) {
-               if (changed_angle == APP_DEVICE_ORIENTATION_90
-                       || changed_angle == APP_DEVICE_ORIENTATION_270) {
-                       if (box_root_category) {
-                               evas_object_size_hint_min_set(box_root_category,
-                                                                                         ELM_SCALE_SIZE(1280), -1);
-                       }
-                       edje_object_signal_emit(_EDJ(category), "landscape",
-                                                                       "category_frame");
-               } else {
-                       if (box_root_category) {
-                               evas_object_size_hint_min_set(box_root_category,
-                                                                                         ELM_SCALE_SIZE(720), -1);
-                       }
-                       edje_object_signal_emit(_EDJ(category), "portrait",
-                                                                       "category_frame");
-               }
-       }
-       MF_TRACE_END;
-}
-
 static Evas_Object *__mf_mw_category_content_get(void *data,
                                                                                                 Evas_Object * obj,
                                                                                                 const char *part)
@@ -259,34 +226,6 @@ Elm_Object_Item *__mf_root_view_group_index_create(void *data,
        return m_TempItem->item;
 }
 
-void __mf_root_view_shortcut_items_append(void *data)
-{
-       mf_retm_if(data == NULL, "data is NULL");
-       struct appdata *ap = (struct appdata *) data;
-       Evas_Object *genlist = ap->mf_MainWindow.pNaviGenlist;
-       int view_style = mf_view_style_get(ap);
-       mf_util_free_eina_list_with_data(&(ap->mf_FileOperation.shortcut_list),
-                                                                        MYFILE_TYPE_FSNODE);
-       mf_util_generate_saved_files_list(ap, mf_list_shortcut);
-       shortcut_index_item = NULL;
-       if (eina_list_count(ap->mf_FileOperation.shortcut_list) > 0) {
-               shortcut_index_item =
-                       __mf_root_view_group_index_create(ap, genlist,
-                                                                                         MF_LABEL_SHORTCUT);
-               if (view_style == MF_VIEW_SYTLE_LIST_DETAIL) {
-                       mf_genlist_create_itc_style(&ap->mf_gl_style.itc,
-                                                                               mf_item_itc_type_normal_list_details);
-                       mf_genlist_create_itc_style(&ap->mf_gl_style.userfolderitc,
-                                                                               mf_item_itc_type_normal_list_details);
-               } else {
-                       mf_genlist_create_itc_style(&ap->mf_gl_style.itc,
-                                                                               mf_item_itc_type_normal_list);
-                       mf_genlist_create_itc_style(&ap->mf_gl_style.userfolderitc,
-                                                                               mf_item_itc_type_normal_list);
-               }
-       }
-}
-
 void __mf_root_view_local_storage_items_append(void *data)
 {
        mf_retm_if(data == NULL, "data is NULL");
index 1319fe5..0f57716 100644 (file)
@@ -59,70 +59,6 @@ typedef struct {
        char *create_date;
 } mf_search_detail_infor_s;
 
-void mf_search_bar_set_search_all(Eina_Bool flag)
-{
-       search_all_flag = flag;
-}
-
-static void __mf_search_bar_sel_search_all(void *data, Evas_Object * obj,
-                                                                                  void *event_info)
-{
-       search_all_flag = EINA_TRUE;
-       do_search_all = EINA_TRUE;
-       mf_search_bar_search_started_callback(data, NULL, NULL);
-}
-
-void mf_search_gengrid_style_set()
-{
-       search_gic.item_style = "custom/myfile";
-       search_gic.func.text_get = mf_gengrid_item_label_get;
-       search_gic.func.content_get = mf_gengrid_item_icon_get;
-       search_gic.func.state_get = NULL;
-       search_gic.func.del = NULL;
-}
-
-static Evas_Object *_gl_search_all_content_get(void *data,
-                                                                                          Evas_Object * obj,
-                                                                                          const char *part)
-{
-       mf_debug("part is [%s]", part);
-       if (!strcmp(part, "elm.icon")) {
-
-               Evas_Object *btn = mf_object_create_button(obj,
-                                                                                                  NULL,
-                                                                                                  MF_LABEL_SEARCH_ALL,
-                                                                                                  NULL,
-                                                                                                  __mf_search_bar_sel_search_all,
-                                                                                                  data,
-                                                                                                  EINA_FALSE);
-
-               return btn;
-       }
-       return NULL;
-}
-
-void mf_search_bar_search_all_item_append(void *data)
-{
-
-       MF_TRACE_BEGIN;
-       struct appdata *ap = (struct appdata *) data;
-       mf_retm_if(ap == NULL, "input data error");
-
-       if (ap->mf_Status.view_type != mf_view_root) {
-               Elm_Genlist_Item_Class *itc = elm_genlist_item_class_new();
-               if (itc) {
-                       itc->item_style = "myfile/1icon/search_all";
-                       itc->func.text_get = NULL;
-                       itc->func.content_get = _gl_search_all_content_get;
-                       itc->func.state_get = NULL;
-                       itc->func.del = NULL;
-                       elm_genlist_item_append(ap->mf_MainWindow.pNaviGenlist, itc,
-                                                                       ap, NULL, ELM_GENLIST_ITEM_NONE, NULL,
-                                                                       NULL);
-               }
-       }
-}
-
 static void __mf_search_bar_click_item(void *data)
 {
        MF_TRACE_BEGIN;
@@ -707,7 +643,6 @@ void mf_search_bar_content_object_create(void *data)
                                                                                   ap);
 
                        evas_object_show(ap->mf_MainWindow.pNaviGenlist);
-                       //evas_object_smart_callback_add(ap->mf_MainWindow.pNaviGenlist, "longpressed", mf_genlist_gl_longpress, ap);
                        mf_search_bar_set_content(ap, ap->mf_MainWindow.pNaviBox,
                                                                          ap->mf_MainWindow.pNaviGenlist,
                                                                          false);
@@ -720,7 +655,6 @@ void mf_search_bar_content_object_create(void *data)
                        evas_object_smart_callback_add(ap->mf_MainWindow.pNaviGengrid,
                                                                                   "language,changed",
                                                                                   mf_gengrid_gl_lang_changed, ap);
-                       //evas_object_smart_callback_add(ap->mf_MainWindow.pNaviGengrid, "longpressed", mf_gengrid_thumbs_longpressed, ap);
                        evas_object_smart_callback_add(ap->mf_MainWindow.pNaviGengrid,
                                                                                   "realized", mf_gengrid_realized,
                                                                                   ap);
@@ -1029,15 +963,11 @@ static void __mf_search_bar_result_update(mf_search_result_t * result,
        if (ap->mf_Status.view_type != mf_view_root
                && search_all_flag == EINA_FALSE) {
                mf_search_bar_content_create(result, ap);
-               //mf_search_bar_search_all_item_append(ap);
                if (g_list_length(result->dir_list) +
                        g_list_length(result->file_list) == 0) {
-                       //Evas_Object *pSearchBarLabel = NULL;
-                       //elm_layout_theme_set(lay, "layout", "nocontents", "search");
                        Evas_Object *parent = NULL;
                        ap->mf_Status.flagNoContent = EINA_TRUE;
                        parent = ap->mf_MainWindow.pNaviLayout;
-                       //pSearchBarLabel = mf_object_create_no_content(parent);
                        Evas_Object *no_content = elm_layout_add(parent);
                        elm_layout_theme_set(no_content, "layout", "nocontents",
                                                                 "search");
@@ -1046,24 +976,18 @@ static void __mf_search_bar_result_update(mf_search_result_t * result,
                        evas_object_size_hint_align_set(no_content, EVAS_HINT_FILL,
                                                                                        EVAS_HINT_FILL);
                        elm_object_focus_set(no_content, EINA_FALSE);
-                       //mf_object_disable_virtualkeypad();
                        mf_object_text_set(no_content, MF_LABEL_NO_RESULT_FOUND,
                                                           "elm.text");
                        evas_object_show(no_content);
                        mf_search_bar_set_content(ap, ap->mf_MainWindow.pNaviBox,
                                                                          no_content, true);
-                       //mf_navi_bar_layout_content_set(parent, pSearchBarLabel);
-
                }
        } else {
                if (g_list_length(result->dir_list) +
                        g_list_length(result->file_list) == 0) {
-                       //Evas_Object *pSearchBarLabel = NULL;
-                       //elm_layout_theme_set(lay, "layout", "nocontents", "search");
                        Evas_Object *parent = NULL;
                        ap->mf_Status.flagNoContent = EINA_TRUE;
                        parent = ap->mf_MainWindow.pNaviLayout;
-                       //pSearchBarLabel = mf_object_create_no_content(parent);
                        Evas_Object *no_content = elm_layout_add(parent);
                        elm_layout_theme_set(no_content, "layout", "nocontents",
                                                                 "search");
@@ -1072,24 +996,19 @@ static void __mf_search_bar_result_update(mf_search_result_t * result,
                        evas_object_size_hint_align_set(no_content, EVAS_HINT_FILL,
                                                                                        EVAS_HINT_FILL);
                        elm_object_focus_set(no_content, EINA_FALSE);
-                       //mf_object_disable_virtualkeypad();
                        mf_object_text_set(no_content, MF_LABEL_NO_RESULT_FOUND,
                                                           "elm.text");
                        evas_object_show(no_content);
                        mf_search_bar_set_content(ap, ap->mf_MainWindow.pNaviBox,
                                                                          no_content, true);
-                       //mf_navi_bar_layout_content_set(parent, pSearchBarLabel);
-
                } else {
                        mf_search_bar_content_create(result, ap);
                }
                if (ap->mf_MainWindow.pNaviGenlist
                        && elm_genlist_items_count(ap->mf_MainWindow.pNaviGenlist) ==
                        0) {
-                       //Evas_Object *no_content = NULL;
                        Evas_Object *parent = NULL;
                        parent = ap->mf_MainWindow.pNaviLayout;
-                       //no_content = mf_object_create_no_content(parent);
                        Evas_Object *no_content = elm_layout_add(parent);
                        elm_layout_theme_set(no_content, "layout", "nocontents",
                                                                 "search");
@@ -1098,7 +1017,6 @@ static void __mf_search_bar_result_update(mf_search_result_t * result,
                        evas_object_size_hint_align_set(no_content, EVAS_HINT_FILL,
                                                                                        EVAS_HINT_FILL);
                        elm_object_focus_set(no_content, EINA_FALSE);
-                       //mf_object_disable_virtualkeypad();
                        mf_object_text_set(no_content, MF_LABEL_NO_RESULT_FOUND,
                                                           "elm.text");
                        evas_object_show(no_content);
@@ -1417,7 +1335,7 @@ void mf_search_list_expand(void *data)
 
        if (!expand_state_device) {
                if (ap->device_it) {
-                       _on_expand_cb(ap,NULL,ap->device_it);
+                       _on_expand_cb(ap, NULL, ap->device_it);
                }
        }
 
@@ -1426,7 +1344,7 @@ void mf_search_list_expand(void *data)
 
        if (!expand_state_sdcard) {
                if (ap->sdcard_it) {
-                       _on_expand_cb(ap,NULL,ap->sdcard_it);
+                       _on_expand_cb(ap, NULL, ap->sdcard_it);
                }
        }
 }
index 3c0d17a..921e25d 100644 (file)
@@ -48,19 +48,6 @@ static Eina_Bool __mf_search_view_add_filter_ctxpopup(void *data,
        return EINA_FALSE;
 }
 
-void mf_callback_category_filter_cb(void *data, Evas_Object * obj,
-                                                                       void *event_info)
-{
-       MF_TRACE_BEGIN;
-       struct appdata *ap = (struct appdata *) data;
-       mf_retm_if(ap == NULL, "ap is NULL");
-       elm_object_focus_set(ap->mf_MainWindow.pSearchEntry, EINA_FALSE);
-       ap->mf_MainWindow.pPopupTimer =
-               ecore_timer_add(0.2,
-                                               (Ecore_Task_Cb)
-                                               __mf_search_view_add_filter_ctxpopup, ap);
-}
-
 static void __mf_search_entry_text_del_cb(void *data, Evas * e,
                                                                                  Evas_Object * obj,
                                                                                  void *event_info)
@@ -441,7 +428,6 @@ void mf_search_view_create(void *data)
                                        g_strdup(MF_LABEL_SEARCH_CHAP);
                        }
                }
-               //mf_navi_bar_title_set(ap);
        } else {
                //mf_navi_bar_title_content_set(ap, LABEL_MYFILE);
        }
index 438cff2..d0b1f94 100644 (file)
@@ -330,99 +330,3 @@ void mf_setting_view_create(void *data)
        MF_TRACE_END;
 
 }
-
-void update_lang(void)
-{
-       char *lang = NULL;
-       char *baselang = NULL;
-       char *r = NULL;
-       int retcode = -1;
-       retcode =
-               system_settings_get_value_string
-               (SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE, &lang);
-       if (retcode != SYSTEM_SETTINGS_ERROR_NONE) {
-               mf_error("[ERR] failed to get the language");
-       }
-       if (lang) {
-               setenv("LANG", lang, 1);
-               setenv("LC_MESSAGES", lang, 1);
-               r = setlocale(LC_ALL, "");
-               if (r == NULL) {
-                       retcode =
-                               system_settings_get_value_string
-                               (SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE, &baselang);
-                       if (retcode != SYSTEM_SETTINGS_ERROR_NONE) {
-                               mf_error("[ERR] failed to get the language");
-                       }
-                       if (baselang) {
-                               setlocale(LC_ALL, baselang);
-                               free(baselang);
-                       }
-               }
-               free(lang);
-       }
-}
-
-void update_region(void)
-{
-       char *region = NULL;
-       int retcode = -1;
-       retcode =
-               system_settings_get_value_string
-               (SYSTEM_SETTINGS_KEY_LOCALE_COUNTRY, &region);
-       if (retcode != SYSTEM_SETTINGS_ERROR_NONE) {
-               mf_error("[ERR] failed to get the region");
-       }
-       if (region) {
-               setenv("LC_CTYPE", region, 1);
-               setenv("LC_NUMERIC", region, 1);
-               setenv("LC_TIME", region, 1);
-               setenv("LC_COLLATE", region, 1);
-               setenv("LC_MONETARY", region, 1);
-               setenv("LC_PAPER", region, 1);
-               setenv("LC_NAME", region, 1);
-               setenv("LC_ADDRESS", region, 1);
-               setenv("LC_TELEPHONE", region, 1);
-               setenv("LC_MEASUREMENT", region, 1);
-               setenv("LC_IDENTIFICATION", region, 1);
-               free(region);
-       }
-}
-
-static int __set_i18n(const char *domain, const char *dir)
-{
-       mf_error("===============================");
-       char *r;
-       if (domain == NULL) {
-               errno = EINVAL;
-               return -1;
-       }
-
-       r = setlocale(LC_ALL, "");
-       /* if locale is not set properly, try again to set as language base */
-       if (r == NULL) {
-               char *lang = NULL;
-               int retcode =
-                       system_settings_get_value_string
-                       (SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE, &lang);
-               if (retcode != SYSTEM_SETTINGS_ERROR_NONE) {
-                       mf_error("[ERR] failed to get the language");
-               }
-               if (lang) {
-                       setlocale(LC_ALL, lang);
-                       free(lang);
-               }
-       }
-       bindtextdomain(domain, dir);
-       textdomain(domain);
-       return 0;
-}
-
-int mf_setting_set_i18n(char *pkgname, char *localedir)
-{
-       mf_error("===============================");
-       //update_lang();
-       // update_region();
-
-       return __set_i18n(pkgname, localedir);
-}
index 2901831..72e97bf 100644 (file)
@@ -78,8 +78,6 @@ mf_category_layout g_mf_category_layout;
 
 Elm_Gengrid_Item_Class category_gic;
 void __mf_category_item_add_click_callback(void *data);
-void __mf_category_item_del_click_callback(void *data);
-
 
 
 int mf_tray_item_category_type_get_by_file_type(fsFileType type)
@@ -239,34 +237,6 @@ void mf_tray_item_search(void *data, int type)
        }
 }
 
-void mf_category_refresh(void *data)
-{
-       MF_TRACE_BEGIN;
-       mf_retm_if(data == NULL, "data is NULL");
-       struct appdata *ap = (struct appdata *) data;
-
-       Evas_Object *category =
-               elm_object_part_content_get(ap->mf_MainWindow.pNaviLayout,
-                                                                       "category");
-
-       int changed_angle = elm_win_rotation_get(ap->mf_MainWindow.pWindow);
-       mf_debug("category=%p, changed_angle is [%d]", category,
-                        changed_angle);
-
-       if (category) {
-               if (changed_angle == APP_DEVICE_ORIENTATION_90
-                       || changed_angle == APP_DEVICE_ORIENTATION_270) {
-                       edje_object_signal_emit(_EDJ(category), "landscape",
-                                                                       "category_frame");
-                       __mf_category_item_mode_landscape();
-               } else {
-                       edje_object_signal_emit(_EDJ(category), "portrait",
-                                                                       "category_frame");
-                       __mf_category_item_mode_portrait();
-               }
-       }
-}
-
 void mf_category_item_title_refresh(Evas_Object * parent)
 {
        MF_TRACE_BEGIN;
@@ -986,43 +956,6 @@ void __mf_category_item_add_click_callback(void *data)
                                                                        NULL);
 }
 
-void __mf_category_item_del_click_callback(void *data)
-{
-       MF_TRACE_BEGIN;
-       edje_object_signal_callback_del(_EDJ
-                                                                       (g_mf_category_layout.category_image),
-                                                                       "category_image,clicked",
-                                                                       "background_signal",
-                                                                       __mf_category_item_clicked);
-       edje_object_signal_callback_del(_EDJ
-                                                                       (g_mf_category_layout.category_video),
-                                                                       "category_video,clicked",
-                                                                       "background_signal",
-                                                                       __mf_category_item_clicked);
-       edje_object_signal_callback_del(_EDJ
-                                                                       (g_mf_category_layout.category_sound),
-                                                                       "category_sound,clicked",
-                                                                       "background_signal",
-                                                                       __mf_category_item_clicked);
-       edje_object_signal_callback_del(_EDJ
-                                                                       (g_mf_category_layout.
-                                                                        category_document),
-                                                                       "category_document,clicked",
-                                                                       "background_signal",
-                                                                       __mf_category_item_clicked);
-       edje_object_signal_callback_del(_EDJ
-                                                                       (g_mf_category_layout.
-                                                                        category_download_app),
-                                                                       "category_download_app,clicked",
-                                                                       "background_signal",
-                                                                       __mf_category_download_history_item_clicked);
-       edje_object_signal_callback_del(_EDJ
-                                                                       (g_mf_category_layout.category_recent),
-                                                                       "category_recent,clicked",
-                                                                       "background_signal",
-                                                                       __mf_category_recent_item_clicked);
-}
-
 void __mf_category_item_add_release_callback(void *data)
 {
        MF_TRACE_BEGIN;
@@ -1060,43 +993,6 @@ void __mf_category_item_add_release_callback(void *data)
                                                                        __mf_category_item_released, NULL);
 }
 
-void __mf_category_item_del_release_callback(void *data)
-{
-       MF_TRACE_BEGIN;
-       edje_object_signal_callback_del(_EDJ
-                                                                       (g_mf_category_layout.category_image),
-                                                                       "category_image,released",
-                                                                       "released_signal",
-                                                                       __mf_category_item_released);
-       edje_object_signal_callback_del(_EDJ
-                                                                       (g_mf_category_layout.category_video),
-                                                                       "category_video,released",
-                                                                       "released_signal",
-                                                                       __mf_category_item_released);
-       edje_object_signal_callback_del(_EDJ
-                                                                       (g_mf_category_layout.category_sound),
-                                                                       "category_sound,released",
-                                                                       "released_signal",
-                                                                       __mf_category_item_released);
-       edje_object_signal_callback_del(_EDJ
-                                                                       (g_mf_category_layout.
-                                                                        category_document),
-                                                                       "category_document,released",
-                                                                       "released_signal",
-                                                                       __mf_category_item_released);
-       edje_object_signal_callback_del(_EDJ
-                                                                       (g_mf_category_layout.
-                                                                        category_download_app),
-                                                                       "category_download_app,released",
-                                                                       "released_signal",
-                                                                       __mf_category_item_released);
-       edje_object_signal_callback_del(_EDJ
-                                                                       (g_mf_category_layout.category_recent),
-                                                                       "category_recent,released",
-                                                                       "released_signal",
-                                                                       __mf_category_item_released);
-}
-
 
 void __mf_category_item_mode_landscape(void)
 {
index c6e5080..bd95e47 100644 (file)
@@ -43,13 +43,6 @@ static MORE_TYPE pre_delete = MORE_DEFAULT;
 static MORE_TYPE extra_rename = MORE_DEFAULT;
 // static MORE_TYPE pre_launch = MORE_DEFAULT;
 
-void mf_view_extra_reset_state_with_pre(void *data)
-{
-       mf_retm_if(data == NULL, "data is NULL");
-       struct appdata *ap = (struct appdata *) data;
-       ap->mf_Status.extra = extra_rename;
-}
-
 void mf_view_state_set_with_pre_shortcut_rename(void *data,
                                                                                                MORE_TYPE state)
 {
@@ -577,42 +570,6 @@ Elm_Object_Item *mf_view_item_append_with_data(Evas_Object * parent,
        return it;
 }
 
-void mf_view_item_remove(Evas_Object * parent, const char *path, int type)
-{
-       mf_debug("path is [%s]", path);
-       mf_retm_if(parent == NULL, "parent is NULL");
-       mf_retm_if(path == NULL, "path is NULL");
-
-       mfItemData_s *itemData = NULL;
-       Elm_Object_Item *it = NULL;
-
-       if (type == MF_VIEW_STYLE_THUMBNAIL) {
-               it = elm_gengrid_first_item_get(parent);
-       } else {
-               it = elm_genlist_first_item_get(parent);
-       }
-       while (it) {
-               itemData = elm_object_item_data_get(it);
-               if (itemData->m_ItemName == NULL
-                       || itemData->m_ItemName->str == NULL) {
-                       continue;
-               }
-               mf_debug("itemData->m_ItemName->str is [%s]",
-                                itemData->m_ItemName->str);
-               if (g_strcmp0(path, itemData->m_ItemName->str) == 0) {
-                       elm_object_item_del(it);
-                       break;
-               }
-
-               if (type == MF_VIEW_STYLE_THUMBNAIL) {
-                       it = elm_gengrid_item_next_get(it);
-               } else {
-                       it = elm_genlist_item_next_get(it);
-               }
-       }
-
-}
-
 void mf_view_item_remove_by_type(Evas_Object * parent, int storage_type,
                                                                 int view_type)
 {
@@ -680,64 +637,6 @@ void mf_view_items_remove(Evas_Object * parent, int storage, int type)
        }
 }
 
-bool mf_view_same_item_exist(Evas_Object * obj, const char *check_path,
-                                                        mf_obj_type_e type)
-{
-       Elm_Object_Item *it = NULL;
-       mfItemData_s *itemData = NULL;
-       mf_retvm_if(obj == NULL, false, "Obj is NULL");
-       mf_retvm_if(check_path == NULL, false, "check_path is NULL");
-       if (type == mf_obj_genlist) {
-               it = elm_genlist_first_item_get(obj);
-               while (it) {
-                       itemData = elm_object_item_data_get(it);
-                       if (itemData && itemData->m_ItemName
-                               && itemData->m_ItemName->str) {
-                               if (g_strcmp0(itemData->m_ItemName->str, check_path) == 0) {
-                                       return true;
-                               }
-                       }
-                       it = elm_genlist_item_next_get(it);
-               }
-
-       } else if (type == mf_obj_gengrid) {
-               it = elm_gengrid_first_item_get(obj);
-               while (it) {
-                       itemData = elm_object_item_data_get(it);
-                       if (itemData && itemData->m_ItemName
-                               && itemData->m_ItemName->str) {
-                               if (g_strcmp0(itemData->m_ItemName->str, check_path) == 0) {
-                                       return true;
-                               }
-                       }
-                       it = elm_gengrid_item_next_get(it);
-               }
-       }
-       return false;
-}
-
-char *mf_view_item_data_get(void *data, int data_type)
-{
-       mf_list_data_t *item_data = (mf_list_data_t *) data;
-       int list_type = item_data->list_type;
-       if (data_type == mf_list_data_fullpath) {
-               char *fullpath = NULL;
-               switch (list_type) {
-               case mf_list_normal:
-               case mf_list_recent_files:
-               case mf_list_shortcut:
-                       fullpath = ((mfItemData_s *) item_data)->m_ItemName->str;
-                       break;
-
-               default:
-                       fullpath = NULL;
-                       break;
-               }
-               return fullpath;
-       }
-       return NULL;
-}
-
 void mf_view_reset_record(oper_record * record)
 {
        mf_retm_if(record == NULL, "record is NULL");
index 81523eb..9435187 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<manifest xmlns="http://tizen.org/ns/packages" api-version="3.0" package="org.tizen.myfile" version="1.0.0">
+<manifest xmlns="http://tizen.org/ns/packages" api-version="4.0" package="org.tizen.myfile" version="1.0.0">
     <profile name="mobile"/>
     <ui-application appid="org.tizen.myfile" exec="myfile" hw-acceleration="on" multiple="false" nodisplay="false" process-pool="true" taskmanage="true" type="capp">
         <label>My Files</label>