removed shorcut feature 91/50391/4
authorSheenu <sheenu.15@samsung.com>
Wed, 28 Oct 2015 08:52:43 +0000 (14:22 +0530)
committerSheenu <sheenu.15@samsung.com>
Wed, 28 Oct 2015 09:53:30 +0000 (15:23 +0530)
Change-Id: Ib0590b6bcca09da356ca10cf989875109e25a4c3
Signed-off-by: Sheenu <sheenu.15@samsung.com>
32 files changed:
data/edc_common.h
data/edc_image_macro.edc
inc/mf-callback.h
inc/mf-context-popup.h
inc/mf-fs-util.h
inc/mf-main.h
inc/mf-media-db.h
inc/mf-media-types.h
inc/mf-media.h
inc/mf-popup.h
inc/mf-resource.h
inc/mf-util.h
packaging/org.tizen.myfile.spec
src/common/mf-callback.c
src/common/mf-fs-monitor.c
src/common/mf-util.c
src/media-db/mf-media-db.c
src/media-db/mf-media.c
src/mf-main.c
src/widget/mf-category-view.c
src/widget/mf-context-popup.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-popup.c
src/widget/mf-recent-view.c
src/widget/mf-root-view.c
src/widget/mf-storage-view.c
src/widget/mf-tray-item.c
src/widget/mf-view.c

index a7f6f1f..e76b327 100755 (executable)
@@ -96,7 +96,6 @@
 /***************** root icon *************/
 #define MF_ICON_ITEM_ROOT_PHONE "myfile_icon_root_folder_device_memory.png"
 #define MF_ICON_ITEM_ROOT_MMC  "my_files_sd_card.png"
-#define MF_ICON_ITEM_SHORTCUT  "my_files_folder_favorite.png"
 
 #define MF_ICON_ITEM_MMC           "myfile_icon_folder_sdcard.png"
 
index 5f227c0..23eb303 100755 (executable)
@@ -115,7 +115,6 @@ collections {
 /****** root folder icon *******/
         RESOURCE_IMAGE_BG(MF_ICON_ITEM_ROOT_PHONE, 0, 0 , 0 ,153);
         RESOURCE_IMAGE_BG(MF_ICON_ITEM_ROOT_MMC, 0, 0 , 0 ,153);
-       RESOURCE_IMAGE(MF_ICON_ITEM_SHORTCUT);
 
 
 /******title icon ********/
index d6c9751..c5b93e1 100755 (executable)
@@ -103,8 +103,6 @@ void mf_callback_hardkey_more_cb(void *data, Elm_Object_Item *it, const char *em
 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, void *event_info);
-void mf_callback_item_add_to_shortcut_cb(void *data, Evas_Object * obj, void *event_info);
-void mf_callback_item_remove_from_shortcut_cb(void *data, Evas_Object * obj, void *event_info);
 void mf_callback_setting_cb(void *data, Evas_Object * obj, void *event_info);
 void mf_callback_new_folder_save_cb(void *data, Evas_Object *obj, void *event_info);
 void mf_callback_longpress_rename_cb(void *data, Evas_Object * obj, void *event_info);
@@ -134,18 +132,11 @@ void mf_callback_move_to_private_button_from_edit_view_cb(void *data, Evas_Objec
 void mf_callback_edit_copy_cb(void *data, Evas_Object * obj, void *event_info);
 void mf_callback_edit_move_cb(void *data, Evas_Object * obj, void *event_info);
 void mf_callback_edit_delete_cb(void *data, Evas_Object * obj, void *event_info);
-void mf_callback_edit_shortcut_cb(void *data, Evas_Object * obj, void *event_info);
 void mf_callback_edit_rename_cb(void *data, Evas_Object * obj, void *event_info);
-void mf_callback_edit_add_to_shortcut_cb(void *data, Evas_Object * obj, void *event_info);
-void mf_callback_do_add_to_shortcut_cb(void *data, Evas_Object * obj, void *event_info);
 void mf_callback_warning_popup_cb(void *data, Evas_Object * obj, void *event_info);
 int mf_callback_idle_rename(void *data);
-void mf_callback_edit_delete_shortcut_cb(void *data, Evas_Object * obj, void *event_info);
-void mf_callback_do_delete_shortcut_cb(void *data, Evas_Object * obj, void *event_info);
-void mf_callback_edit_rename_shortcut_cb(void *data, Evas_Object * obj, void *event_info);
 void mf_callback_edit_delete_recent_cb(void *data, Evas_Object * obj, void *event_info);
 void mf_callback_do_delete_recent_files(void *data, Evas_Object * obj, void *event_info);
-void mf_callback_delete_shortcut_confirm_cb(void *data, Evas_Object * obj, void *event_info);
 void mf_callback_delete_recent_files_confirm_cb(void *data, Evas_Object * obj, void *event_info);
 void mf_callback_edit_unintall_cb(void *data, Evas_Object * obj, void *event_info);
 void mf_callback_unsupported_app_cb(void *data, Evas_Object * obj, void *event_info);
index 6147fa5..a7c5eb3 100755 (executable)
@@ -37,9 +37,6 @@ enum __mf_context_popup_item_type_e {
        mf_context_popup_item_move,
        mf_context_popup_item_delete,
        mf_context_popup_item_rename,
-       mf_context_popup_item_add_shortcut,
-       mf_context_popup_item_delete_shortcut,
-       mf_context_popup_item_rename_shortcut,
        mf_context_popup_item_compress,
        mf_context_popup_item_decompress,
        mf_context_popup_item_details,
index 2dcb815..05713a5 100755 (executable)
 /******* Root Folder Icon *******/
 #define MF_ICON_ITEM_ROOT_PHONE                "myfile_icon_root_folder_device_memory.png"
 #define MF_ICON_ITEM_ROOT_MMC          "my_files_sd_card.png"
-#define MF_ICON_ITEM_SHORTCUT          "my_files_folder_favorite.png"
 
 /************ Search Category Icon ***********/
 #define IMG_ICON_SEARCH_CATEGORY_ALL    "myfile_search_category_all.png"
index 7b8ef23..ae12fed 100755 (executable)
@@ -198,8 +198,6 @@ struct _myfileStatus {
        int check;
        mf_request_type req;
 
-       bool is_from_shortcut;
-       char* shortcut_from_path;
        bool ToTop;
 
        Eina_Bool flagNoContent;
@@ -266,7 +264,6 @@ struct _myfileFileOperation {
        Eina_List *file_list;
        Eina_List *category_list;
        Eina_List *recent_list;
-       Eina_List *shortcut_list;
 
        mf_cancel *pCancel;
        mf_fo_request *pRequest;
index 8885743..6138b15 100755 (executable)
@@ -28,14 +28,6 @@ extern "C" {
 
 int mf_connect_db_with_handle(sqlite3 **db_handle);
 int mf_disconnect_db_with_handle(sqlite3 *db_handle);
-int mf_update_shortcut(MFDHandle *mfd_handle,const char *new_name, char *old_name);
-int mf_find_shortcut(MFDHandle *mfd_handle,const char *shortcut_path, const char *shortcut_name, int storage_type);
-int mf_find_shortcut_display_name(MFDHandle *mfd_handle,const char *shortcut_name);
-int mf_insert_shortcut(MFDHandle *mfd_handle, const char *shortcut_path, const char *shortcut_name, int storage_type);
-int mf_delete_shortcut(MFDHandle *mfd_handle, const char *shortcut_path);
-int mf_delete_shortcut_by_type(MFDHandle *mfd_handle, int storage_type);
-int mf_foreach_shortcut_list(MFDHandle *mfd_handle, mf_shortcut_item_cb callback, void *user_data);
-int mf_get_short_count(MFDHandle *mfd_handle, int *count);
 int mf_insert_recent_file(MFDHandle *mfd_handle, const char *path, const char *name, int storage_type, const char *thumbnail_path);
 int mf_delete_recent_files(MFDHandle *mfd_handle, const char *path);
 int mf_delete_recent_files_by_type(MFDHandle *mfd_handle, int storage_type);
@@ -43,8 +35,6 @@ int mf_update_recent_files_thumbnail(MFDHandle *mfd_handle, const char *thumbnai
 int mf_update_recent_files_name(MFDHandle *mfd_handle,const char *new_name, char *old_name);
 int mf_foreach_recent_files_list(MFDHandle *mfd_handle, mf_recent_files_item_cb callback, void *user_data);
 int mf_get_recent_files_count(MFDHandle *mfd_handle, int *count);
-int mf_get_shortcut_display_name(MFDHandle *mfd_handle, const char *fullpath, char **name);
-int mf_update_shortcut_display_name(MFDHandle *mfd_handle,const char *new_name, const char *old_name);
 int mf_find_recent_file(MFDHandle *mfd_handle, const char *path);
 
 #ifdef __cplusplus
index 4a20528..91a2243 100755 (executable)
@@ -37,13 +37,6 @@ typedef void MFDHandle;              /**< Handle */
  */
 
 #if 1
-//1 Shortcut
-typedef struct _MFSitem
-{
-       char *path;
-       char *name;
-       int storage_type;
-}MFSitem;
 
 typedef struct _MFRitem
 {
@@ -53,7 +46,6 @@ typedef struct _MFRitem
        char *thumbnail;
 }MFRitem;
 
-typedef bool (*mf_shortcut_item_cb)(MFSitem *Sitem, void *user_data);
 typedef bool (*mf_recent_files_item_cb)(MFRitem *Ritem, void *user_data);
 
 #endif
index a2dfc3e..abb7a54 100755 (executable)
@@ -27,23 +27,13 @@ extern "C" {
 
 int mf_media_connect(MFDHandle **handle);
 int mf_media_disconnect(MFDHandle *handle);
-int mf_media_find_shortcut(MFDHandle *mfd_handle, const char *shortcut_path,const char *shortcut_name, int storage_type);
-int mf_media_find_shortcut_display_name(MFDHandle *mfd_handle,const char *shortcut_name);
-int mf_media_add_shortcut(MFDHandle *mfd_handle, const char *shortcut_path, const char *shortcut_name, int storage_type);
-int mf_media_delete_shortcut(MFDHandle *mfd_handle, const char *path);
-int mf_media_delete_shortcut_by_type(MFDHandle *mfd_handle, int storage_type);
 int mf_media_add_recent_files(MFDHandle *mfd_handle, const char *path, const char *name, int storage_type, const char *thumbnail_path);
 int mf_media_delete_recent_files(MFDHandle *mfd_handle, 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);
 int mf_media_foreach_recent_files_list(MFDHandle *mfd_handle, mf_recent_files_item_cb callback, void *user_data);
-int mf_media_get_short_count(MFDHandle *mfd_handle, int *count);
 int mf_media_get_recent_files_count(MFDHandle *mfd_handle, int *count);
-int mf_destroy_shortcut_item(MFSitem *sitem);
 int mf_destroy_recent_files_item(MFRitem *ritem);
-int mf_media_shortcut_update_name(MFDHandle *mfd_handle, char *name, const char *fullpath);
-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 2da4951..d5673a8 100755 (executable)
@@ -32,11 +32,9 @@ enum __mf_operation_item_type_e {
        mf_operation_item_move,
        mf_operation_item_delete,
        mf_operation_item_download,
-       mf_operation_item_addto_shortcut,
        mf_operation_item_compress,
        mf_operation_item_decompress,
        mf_operation_item_decompress_here,
-       mf_operation_item_remove,
        mf_operation_item_remove_recent,
 };
 
index 87a4ec1..c18e9af 100755 (executable)
 #define MF_LABEL_DOWNLOAD_CANCEL               "IDS_COM_POP_CANCELLED"
 #define MF_LABEL_MUSIC                         "IDS_COM_BODY_MUSIC"
 #define MF_LABEL_REMOVE_FROME_RECENT  "IDS_MF_POP_REMOVE_FROM_RECENT_FILES_LIST_Q"
-#define MF_LABEL_REMOVE_FROM_SHORTCUT "IDS_MF_POP_REMOVE_FROM_SHORTCUTS_Q"
 #define LABEL_MYFILE_CHAP                      "IDS_COM_BODY_MY_FILES"
 #define LABEL_SHARE_CHAP                       "IDS_COM_SK4_SHARE"
 #define MF_LABEL_EDIT_CHAP                     "IDS_COM_BODY_EDIT"
 #define MF_LABE_NOT_SUPPORT                    "Not support now"  //not in use
 #define MF_LABEL_SPLIT_SCREEN                  "Split screen in landscape view"
 #define MF_LABEL_REACH_MAX_SHARE_COUNT         "IDS_IV_POP_YOU_CAN_SELECT_UP_TO_PD_ITEMS"//"Maximum number of share items reach"
-#define MF_LABEL_SHORTCUT_ADDED                        "IDS_MF_POP_SHORTCUT_ADDED"
 #define MF_LABEL_NEARBY_DEVICE                 "Nearby Device"
 
 /******************  Local strings ****************/
 #define MF_LABE_HEADER_STORAGE                 "IDS_MF_HEADER_STORAGE_M_MEMORY"
 #define MF_LABEL_RECTENT_FILES                 "IDS_MF_BUTTON2_RECENTLY_VIEWED_M_FILE_ABB"
 #define MF_LABEL_SELECT_ITEMS                  "IDS_MF_HEADER_SELECT_ITEMS"
-#define MF_LABEL_ADD_TO_SHORTCUT               "IDS_ST_POP_ADD_SHORTCUT"//"IDS_MF_OPT_ADD_TO_SHORTCUTS_ABB"
 #define MF_LABEL_COMPRESS                      "IDS_MF_OPT_ZIP"
 #define LABEL_SORT_BY_CHAP                     "IDS_MF_OPT_SORT_BY"
 #define LABEL_VIEW_AS_CHAP                     "IDS_MF_OPT_VIEW_AS"
 #define MF_LABEL_CONNECT_TO_WIFI               "IDS_MF_HEADER_CONNECT_TO_WI_FI_NETWORK"
 #define MF_LABEL_CONNECT_TO_WIFI_CONTENT               "IDS_MF_POP_YOU_NEED_TO_BE_CONNECTED_TO_A_WI_FI_NETWORK_TO_SCAN_FOR_NEARBY_DEVICES_CONNECT_VIA_WI_FI_AND_TRY_AGAIN"
 #define MF_LABEL_NO_RESULT_FOUND                       "IDS_ST_BODY_NO_RESULTS_FOUND"
-#define MF_LABEL_REMOVE_SHORTCUT                       "IDS_HS_HEADER_REMOVE_SHORTCUT_ABB"
-#define MF_LABEL_RENAME_SHORTCUT               "Rename shortcut"
 #define MF_LABEL_NONE                          "IDS_COM_BODY_NONE"
 #define MF_LABEL_MOVE_TO_PRIVATE                               "IDS_GALLERY_OPT_MOVE_TO_PRIVATE"
 #define MF_LABEL_REMOVE_FROM_PRIVATE                   "IDS_GALLERY_OPT_REMOVE_FROM_PRIVATE"
 #define MF_LABEL_AD_CHANGE                     "IDS_CST_BUTTON2_CHANGE"
 #define MF_LABEL_AD_SEARCH                     "IDS_MF_SK3_SEARCH"
 #define MF_LABEL_AD_OPTIONS                    "IDS_SSEARCH_SK3_OPTIONS"
-#define MF_LABEL_SHORTCUT                      "Shortcut"
 #define MF_LABEL_ALL_FILES                     "IDS_MF_HEADER_ALL_FILES"
 #define MF_LABEL_DOWNLOADED_APP                        "Downloaded app"
 #define MF_LABEL_DOWNLOADED_APP_ENTER                  "IDS_MF_HEADER_DOWNLOAD_HISTORY_ABB"
-#define MF_LABEL_DELETE_SHORTCUT               "Delete shortcut"
-#define MF_LABEL_DELETE_THIS_SHORTCUT          "This shortcut will be deleted."
-#define MF_LABEL_DELETE_SHORTCUTS_Q            "%d shortcuts will be deleted."
 #define MF_LABEL_DELETE_THIS_RECENT            "IDS_DM_POP_THIS_ITEM_WILL_BE_DELETED_ABB"
 #define MF_LABEL_DELETE_RECENT_Q               "IDS_MF_POP_PD_ITEMS_WILL_BE_REMOVED"
 #define MF_LABEL_UNINSTALL                     "IDS_MF_BUTTON_UNINSTALL_ABB2"
-#define MF_LABE_MAX_COUNT_REACH                        "Max count of shortcut is 20"
 #define MF_LABEL_THIS_ITEM_WILL_DELETE         "IDS_DM_POP_THIS_ITEM_WILL_BE_DELETED_ABB"
 #define MF_LABEL_ITEMS_WILL_DELETE             "IDS_DM_POP_PD_ITEMS_WILL_BE_DELETED_ABB2"
-#define MF_LABEL_DELETE_SHORTCUT               "Delete shortcut"
 #define MF_LABEL_FOLDER_NAME_ALREADY_INUSE     "IDS_MF_TPOP_FOLDER_NAME_ALREADY_IN_USE"
-#define MF_LABEL_SHORTCUT_ALREADY_INUSE                "Shortcut already in use."
 #define MF_LABEL_TIME                          "IDS_MF_BODY_TIME"
 #define MF_LABEL_TYPE                          "IDS_COM_POP_TYPE"
 #define MF_LABEL_NAME                          "IDS_MF_OPT_NAME"
index 61058c7..e72057c 100755 (executable)
@@ -174,9 +174,6 @@ enum _MORE_TYPE {                   /* softkey / contextual popup */
        MORE_EDIT_COPY,         
        MORE_EDIT_MOVE,         
        MORE_EDIT_RENAME,               
-       MORE_EDIT_ADD_SHORTCUT,
-
-       MORE_EDIT_DELETE_SHORTCUT,      
        MORE_EDIT_DELETE_RECENT,
        MORE_EDIT_UNINSTALL,    
        MORE_EDIT_DELETE,
@@ -210,7 +207,6 @@ enum _LAUNCH_TYPE {
 typedef enum __mf_list_type mf_list_type;
 enum __mf_list_type {
        mf_list_recent_files = 0,
-       mf_list_shortcut,
        mf_list_normal,
 };
 
@@ -302,8 +298,6 @@ 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);
 
-char *mf_util_get_shortcut();
-void mf_util_add_shortcut(char *path);
 void mf_util_item_remove_invalid_category_items(Eina_List **list);
 void mf_util_db_add_recent_files(MFDHandle *handle, const char *path, const char *name, int storage, const char *thumbnail);
 void mf_util_db_get_recent_files(MFDHandle *handle, void *data);
@@ -312,10 +306,6 @@ void mf_util_rotation_flag_set(bool rotation);
 void mf_util_rotation_flag_get(int *rotation);
 
 void mf_util_check_pnode_list_items_exists(Eina_List **list);
-void mf_util_db_remove_shortcut(MFDHandle *handle, char *shortcut);
-bool mf_util_db_find_shortcut(MFDHandle *handle, const char *path, const char *name, int storage);
-bool mf_util_db_find_shortcut_display_name(MFDHandle *handle, const char *name);
-void mf_util_db_add_shortcut(MFDHandle *handle, const char *path, const char *name, int storage);
 void mf_util_db_remove_recent_files(MFDHandle *handle, char *recent_file);
 void mf_util_db_add_recent_files(MFDHandle *handle, const char *path, const char *name, int storage, const char *thumbnail);
 void mf_util_generate_list_prepend(Eina_List **list, const char *path, int file_type, int list_type);
index a02f8b4..22c4a1e 100755 (executable)
@@ -84,10 +84,7 @@ if [ ! -f %{buildroot}/opt/usr/apps/org.tizen.myfile/data/.myfile_media.db ]
         rm -rf %{buildroot}/opt/usr/apps/org.tizen.myfile/data/.myfile_media.db*
 then
         sqlite3 %{buildroot}/opt/usr/apps/org.tizen.myfile/data/.myfile_media.db 'PRAGMA journal_mode = PERSIST;
-        CREATE TABLE shortcut(path TEXT, name VARCHAR(256), storage_type INT, primary key (path), unique(path) );
-        CREATE TABLE recent_files(path TEXT, name VARCHAR(256), storage_type INT, thumbnail_path TEXT,primary key (path), unique(path) );
-        CREATE TABLE ringtone(path TEXT, name VARCHAR(256), storage_type INT, primary key (path), unique(path) );
-        CREATE TABLE alert(path TEXT, name VARCHAR(256), storage_type INT, primary key (path), unique(path) );'
+        CREATE TABLE recent_files(path TEXT, name VARCHAR(256), storage_type INT, thumbnail_path TEXT,primary key (path), unique(path) );'
 fi
 
 chmod 660 %{buildroot}/opt/usr/apps/org.tizen.myfile/data/.myfile_media.db
index b8972ae..5328ece 100755 (executable)
@@ -73,7 +73,6 @@ int g_mf_create_thumbnail_count = 0;
 #define MF_MAX_MAKE_THUNBNAIL_COUNT 10
 
 void mf_callback_cancel_cb(void *data, Evas_Object *obj, void *event_info);
-static void mf_callback_shortcut_rename_save_cb(void *data, Evas_Object *obj, void *event_info);
 static void __mf_callback_mmc_removed(void *data, MF_STORAGE storage);
 Eina_Bool mf_callback_is_duplicated_without_case(Eina_List *folder_list, char *name);
 
@@ -281,56 +280,28 @@ void mf_callback_upper_click_cb(void *data, Evas_Object *obj, void *event_info)
        mf_fs_monitor_remove_dir_watch();
 
        GString *parent_path = NULL;
-
-       if (ap->mf_Status.more == MORE_EDIT_ADD_SHORTCUT) {
-               if (ap->mf_Status.view_type == mf_view_storage) {
-                       return;
-               } else if (ap->mf_Status.view_type == mf_view_normal && mf_fm_svc_wrapper_is_root_path(ap->mf_Status.path->str)) {
-                       ap->mf_Status.view_type = mf_view_storage;
-                       g_string_free(ap->mf_Status.path, TRUE);
-                       ap->mf_Status.path = g_string_new(PHONE_FOLDER);
-               } else {
-                       mf_debug("ap->mf_Status.path->str = %s, ap->mf_Status.shortcut_from_path=%s", ap->mf_Status.path->str, ap->mf_Status.shortcut_from_path);
-                       parent_path = mf_fm_svc_wrapper_get_file_parent_path(ap->mf_Status.path);
-
-                       g_string_free(ap->mf_Status.path, TRUE);
-                       ap->mf_Status.path = NULL;
-                       ap->mf_Status.path = parent_path;
-               }
+       mf_error("ap->mf_Status.preViewType is [%d] view_type is [%d] ", ap->mf_Status.preViewType, ap->mf_Status.view_type);
+       if (ap->mf_Status.view_type == mf_view_storage) {
+               ap->mf_Status.view_type = mf_view_root;
+               g_string_free(ap->mf_Status.path, TRUE);
+               ap->mf_Status.path = g_string_new(PHONE_FOLDER);
+       } else if (ap->mf_Status.view_type == mf_view_normal && mf_fm_svc_wrapper_is_root_path(ap->mf_Status.path->str)) {
+               ap->mf_Status.view_type = mf_view_root;
+               g_string_free(ap->mf_Status.path, TRUE);
+               ap->mf_Status.path = g_string_new(PHONE_FOLDER);
+       } else if (ap->mf_Status.view_type == mf_view_root_category) {
+               ap->mf_Status.view_type = mf_view_root;
+               g_string_free(ap->mf_Status.path, TRUE);
+               ap->mf_Status.path = g_string_new(PHONE_FOLDER);
+       } else if (ap->mf_Status.view_type == mf_view_recent) {
+               ap->mf_Status.view_type = mf_view_root;
+               g_string_free(ap->mf_Status.path, TRUE);
+               ap->mf_Status.path = g_string_new(PHONE_FOLDER);
        } else {
-               mf_error("ap->mf_Status.preViewType is [%d] view_type is [%d] ", ap->mf_Status.preViewType, ap->mf_Status.view_type);
-               if (ap->mf_Status.view_type == mf_view_storage) {
-                       ap->mf_Status.view_type = mf_view_root;
-                       g_string_free(ap->mf_Status.path, TRUE);
-                       ap->mf_Status.path = g_string_new(PHONE_FOLDER);
-               } else if (ap->mf_Status.view_type == mf_view_normal && mf_fm_svc_wrapper_is_root_path(ap->mf_Status.path->str)) {
-                       ap->mf_Status.view_type = mf_view_root;
-                       g_string_free(ap->mf_Status.path, TRUE);
-                       ap->mf_Status.path = g_string_new(PHONE_FOLDER);
-               } else if (ap->mf_Status.view_type == mf_view_root_category) {
-                       ap->mf_Status.view_type = mf_view_root;
-                       g_string_free(ap->mf_Status.path, TRUE);
-                       ap->mf_Status.path = g_string_new(PHONE_FOLDER);
-               } else if (ap->mf_Status.view_type == mf_view_recent) {
-                       ap->mf_Status.view_type = mf_view_root;
-                       g_string_free(ap->mf_Status.path, TRUE);
-                       ap->mf_Status.path = g_string_new(PHONE_FOLDER);
-               } else {
-               //      mf_debug("ap->mf_Status.path->str = %s, ap->mf_Status.shortcut_from_path=%s", ap->mf_Status.path->str, ap->mf_Status.shortcut_from_path);
-                       if (ap->mf_Status.is_from_shortcut == true &&
-                                       (ap->mf_Status.path != NULL && ap->mf_Status.shortcut_from_path != NULL && strcmp(ap->mf_Status.path->str, ap->mf_Status.shortcut_from_path) == 0)) {
-                               ap->mf_Status.view_type = mf_view_root;
-                               g_string_free(ap->mf_Status.path, TRUE);
-                               ap->mf_Status.path = g_string_new(PHONE_FOLDER);
-
-                       } else {
-                               parent_path = mf_fm_svc_wrapper_get_file_parent_path(ap->mf_Status.path);
-
-                               g_string_free(ap->mf_Status.path, TRUE);
-                               ap->mf_Status.path = NULL;
-                               ap->mf_Status.path = parent_path;
-                       }
-               }
+               parent_path = mf_fm_svc_wrapper_get_file_parent_path(ap->mf_Status.path);
+               g_string_free(ap->mf_Status.path, TRUE);
+               ap->mf_Status.path = NULL;
+               ap->mf_Status.path = parent_path;
        }
        SAFE_FREE_CHAR(ap->mf_Status.entry_path);
        ap->mf_Status.entry_more = MORE_DEFAULT;
@@ -361,24 +332,12 @@ void mf_callback_click_cb(struct appdata *data, mfAction key, GString *path)
 
        if (mf_fm_svc_wrapper_is_dir(path)) {
                if (ap->mf_Status.view_type == mf_view_storage || ap->mf_Status.view_type == mf_view_root) {
-                       {
                        if (path->str != NULL) {
-                               mf_debug("~~~~~~~~~~~ ap->mf_Status.view_type [%d]  ap->mf_Status.is_from_shortcut is [%d]", ap->mf_Status.view_type, ap->mf_Status.is_from_shortcut);
                                mf_debug("~~~~~~~~~~~  path->str [%s]", path->str);
-                               if (ap->mf_Status.view_type == mf_view_root && strcmp(path->str, PHONE_FOLDER) != 0 && strcmp(path->str, MEMORY_FOLDER) != 0) {
-                                       ap->mf_Status.is_from_shortcut = true;
-                                       mf_debug("~~~~~~~~~~~  ap->mf_Status.is_from_shortcut [%d]", ap->mf_Status.is_from_shortcut);
-                                               if (ap->mf_Status.shortcut_from_path != NULL) {
-                                                       free(ap->mf_Status.shortcut_from_path);
-                                                       ap->mf_Status.shortcut_from_path = NULL;
-                                               }
-                                               ap->mf_Status.shortcut_from_path = (char*)g_strdup(path->str);
-                               }
                                SAFE_FREE_GSTRING(ap->mf_Status.path);
                                ap->mf_Status.path = g_string_new(path->str);
                                ap->mf_Status.view_type = mf_view_normal;
                                mf_view_refresh(ap);
-                            }
                        }
                } else {
                        GString *new_path = NULL;
@@ -511,11 +470,6 @@ void mf_callback_cancel_cb(void *data, Evas_Object *obj, void *event_info)
                break;
                /* when cancle rename, just destory the rename relative, and then the mode will change to Edit
                   then do what cancle edit do, so here not need "break" */
-       case MORE_EDIT_ADD_SHORTCUT:
-               ap->mf_Status.view_type = ap->mf_Status.preViewType;
-               ap->mf_Status.more = MORE_DEFAULT;
-               mf_view_update(ap);
-               break;
        case MORE_SHARE_EDIT:
                ap->mf_Status.more = MORE_DEFAULT;
                SAFE_FREE_CHAR(ap->mf_Status.entry_path);
@@ -550,7 +504,6 @@ void mf_callback_cancel_cb(void *data, Evas_Object *obj, void *event_info)
                /*4.    set tab enable */
                //mf_navi_bar_title_set(ap);
                break;
-       case MORE_EDIT_DELETE_SHORTCUT:
        case MORE_EDIT_DELETE_RECENT:
                ap->mf_Status.more = MORE_DEFAULT;
                SAFE_FREE_CHAR(ap->mf_Status.entry_path);
@@ -1014,18 +967,15 @@ void mf_callback_rename_save_cb(void *ad, Evas_Object *obj, void *event_info)
                                }
                                if (ap->mf_Status.more == MORE_RENAME) {
                                        __mf_callback_refresh_rename(ap, from, to);
-                                       mf_update_shortcut(ap->mf_MainWindow.mfd_handle, to->str, from->str);
                                } else if (ap->mf_Status.more == MORE_THUMBNAIL_RENAME || ap->mf_Status.more == MORE_EDIT_RENAME) {
                                        elm_object_focus_set(ap->mf_MainWindow.pEntry, EINA_FALSE);
                                        evas_object_del(ap->mf_MainWindow.pEntry);
                                        ap->mf_MainWindow.pEntry = NULL;
                                        if (ap->mf_Status.view_type == mf_view_root_category) {
                                                mf_util_update_item_from_list_by_name(&ap->mf_FileOperation.category_list, from->str, to->str);
-                                               mf_update_shortcut(ap->mf_MainWindow.mfd_handle, to->str, from->str);
                                                if (ap->mf_Status.more == MORE_DEFAULT) {
                                                        __mf_callback_refresh_rename(ap, from, to);
                                                        SAFE_FREE_OBJ(ap->mf_MainWindow.pNewFolderPopup);
-                                                       mf_update_shortcut(ap->mf_MainWindow.mfd_handle, to->str, from->str);
                                                        goto NORMAL_EXIT;
                                                }
                                        }
@@ -1036,12 +986,10 @@ void mf_callback_rename_save_cb(void *ad, Evas_Object *obj, void *event_info)
                                        if (mf_view_get_pre_state(ap) == MORE_SEARCH) {// || mf_view_get_pre_state(ap) == MORE_DEFAULT) {//ap->mf_Status.view_type == mf_view_root_category) {
                                                __mf_callback_refresh_rename(ap, from, to);
                                                SAFE_FREE_OBJ(ap->mf_MainWindow.pNewFolderPopup);
-                                               mf_update_shortcut(ap->mf_MainWindow.mfd_handle, to->str, from->str);
                                                goto NORMAL_EXIT;
                                        }
                                        // int view_style = mf_view_style_get(ap);  /* blocked becoz not used */
                                        SAFE_FREE_OBJ(ap->mf_MainWindow.pNewFolderPopup);
-                                       mf_update_shortcut(ap->mf_MainWindow.mfd_handle, to->str, from->str);
                                        ap->mf_Status.EnterFrom = strdup(to->str);
                                        mf_error("ap->mf_Status.EnterFrom = %s", ap->mf_Status.EnterFrom);
                                        mf_view_state_reset_state_with_pre(ap);
@@ -1539,21 +1487,6 @@ void mf_callback_edit_delete_cb(void *data, Evas_Object *obj, void *event_info)
        MF_TRACE_END;
 }
 
-void mf_callback_edit_shortcut_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);
-
-       ap->mf_Status.more = MORE_EDIT_ADD_SHORTCUT;
-       __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)
 {
        MF_TRACE_BEGIN;
@@ -1587,106 +1520,6 @@ void mf_callback_edit_rename_cb(void *data, Evas_Object *obj, void *event_info)
        MF_TRACE_END;
 }
 
-void mf_callback_edit_add_to_shortcut_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);
-       int count = 0;
-       mf_media_get_short_count(ap->mf_MainWindow.mfd_handle, &count);
-       mf_error("count is [%d]", count);
-       if (count >= 20) {
-               ap->mf_MainWindow.pNormalPopup = mf_popup_create_popup(ap, POPMODE_TEXT_BTN, NULL, MF_LABE_MAX_COUNT_REACH, MF_BUTTON_LABEL_OK, NULL, NULL, mf_callback_warning_popup_cb, ap);
-       } else {
-               ap->mf_Status.more = MORE_EDIT_ADD_SHORTCUT;
-               ap->mf_Status.preViewType = ap->mf_Status.view_type;
-               if (ap->mf_Status.view_type == mf_view_root) {
-                       ap->mf_Status.view_type = mf_view_storage;
-               }
-               mf_view_update(ap);
-       }
-       MF_TRACE_END;
-}
-
-void mf_callback_edit_delete_shortcut_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);
-       ap->mf_Status.more = MORE_EDIT_DELETE_SHORTCUT;
-       if (ap->mf_Status.view_type == mf_view_root) {
-               __mf_callback_edit_share_view(ap);
-       }
-       MF_TRACE_END;
-}
-
-void mf_callback_edit_rename_shortcut_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);
-       ap->mf_Status.more = MORE_EDIT_RENAME;
-       if (ap->mf_Status.view_type == mf_view_root) {
-               //__mf_callback_edit_share_view(ap);
-               elm_naviframe_item_title_enabled_set(ap->mf_MainWindow.pNaviItem, EINA_TRUE, EINA_FALSE);
-               mf_navi_bar_title_content_set(ap, LABEL_RENAME);
-       }
-       MF_TRACE_END;
-}
-
-void mf_callback_do_delete_shortcut_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;
-       Evas_Object *btn = (Evas_Object *)obj;
-       const char *label = elm_object_text_get(btn);
-
-       SAFE_FREE_OBJ(ap->mf_MainWindow.pDeleteConfirmPopup);
-       if (g_strcmp0(label, mf_util_get_text(LABEL_CANCEL)) != 0) {
-               Eina_List * selected_list = mf_edit_folder_list_get();
-               mf_list_data_t *item_data = NULL;
-               Elm_Object_Item *it = NULL;
-               Eina_List * l = NULL;
-               EINA_LIST_FOREACH(selected_list, l, it) {
-                       if (it) {
-                               item_data = elm_object_item_data_get(it);
-                                       {
-                                       mfItemData_s *select_item = (mfItemData_s *)item_data;
-                                       if (select_item && select_item->m_ItemName && select_item->m_ItemName->str) {
-                                               mf_util_db_remove_shortcut(ap->mf_MainWindow.mfd_handle, select_item->m_ItemName->str);
-                                       }
-                               }
-                       }
-               }
-               ap->mf_Status.more = MORE_DEFAULT;
-               mf_view_update(ap);
-       }
-       MF_TRACE_END;
-}
-
-void mf_callback_delete_shortcut_confirm_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;
-       int count = mf_edit_file_count_get();
-       if (count > 1) {
-               ap->mf_MainWindow.pDeleteConfirmPopup = mf_popup_create_delete_confirm_popup(ap, MF_LABEL_DELETE_SHORTCUT,
-                                                                      MF_LABEL_DELETE_SHORTCUTS_Q,
-                                                                      LABEL_CANCEL, LABEL_DELETE, mf_callback_do_delete_shortcut_cb, ap, count);
-       } else {
-               ap->mf_MainWindow.pDeleteConfirmPopup = mf_popup_create_delete_confirm_popup(ap, MF_LABEL_DELETE_ITEM,
-                                                                      MF_LABEL_DELETE_THIS_SHORTCUT,
-                                                                      LABEL_CANCEL, LABEL_DELETE, mf_callback_do_delete_shortcut_cb, ap, count);
-       }
-}
-
 void mf_callback_edit_delete_recent_cb(void *data, Evas_Object *obj, void *event_info)
 {
        MF_TRACE_BEGIN;
@@ -1761,29 +1594,6 @@ void mf_callback_delete_recent_files_confirm_cb(void *data, Evas_Object *obj, vo
        }
 }
 
-void mf_callback_do_add_to_shortcut_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;
-
-               {
-               int location = mf_fm_svc_wrapper_get_location(ap->mf_Status.path->str);
-               bool find = mf_util_db_find_shortcut(ap->mf_MainWindow.mfd_handle, ap->mf_Status.path->str, mf_file_get(ap->mf_Status.path->str), location);
-               mf_error("find is [%d]", find);
-               if (find) {
-                       ap->mf_MainWindow.pNormalPopup = mf_popup_create_popup(ap, POPMODE_TEXT_BTN, NULL, MF_LABEL_SHORTCUT_ALREADY_INUSE, MF_BUTTON_LABEL_OK, NULL, NULL, mf_callback_warning_popup_cb, ap);
-               } else {
-                       mf_util_db_add_shortcut(ap->mf_MainWindow.mfd_handle, ap->mf_Status.path->str, mf_file_get(ap->mf_Status.path->str), location);
-                       mf_popup_indicator_popup(ap, mf_util_get_text(MF_LABEL_SHORTCUT_ADDED));
-                       ap->mf_Status.more = MORE_DEFAULT;
-                       mf_view_update(ap);
-               }
-       }
-
-       MF_TRACE_END;
-}
-
 void mf_callback_edit_unintall_cb(void *data, Evas_Object *obj, void *event_info)
 {
        MF_TRACE_BEGIN;
@@ -1905,11 +1715,7 @@ void mf_callback_rename_create_cb(void *data, Evas_Object *obj, void *event_info
        mf_view_state_set_with_pre(ap, MORE_THUMBNAIL_RENAME);
 
        mf_popup_rename_func_reset();
-       if (params->list_type == mf_list_shortcut) {
-               mf_popup_rename_func_set(mf_callback_shortcut_rename_save_cb, params, mf_callback_cancel_cb, ap);
-       } else {
-               mf_popup_rename_func_set(mf_callback_rename_save_cb, params, mf_callback_cancel_cb, ap);
-       }
+       mf_popup_rename_func_set(mf_callback_rename_save_cb, params, mf_callback_cancel_cb, ap);
 
        ap->mf_MainWindow.pNewFolderPopup = mf_popup_create_rename_popup(params, LABEL_RENAME_CHAP);
        elm_object_focus_set(ap->mf_MainWindow.pEntry, EINA_TRUE);
@@ -3135,7 +2941,6 @@ static void __mf_callback_mmc_removed(void *data, MF_STORAGE storage)
        if (ap->mf_Status.view_type == mf_view_recent) {
            mf_recent_view_content_refresh(ap);
        }
-       mf_media_delete_shortcut_by_type(ap->mf_MainWindow.mfd_handle, MYFILE_MMC);
        if (ap->mf_MainWindow.pNewFolderPopup) {
                mf_list_data_t *item_data = (mf_list_data_t *)evas_object_data_get(ap->mf_MainWindow.pNewFolderPopup, "item_data");
                if (item_data && item_data->storage_type == MYFILE_MMC) {
@@ -3190,7 +2995,6 @@ static void __mf_callback_mmc_removed(void *data, MF_STORAGE storage)
                case MORE_RENAME:
                case MORE_EDIT_COPY:
                case MORE_EDIT_MOVE:
-               case MORE_EDIT_ADD_SHORTCUT:
                case MORE_EDIT_DELETE:
                case MORE_EDIT_DETAIL:
                case MORE_EDIT_RENAME:
@@ -3221,7 +3025,6 @@ static void __mf_callback_mmc_removed(void *data, MF_STORAGE storage)
                case MORE_RENAME:
                case MORE_EDIT_COPY:
                case MORE_EDIT_MOVE:
-               case MORE_EDIT_ADD_SHORTCUT:
                case MORE_EDIT_DELETE:
                case MORE_EDIT_DETAIL:
                case MORE_EDIT_RENAME:
@@ -3292,7 +3095,6 @@ static void __mf_callback_mmc_removed(void *data, MF_STORAGE storage)
                case MORE_SHARE_EDIT:
                case MORE_EDIT_COPY:
                case MORE_EDIT_MOVE:
-               case MORE_EDIT_ADD_SHORTCUT:
                case MORE_EDIT_DELETE:
                case MORE_EDIT_DETAIL:
                case MORE_EDIT_RENAME:
@@ -3473,9 +3275,6 @@ void mf_callback_backbutton_clicked_cb(void *data, Evas_Object *obj, void *event
                } else {
                        mf_callback_upper_click_cb(ap, NULL, NULL);
                }
-       } else if (ap->mf_Status.more == MORE_EDIT_ADD_SHORTCUT) {
-               mf_callback_upper_click_cb(ap, NULL, NULL);
-               SAFE_FREE_CHAR(ap->mf_Status.entry_path);
        } else {
                mf_callback_cancel_cb(ap, NULL, NULL);
        }
@@ -3775,8 +3574,7 @@ void mf_callback_more_button_cb(void *data, Evas_Object *obj, void *event_info)
                } else if (ap->mf_Status.more == MORE_INTERNAL_MOVE
                    || ap->mf_Status.more == MORE_DATA_MOVING
                    || ap->mf_Status.more == MORE_INTERNAL_COPY
-                   || ap->mf_Status.more == MORE_DATA_COPYING
-                   || ap->mf_Status.more == MORE_EDIT_ADD_SHORTCUT) {
+                   || ap->mf_Status.more == MORE_DATA_COPYING) {
                        if (ap->mf_Status.view_type != mf_view_root && ap->mf_Status.view_type != mf_view_storage) {
                                mf_context_popup_create_more(ap, more);
                        }
@@ -4172,79 +3970,6 @@ void mf_callback_hardkey_more_cb(void *data, Elm_Object_Item *it, const char *em
        mf_callback_more_button_cb(data, NULL, NULL);
 }
 
-void mf_callback_item_add_to_shortcut_cb(void *data, Evas_Object *obj, void *event_info)
-{
-       MF_TRACE_BEGIN;
-       mf_retm_if(data == NULL, "data is NULL");
-       mfItemData_s *item_data = (mfItemData_s *) data;
-       struct appdata *ap = (struct appdata *)item_data->ap;
-       mf_retm_if(ap == NULL, "ap is NULL");
-       SAFE_FREE_OBJ(ap->mf_MainWindow.pLongpressPopup);
-       bool find = mf_util_db_find_shortcut(ap->mf_MainWindow.mfd_handle, item_data->m_ItemName->str, mf_file_get(item_data->m_ItemName->str), item_data->storage_type);
-       if (find) {
-               ap->mf_MainWindow.pNormalPopup = mf_popup_create_popup(ap, POPMODE_TEXT_BTN, NULL, MF_LABE_POP_ALREADY_EXISTS, MF_BUTTON_LABEL_OK, NULL, NULL, mf_callback_warning_popup_cb, ap);
-       }else {
-               mf_util_db_add_shortcut(ap->mf_MainWindow.mfd_handle, item_data->m_ItemName->str, mf_file_get(item_data->m_ItemName->str), item_data->storage_type);
-               mf_popup_indicator_popup(ap, mf_util_get_text(MF_LABEL_SHORTCUT_ADDED));
-       }
-
-       MF_TRACE_END;
-}
-
-static void __mf_callback_shortcut_confirm_delete(void *data, Evas_Object *obj, void *event_info)
-{
-       MF_TRACE_BEGIN;
-       mf_retm_if(data == NULL, "data is NULL");
-       mf_list_data_t *list_data = (mf_list_data_t *) data;
-       struct appdata *ap = (struct appdata *)list_data->ap;
-       mf_retm_if(ap == NULL, "ap is NULL");
-
-       Evas_Object *btn = (Evas_Object *)obj;
-       const char *label = elm_object_text_get(btn);
-       if (g_strcmp0(label, mf_util_get_text(LABEL_CANCEL)) == 0) {
-
-               if (ap->mf_MainWindow.pNormalPopup) {
-                       evas_object_del(ap->mf_MainWindow.pNormalPopup);
-                       ap->mf_MainWindow.pNormalPopup = NULL;
-               }
-       } else {
-               if (ap->mf_MainWindow.pNormalPopup) {
-                       evas_object_del(ap->mf_MainWindow.pNormalPopup);
-                       ap->mf_MainWindow.pNormalPopup = NULL;
-               }
-
-               {
-                       mfItemData_s *item_data = (mfItemData_s *) data;
-                       mf_util_db_remove_shortcut(ap->mf_MainWindow.mfd_handle, item_data->m_ItemName->str);
-               }
-               if (list_data->item) {
-                       elm_object_item_del(list_data->item);
-               }
-       }
-       MF_TRACE_END;
-}
-
-void mf_callback_item_remove_from_shortcut_cb(void *data, Evas_Object *obj, void *event_info)
-{
-       MF_TRACE_BEGIN;
-       mf_retm_if(data == NULL, "data is NULL");
-       mf_list_data_t *item_data = (mf_list_data_t *) data;
-       struct appdata *ap = (struct appdata *)item_data->ap;
-       mf_retm_if(ap == NULL, "ap is NULL");
-
-       SAFE_FREE_OBJ(ap->mf_MainWindow.pLongpressPopup);
-       ap->mf_MainWindow.pNormalPopup = mf_popup_create_popup(ap,
-                                                               POPMODE_TEXT_TWO_BTN,
-                                                               MF_LABEL_REMOVE_SHORTCUT,
-                                                               MF_LABEL_REMOVE_FROM_SHORTCUT,
-                                                               LABEL_CANCEL,
-                                                               MF_LABEL_REMOVE,
-                                                               NULL,
-                                                               __mf_callback_shortcut_confirm_delete,
-                                                               item_data);
-       MF_TRACE_END;
-}
-
 static void __mf_callback_recent_files_confirm_delete(void *data, Evas_Object *obj, void *event_info)
 {
        mf_retm_if(data == NULL, "data is NULL");
@@ -4318,124 +4043,6 @@ void mf_callback_setting_cb(void *data, Evas_Object *obj, void *event_info)
        MF_TRACE_END;
 }
 
-static void mf_callback_shortcut_rename_save_cb(void *data, Evas_Object *obj, void *event_info)
-{
-       MF_TRACE_BEGIN;
-       mfItemData_s *item_data = (mfItemData_s *)data;
-       mf_retm_if(item_data == NULL, "ap is NULL");
-       struct appdata *ap = (struct appdata *)item_data->ap;
-       mf_retm_if(ap == NULL, "ap is NULL");
-
-       char *name = NULL;
-       Evas_Object *pEntry = NULL;
-       const char *entry_data = NULL;
-       int ret = MYFILE_ERR_NONE;
-       const char *message = NULL;
-       char *pName = NULL;
-       char *strstrip_name = NULL;
-       if (ap->mf_Status.more != MORE_THUMBNAIL_RENAME) {
-               MF_TRACE_END;
-               return;
-       }
-
-       pEntry = ap->mf_MainWindow.pEntry;
-
-       entry_data = elm_entry_entry_get(pEntry);
-       if (entry_data) {
-               strstrip_name = elm_entry_markup_to_utf8(entry_data);
-               name = g_strstrip(strstrip_name);
-               if (name == NULL) {
-                       message = MF_RENAME_MSG_GET_NAME_FAILED;
-                       goto INVAILD_NAME_EXIT;
-               }
-               if (strlen(name)==0) {
-                       message = MF_POPUP_MSG_NAME_INVALID;    /*TODO */
-                       goto INVAILD_NAME_EXIT;
-               }
-               if (strlen(name) == 0) {
-                       SAFE_FREE_CHAR(strstrip_name);
-                       goto INVAILD_NAME_EXIT;
-               }
-       } else {
-               message = MF_RENAME_MSG_GET_NAME_FAILED;
-               goto INVAILD_NAME_EXIT;
-       }
-
-       if (strlen(name)) {
-               pName = g_strdup(name);
-               CHAR_CHECK_NULL_GOTO(pName, ALLOC_FAILED_EXIT);
-
-               switch (mf_util_is_valid_name_check(pName)) {
-
-               case MF_INTERNAL_FILE_NAME_EMPTY:
-               case MF_INTERNAL_FILE_NAME_IGNORE:
-                       message = MF_MSG_SET_NAME_DOT;
-                       goto INVAILD_NAME_EXIT;
-               case MF_INTERNAL_FILE_NAME_CHUG:
-                       message = MF_MSG_SET_NAME_ALL_SPACE;
-                       goto INVAILD_NAME_EXIT;
-               case MF_INTERNAL_FILE_NAME_MAX_LENGTH:
-                       message = MF_LABEL_MAX_CHARACTER_REACHED;
-                       goto INVAILD_NAME_EXIT;
-               case MF_INTERNAL_FILE_NAME_INVALID_CHAR:
-                       message = MF_MSG_ILLEGAL_CHAR;
-                       goto INVAILD_NAME_EXIT;
-               case MF_INTERNAL_FILE_NAME_NULL:
-                       message = MF_MSG_NO_NAME_WARNING;
-                       goto INVAILD_NAME_EXIT;
-               default:
-                       break;
-               }
-               bool find = mf_util_db_find_shortcut_display_name(ap->mf_MainWindow.mfd_handle, pName);
-               if (find) {
-                       message = MF_LABE_POP_ALREADY_EXISTS;
-                       goto INVAILD_NAME_EXIT;
-               }
-
-               ret = mf_media_shortcut_update_name(ap->mf_MainWindow.mfd_handle, pName, item_data->m_ItemName->str);
-               if (ret != MFD_ERROR_NONE) {
-                       message = MF_MSG_UNKNOW_REASON_RENAME_FAILED;
-                       goto INVAILD_NAME_EXIT;
-               } else {
-                       elm_object_focus_set(ap->mf_MainWindow.pEntry, EINA_FALSE);
-                       evas_object_del(ap->mf_MainWindow.pEntry);
-                       ap->mf_MainWindow.pEntry = NULL;
-                       elm_genlist_item_update(item_data->item);
-                       SAFE_FREE_OBJ(ap->mf_MainWindow.pNewFolderPopup);
-                       mf_view_state_reset_state_with_pre(ap);
-                       goto NORMAL_EXIT;
-               }
-       } else {
-               goto NORMAL_EXIT;
-       }
-NORMAL_EXIT:
-       if (ap->mf_Status.view_type == mf_view_root)
-               elm_naviframe_item_title_enabled_set(ap->mf_MainWindow.pNaviItem, EINA_FALSE, EINA_FALSE);
-       SAFE_FREE_CHAR(strstrip_name);
-       SAFE_FREE_CHAR(pName);
-       MF_TRACE_END;
-       return;
-
-INVAILD_NAME_EXIT:
-       SAFE_FREE_CHAR(strstrip_name);
-       SAFE_FREE_CHAR(pName);
-       mf_callback_entry_unfocus(ap->mf_MainWindow.pEntry);
-       mf_popup_second_popup_create(ap, ap->mf_MainWindow.pWindow, message,
-                                    MF_BUTTON_LABEL_OK, mf_popup_show_vk_cb, ap);
-
-
-       MF_TRACE_END;
-       return;
-
-ALLOC_FAILED_EXIT:
-       SAFE_FREE_CHAR(strstrip_name);
-       SAFE_FREE_CHAR(pName);
-       mf_util_operation_alloc_failed(ap);
-       MF_TRACE_END;
-       return;
-
-}
-
 void mf_callback_item_storage_usage_cb(void *data, Evas_Object *obj, void *event_info)
 {
        MF_TRACE_BEGIN;
index 5c63277..6203739 100755 (executable)
@@ -113,7 +113,6 @@ static void __mf_callback_dir_pipe_cb(void *data, void *buffer, unsigned int nby
            || ap->mf_Status.more == MORE_EDIT
            || ap->mf_Status.more == MORE_EDIT_COPY
            || ap->mf_Status.more == MORE_EDIT_MOVE
-           || ap->mf_Status.more == MORE_EDIT_ADD_SHORTCUT
            || ap->mf_Status.more == MORE_EDIT_DELETE
            || ap->mf_Status.more == MORE_THUMBNAIL_RENAME
              || ap->mf_Status.more == MORE_EDIT_DETAIL)) {
index 6aea114..6dd03e6 100755 (executable)
@@ -53,7 +53,6 @@
 #define MF_EXTENSION_STATE  "extension_state"
 #define MF_HIDDEN_STATE                "hiden_state"
 #define MF_RECENT_FILE         "recent_file"
-#define MF_SHORTCUT                "shortcut"
 
 #define MF_VIBRATION_DEVICE     0
 #define MF_VIBRATION_DURATION   500
@@ -699,16 +698,15 @@ void mf_util_normal_item_data_free(mfItemData_s **item_data)
 void do_list_pointer_protect(Eina_List *list)
 {
        struct appdata *ap =  mf_get_appdata();
-    
-       /*mf_warning("list =  %p", list);
-       mf_warning("ap->search_result_folder_list =  %p", ap->mf_FileOperation.search_result_folder_list);
-       mf_warning("ap->search_result_file_list =  %p", ap->mf_FileOperation.search_result_file_list);
-       mf_warning("ap->folder_list =  %p", ap->mf_FileOperation.folder_list);
-       mf_warning("ap->file_list =  %p", ap->mf_FileOperation.file_list);
-       mf_warning("ap->category_list =  %p", ap->mf_FileOperation.category_list);
-       mf_warning("ap->recent_list =  %p", ap->mf_FileOperation.recent_list);
-       mf_warning("ap->shortcut_list =  %p", ap->mf_FileOperation.shortcut_list);*/
-       
+
+       /*mf_warning("list = %p", list);
+       mf_warning("ap->search_result_folder_list = %p", ap->mf_FileOperation.search_result_folder_list);
+       mf_warning("ap->search_result_file_list = %p", ap->mf_FileOperation.search_result_file_list);
+       mf_warning("ap->folder_list = %p", ap->mf_FileOperation.folder_list);
+       mf_warning("ap->file_list = %p", ap->mf_FileOperation.file_list);
+       mf_warning("ap->category_list = %p", ap->mf_FileOperation.category_list);
+       mf_warning("ap->recent_list = %p", ap->mf_FileOperation.recent_list);*/
+
        if (list==ap->mf_FileOperation.search_result_folder_list)
                ap->mf_FileOperation.search_result_folder_list = NULL;
        if (list==ap->mf_FileOperation.search_result_file_list)
@@ -721,8 +719,6 @@ void do_list_pointer_protect(Eina_List *list)
                ap->mf_FileOperation.category_list = NULL;
        if (list==ap->mf_FileOperation.recent_list)
                ap->mf_FileOperation.recent_list = NULL;
-       if (list==ap->mf_FileOperation.shortcut_list)
-               ap->mf_FileOperation.shortcut_list = NULL;
 
 }
 
@@ -1122,22 +1118,6 @@ void mf_util_set_recent_file(char *path)
     return;
 }
 
-
-char *mf_util_get_shortcut()
-{
- //   int ret = -1;
-    char *shortcut = NULL;
-
-    preference_get_string(MF_SHORTCUT, &shortcut);
-    if (shortcut == NULL || strlen(shortcut) == 0) {
-        mf_debug("shortcut is null");
-        return NULL;
-    }
-    mf_debug("shortcut : %s", shortcut);
-
-    return shortcut;
-}
-
 bool mf_util_db_get_recent_files_cb(MFRitem *Ritem, void *user_data)
 {
        struct appdata *ap = (struct appdata *)user_data;
@@ -1167,46 +1147,6 @@ void mf_util_db_remove_recent_files(MFDHandle *handle, char *recent_file)
        mf_media_delete_recent_files(handle, recent_file);
 }
 
-bool mf_util_db_get_shortcut_cb(MFSitem *Sitem, void *user_data)
-{
-       struct appdata *ap = (struct appdata *)user_data;
-       if (Sitem && Sitem->path) {
-               if (mf_file_exists(Sitem->path)) {
-                       mf_util_generate_list(&ap->mf_FileOperation.shortcut_list, g_strdup(Sitem->path), FILE_TYPE_DIR, mf_list_shortcut);
-               } else {
-                       mf_media_delete_shortcut(ap->mf_MainWindow.mfd_handle, Sitem->path);
-               }
-       }
-       return true;
-}
-
-void mf_util_db_get_shortcut_files(MFDHandle *handle, void *data)
-{
-       mf_media_foreach_shortcut_list(handle, mf_util_db_get_shortcut_cb, data);
-}
-
-bool mf_util_db_find_shortcut(MFDHandle *handle, const char *path, const char *name, int storage)
-{
-       int find = mf_media_find_shortcut(handle, path, name, storage);
-       return (find == 1?true:false);
-}
-
-bool mf_util_db_find_shortcut_display_name(MFDHandle *handle, const char *name)
-{
-       int find = mf_media_find_shortcut_display_name(handle, name);
-       return (find == 1?true:false);
-}
-
-void mf_util_db_add_shortcut(MFDHandle *handle, const char *path, const char *name, int storage)
-{
-       mf_media_add_shortcut(handle, path, name, storage);
-}
-
-void mf_util_db_remove_shortcut(MFDHandle *handle, char *shortcut)
-{
-       mf_media_delete_shortcut(handle, shortcut);
-}
-
 void mf_util_generate_saved_files_list(void *data, int type)
 {
        struct appdata *ap = (struct appdata *)data;
@@ -1214,9 +1154,6 @@ void mf_util_generate_saved_files_list(void *data, int type)
        case mf_list_recent_files:
                mf_util_db_get_recent_files(ap->mf_MainWindow.mfd_handle, data);
                break;
-       case mf_list_shortcut:
-               mf_util_db_get_shortcut_files(ap->mf_MainWindow.mfd_handle, data);
-               break;
        }
 }
 
index 9787ac2..9886caf 100755 (executable)
 #define MF_DB_NAME  "/opt/usr/apps/org.tizen.myfile/data/.myfile_media.db"
 
 #define MF_PRAGMA_FOREIGN_KEYS_ON               "PRAGMA foreign_keys = ON;"
-#define MF_SELECT_FROM_SHORTCUT_TABLE           "SELECT * FROM %s WHERE (%s='%q' and %s=%d );"
-#define MF_SELECT_DISPLAY_NAME_FROM_SHORTCUT_TABLE                     "SELECT * FROM %s WHERE (%s='%q');"
-#define MF_INSERT_INTO_SHORTCUT_TABLE           "INSERT INTO %s (%s, %s, %s) VALUES ('%q', %Q, %d);"
-#define MF_DELETE_FROM_SHORTCUT_TABLE           "DELETE FROM %s WHERE %s = '%q';"
-#define MF_DELETE_BY_TYPE_FROM_SHORTCUT_TABLE   "DELETE FROM %s WHERE %s = %d;"
-#define MF_SELECT_SHORTCUT_TABLE                               "SELECT * FROM %s;"
-#define MF_SELECT_SHORTCUT_COUNT_TABLE          "SELECT count(*) FROM %s;"
-#define MF_SELECT_SHORTCUT_NAME                                    "SELECT %s FROM %s where %s = '%q';"
-#define MF_UPDATE_SHORTCUT_NAME                                    "UPDATE %s SET %s = '%q' WHERE (%s = '%q');"
 #define MF_INSERT_INTO_RECENT_FILES_TABLE       "INSERT INTO %s (%s, %s, %s, %s) VALUES (?, ?, ?, ?);"
 #define MF_DELETE_FROM_RECENT_FILES_TABLE       "DELETE FROM %s WHERE %s = '%q';"
 #define MF_UPDATE_SET_RECENT_FILES_TABLE               "UPDATE %s SET %s = '%q' WHERE (%s = '%q');"
 #define MF_DELETE_ALL_FROM_TABLE                           "DELETE FROM %s;"
 #define MF_DELETE_BY_TYPE_FROM_RECENT_FILES_TABLE   "DELETE FROM %s WHERE %s = %d;"
 #define MF_SELECT_FROM_RECENT_FILE_TABLE               "SELECT * FROM %s WHERE (%s='%q');"
-//#define MF_SELECT_FROM_SHORTCUT_TABLE                        "SELECT * FROM %s WHERE (%s='%q' and %s=%Q and %s=%d );"
-
 static sqlite3_callback sqlite3_func = NULL;
 static void *func_params = NULL;
 
-static void __mf_media_db_cb_set(sqlite3_callback func)
-{
-       sqlite3_func = func;
-}
-
-static void __mf_media_db_cb_params_set(void *params)
-{
-       func_params = params;
-}
-
 typedef enum {
        MF_TABLE_NONE = -1,
-       MF_TABLE_SHORTCUT,
        MF_TABLE_RECENT_FILES,
        MF_TABLE_NUM,
 } mf_tbl_name_e;
 
 typedef enum {
-       MF_FIELD_SHORTCUT_NONE          = -1,
-       MF_FIELD_SHORTCUT_PATH,
-       MF_FIELD_SHORTCUT_NAME,
-       MF_FIELD_SHORTCUT_STORAGE_TYPE,
-       MF_FIELD_SHORTCUT_NUM,
-} mf_field_shortcut_e;
-
-typedef enum {
        MF_FIELD_RECENT_FILES_NONE              = -1,
        MF_FIELD_RECENT_FILES_PATH,
        MF_FIELD_RECENT_FILES_NAME,
@@ -100,15 +70,6 @@ typedef struct {
 
 mf_tbl_s mf_tbl[MF_TABLE_NUM] = 
 {
-    {"shortcut", 
-        {
-            {"path", ""}       /* PK */
-            ,
-                {"name", ""}   /* PK */
-            ,
-                {"storage_type", ""}   /* PK */
-        }
-    },
     {"recent_files", 
         {
             {"path", ""}       /* PK */
@@ -122,20 +83,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);
@@ -323,50 +270,6 @@ static int __mf_sqlite3_rollback_trans(MFDHandle *mfd_handle)
        return 0;
 }
 
-static void __mf_convert_shortcut_column_to_sitem(sqlite3_stmt *stmt, MFSitem *sitem)
-{
-       char *textbuf = NULL;
-       int storage_type = 0;
-
-       textbuf = __mf_query_table_column_text(stmt, MF_FIELD_SHORTCUT_PATH);
-       __mf_data_to_text(textbuf, &(sitem->path));
-
-
-       storage_type = __mf_query_table_column_int(stmt, MF_FIELD_SHORTCUT_STORAGE_TYPE);
-       sitem->storage_type = storage_type;
-}
-
-static void __mf_convert_shortcut_display_name(void *data, int column, char **column_value, char **column_name)
-{
-       char *display_name = NULL;
-
-       display_name = __mf_query_table_column_text(data, 0);
-       mf_error("========== display name is [%s]", display_name);
-       if (display_name && func_params) {
-               char **result = (char **)func_params;
-               *result = g_strdup(display_name);
-       }
-}
-
-static void __mf_foreach_shortcut_sitem_cb(mf_shortcut_item_cb callback, void *data, void *user_data)
-{
-       Eina_List *list = (Eina_List *)data;
-       Eina_List *iter = NULL;
-
-       for (iter = list; iter != NULL; iter = eina_list_next(iter)) {
-               MFSitem *sitem = NULL;
-               sitem = (MFSitem *)iter->data;
-
-               if (callback(sitem, user_data) == FALSE)
-                       break;
-       }
-}
-
-static void __mf_free_shortcut_list(void *data)
-{
-       mf_destroy_shortcut_item(data);
-}
-
 static void __mf_convert_recent_files_column_to_citem(sqlite3_stmt *stmt, MFRitem *ritem)
 {
        char *textbuf = NULL;
@@ -473,483 +376,6 @@ int mf_disconnect_db_with_handle(sqlite3 *db_handle)
        return MFD_ERROR_NONE;
 }
 
-//1 Shortcut
-
-int mf_update_shortcut(MFDHandle *mfd_handle,const char *new_name, char *old_name)
-{
-       if (new_name == NULL) {
-               mf_debug("device_id is null");
-               return MFD_ERROR_INVALID_PARAMETER;
-       }
-
-       mf_error("mf_update_shortcut");
-       int err = -1;
-       mf_tbl_field_s *mf_tbl_field;
-       char *query_string = NULL;
-       mf_tbl_name_e field_seq = MF_TABLE_SHORTCUT;
-       mf_tbl_field = mf_tbl[field_seq].mf_tbl_field;
-
-
-       query_string =
-           sqlite3_mprintf(MF_UPDATE_FAVORATE_FILES_TABLE,
-                           mf_tbl[field_seq].table_name,
-                           //mf_tbl_field[MF_FIELD_SHORTCUT_PATH].field_name,
-                           mf_tbl_field[MF_FIELD_SHORTCUT_PATH].field_name,
-                           new_name,
-                           mf_tbl_field[MF_FIELD_SHORTCUT_PATH].field_name,
-                           old_name);
-
-       err = __mf_query_sql(mfd_handle, query_string);
-       sqlite3_free(query_string);
-
-       if (err < 0) {
-               mf_debug("Inserting device table failed\n");
-               mf_debug("query string is %s\n", query_string);
-               return MFD_ERROR_DB_INTERNAL;
-       }
-
-       return MFD_ERROR_NONE;
-}
-
-/* No shortcut : 0, find Shortcut : 1 */
-int mf_find_shortcut(MFDHandle *mfd_handle, const char *shortcut_path, const char *shortcut_name,
-                     int storage_type)
-{
-       mf_debug("");
-
-       if (shortcut_path == NULL) {
-               mf_debug("device_id is null");
-               return MFD_ERROR_INVALID_PARAMETER;
-       }
-
-       mf_tbl_field_s *mf_tbl_field;
-       char *query_string = NULL;
-       mf_tbl_name_e field_seq = MF_TABLE_SHORTCUT;
-       mf_tbl_field = mf_tbl[field_seq].mf_tbl_field;
-       sqlite3_stmt *stmt = NULL;
-       int rc = 0;
-       int find = 0;
-       query_string = sqlite3_mprintf(MF_SELECT_FROM_SHORTCUT_TABLE,
-                               mf_tbl[field_seq].table_name,
-                           mf_tbl_field[MF_FIELD_SHORTCUT_PATH].field_name,
-                           shortcut_path,
-                          // mf_tbl_field[MF_FIELD_SHORTCUT_NAME].field_name,
-                          // shortcut_name,
-                           mf_tbl_field[MF_FIELD_SHORTCUT_STORAGE_TYPE].field_name,
-                           storage_type);
-
-       mf_debug("Query : %s", query_string);
-
-       rc = sqlite3_prepare_v2(mfd_handle, query_string, strlen(query_string), &stmt, NULL);
-       sqlite3_free(query_string);
-       if (SQLITE_OK != rc) {
-               mf_debug("failed to query[%s]", sqlite3_errmsg(mfd_handle));
-               mf_debug("Query fails : query_string[%s]", query_string);
-               return find;
-       }
-
-       rc = sqlite3_step(stmt);
-       if (SQLITE_ROW != rc) {
-               mf_debug("No result");
-               rc = sqlite3_finalize(stmt);
-               if (SQLITE_OK != rc) {
-                       mf_debug("sqlite3_finalize fail, rc : %d, db_error : %s", rc, sqlite3_errmsg(mfd_handle));
-               }
-               return find;
-       }
-
-       while (SQLITE_ROW == rc) {
-               mf_debug("Find a same shorcut");
-               find = 1;
-               rc = sqlite3_step(stmt);
-       }
-
-       rc = sqlite3_finalize(stmt);
-       if (SQLITE_OK != rc) {
-               mf_debug("sqlite3_finalize fail, rc : %d, db_error : %s", rc, sqlite3_errmsg(mfd_handle));
-       }
-       return find;
-}
-
-int mf_find_shortcut_display_name(MFDHandle *mfd_handle,const char *shortcut_name)
-{
-       mf_debug("");
-
-       if (shortcut_name == NULL) {
-               mf_debug("shortcut_name is null");
-               return MFD_ERROR_INVALID_PARAMETER;
-       }
-
-       mf_tbl_field_s *mf_tbl_field;
-       char *query_string = NULL;
-       mf_tbl_name_e field_seq = MF_TABLE_SHORTCUT;
-       mf_tbl_field = mf_tbl[field_seq].mf_tbl_field;
-       sqlite3_stmt *stmt = NULL;
-       int rc = 0;
-       int find = 0;
-       query_string = sqlite3_mprintf(MF_SELECT_DISPLAY_NAME_FROM_SHORTCUT_TABLE,
-                               mf_tbl[field_seq].table_name,
-                           mf_tbl_field[MF_FIELD_SHORTCUT_NAME].field_name,
-                           shortcut_name);
-
-       mf_debug("Query : %s", query_string);
-
-       rc = sqlite3_prepare_v2(mfd_handle, query_string, strlen(query_string), &stmt, NULL);
-       sqlite3_free(query_string);
-       if (SQLITE_OK != rc) {
-               mf_debug("failed to query[%s]", sqlite3_errmsg(mfd_handle));
-               mf_debug("Query fails : query_string[%s]", query_string);
-               return find;
-       }
-
-       rc = sqlite3_step(stmt);
-       if (SQLITE_ROW != rc) {
-               mf_debug("No result");
-               rc = sqlite3_finalize(stmt);
-               if (SQLITE_OK != rc) {
-                       mf_debug("sqlite3_finalize fail, rc : %d, db_error : %s", rc, sqlite3_errmsg(mfd_handle));
-               }
-               return find;
-       }
-
-       while (SQLITE_ROW == rc) {
-               mf_debug("Find a same shorcut");
-               find = 1;
-               rc = sqlite3_step(stmt);
-       }
-
-       rc = sqlite3_finalize(stmt);
-       if (SQLITE_OK != rc) {
-               mf_debug("sqlite3_finalize fail, rc : %d, db_error : %s", rc, sqlite3_errmsg(mfd_handle));
-       }
-       return find;
-}
-
-int mf_insert_shortcut(MFDHandle *mfd_handle, const char *shortcut_path, const char *shortcut_name, int storage_type)
-{
-       mf_debug("");
-
-       if (shortcut_path == NULL) {
-               mf_debug("device_id is null");
-               return MFD_ERROR_INVALID_PARAMETER;
-       }
-
-       int err = -1;
-       mf_tbl_field_s *mf_tbl_field;
-       char *query_string = NULL;
-       mf_tbl_name_e field_seq = MF_TABLE_SHORTCUT;
-       mf_tbl_field = mf_tbl[field_seq].mf_tbl_field;
-
-
-       query_string =
-           sqlite3_mprintf(MF_INSERT_INTO_SHORTCUT_TABLE,
-                           mf_tbl[field_seq].table_name,
-                           mf_tbl_field[MF_FIELD_SHORTCUT_PATH].field_name,
-                           mf_tbl_field[MF_FIELD_SHORTCUT_NAME].field_name,
-                           mf_tbl_field[MF_FIELD_SHORTCUT_STORAGE_TYPE].field_name,
-                           shortcut_path,
-                           shortcut_name,
-                           storage_type);
-
-       mf_debug("Query : %s", query_string);
-
-       err = __mf_query_sql(mfd_handle, query_string);
-       sqlite3_free(query_string);
-
-       if (err < 0) {
-               mf_debug("Inserting device table failed\n");
-               mf_debug("query string is %s\n", query_string);
-               return MFD_ERROR_DB_INTERNAL;
-       }
-
-       return MFD_ERROR_NONE;
-}
-
-int mf_delete_shortcut(MFDHandle *mfd_handle, const char *shortcut_path)
-{
-       mf_debug("");
-
-       if (shortcut_path == NULL) {
-               mf_debug("shortcut_path is null");
-               return MFD_ERROR_INVALID_PARAMETER;
-       }
-
-       int err = -1;
-       mf_tbl_field_s *mf_tbl_field;
-       char *query_string = NULL;
-       mf_tbl_name_e field_seq = MF_TABLE_SHORTCUT;
-       mf_tbl_field = mf_tbl[field_seq].mf_tbl_field;
-
-       query_string =
-           sqlite3_mprintf(MF_DELETE_FROM_SHORTCUT_TABLE,
-                           mf_tbl[field_seq].table_name,
-                           mf_tbl_field[MF_FIELD_SHORTCUT_PATH].field_name,
-                           shortcut_path);
-
-       mf_debug("Query : %s", query_string);
-
-       err = __mf_sqlite3_begin_trans(mfd_handle);
-       if (err < 0) {
-               mf_debug("gm_sqlite3_begin_trans failed");
-               return err;
-       }
-
-       err = __mf_query_sql(mfd_handle, query_string);
-       sqlite3_free(query_string);
-
-       if (err < 0) {
-               mf_debug("delete content by content_id failed.. Now start to rollback");
-               __mf_sqlite3_rollback_trans(mfd_handle);
-               return err;
-       }
-
-       err = __mf_sqlite3_commit_trans(mfd_handle);
-       if (err < 0) {
-               mf_debug("gm_sqlite3_commit_trans failed.. Now start to rollback\n");
-               __mf_sqlite3_rollback_trans(mfd_handle);
-               return err;
-       }
-
-       return MFD_ERROR_NONE;
-}
-
-int mf_delete_shortcut_by_type(MFDHandle *mfd_handle, int storage_type)
-{
-       mf_debug("");
-
-       int err = -1;
-       mf_tbl_field_s *mf_tbl_field;
-       char *query_string = NULL;
-       mf_tbl_name_e field_seq = MF_TABLE_SHORTCUT;
-       mf_tbl_field = mf_tbl[field_seq].mf_tbl_field;
-
-       query_string =
-           sqlite3_mprintf(MF_DELETE_BY_TYPE_FROM_SHORTCUT_TABLE,
-                           mf_tbl[field_seq].table_name,
-                           mf_tbl_field[MF_FIELD_SHORTCUT_STORAGE_TYPE].field_name,
-                           storage_type);
-
-       mf_debug("Query : %s", query_string);
-
-       err = __mf_sqlite3_begin_trans(mfd_handle);
-       if (err < 0) {
-               mf_debug("gm_sqlite3_begin_trans failed");
-               return err;
-       }
-
-       err = __mf_query_sql(mfd_handle, query_string);
-       sqlite3_free(query_string);
-
-       if (err < 0) {
-               mf_debug("delete content by content_id failed.. Now start to rollback");
-               __mf_sqlite3_rollback_trans(mfd_handle);
-               return err;
-       }
-
-       err = __mf_sqlite3_commit_trans(mfd_handle);
-       if (err < 0) {
-               mf_debug("gm_sqlite3_commit_trans failed.. Now start to rollback\n");
-               __mf_sqlite3_rollback_trans(mfd_handle);
-               return err;
-       }
-
-       return MFD_ERROR_NONE;
-}
-
-int mf_foreach_shortcut_list(MFDHandle *mfd_handle, mf_shortcut_item_cb callback, void *user_data)
-{
-       mf_debug("Enter");
-
-       char *query_string = NULL;
-       mf_tbl_name_e field_seq = MF_TABLE_SHORTCUT;
-       sqlite3_stmt *stmt = NULL;
-       int rc = 0;
-
-       query_string =
-           sqlite3_mprintf(MF_SELECT_SHORTCUT_TABLE,
-                           mf_tbl[field_seq].table_name);
-
-       mf_debug("Query : %s", query_string);
-
-       rc = sqlite3_prepare_v2(mfd_handle, query_string, strlen(query_string), &stmt, NULL);
-       sqlite3_free(query_string);
-       if (SQLITE_OK != rc) {
-               mf_debug("failed to query[%s]", sqlite3_errmsg(mfd_handle));
-               mf_debug("Query fails : query_string[%s]", query_string);
-               return MFD_ERROR_DB_INTERNAL;
-       }
-
-       rc = sqlite3_step(stmt);
-       if (SQLITE_ROW != rc) {
-               mf_debug("No result");
-               rc = sqlite3_finalize(stmt);
-               if (SQLITE_OK != rc) {
-                       mf_debug("sqlite3_finalize fail, rc : %d, db_error : %s", rc, sqlite3_errmsg(mfd_handle));
-               }
-               return MFD_ERROR_DB_NO_RECORD;
-       }
-
-       Eina_List *shortcut_list = NULL;
-       MFSitem *sitem= NULL;
-
-       while (SQLITE_ROW == rc) {
-               sitem = (MFSitem *)calloc(1, sizeof(MFSitem));
-               if (sitem) {
-                       __mf_convert_shortcut_column_to_sitem(stmt, sitem);
-                       shortcut_list = eina_list_append(shortcut_list, sitem);
-               }
-               rc = sqlite3_step(stmt);
-               mf_debug("");
-       }
-
-       rc = sqlite3_finalize(stmt);
-       if (SQLITE_OK != rc) {
-               mf_debug("sqlite3_finalize fail, rc : %d, db_error : %s", rc, sqlite3_errmsg(mfd_handle));
-       }
-
-       __mf_foreach_shortcut_sitem_cb(callback, shortcut_list, user_data);
-
-       if (shortcut_list) {
-               __mf_media_db_eina_list_free_full(&shortcut_list, __mf_free_shortcut_list);
-       }
-
-       return MFD_ERROR_NONE;
-}
-
-int mf_get_short_count(MFDHandle *mfd_handle, int *count)
-{
-       mf_debug("");
-
-       char *query_string = NULL;
-       mf_tbl_name_e field_seq = MF_TABLE_SHORTCUT;
-       sqlite3_stmt *stmt = NULL;
-       int rc = 0;
-
-       query_string =
-           sqlite3_mprintf(MF_SELECT_SHORTCUT_COUNT_TABLE,
-                           mf_tbl[field_seq].table_name);
-
-       mf_debug("Query : %s", query_string);
-
-       rc = sqlite3_prepare_v2(mfd_handle, query_string, strlen(query_string), &stmt, NULL);
-       sqlite3_free(query_string);
-       if (SQLITE_OK != rc) {
-               mf_debug("failed to query[%s]", sqlite3_errmsg(mfd_handle));
-               mf_debug("Query fails : query_string[%s]", query_string);
-               return MFD_ERROR_DB_INTERNAL;
-       }
-
-       rc = sqlite3_step(stmt);
-       if (SQLITE_ROW != rc) {
-               mf_debug("No result");
-               rc = sqlite3_finalize(stmt);
-               if (SQLITE_OK != rc) {
-                       mf_debug("sqlite3_finalize fail, rc : %d, db_error : %s", rc, sqlite3_errmsg(mfd_handle));
-               }
-               *count = 0;
-               return MFD_ERROR_DB_NO_RECORD;
-       }
-
-       *count = sqlite3_column_int(stmt, 0);
-       mf_debug("count : %d", *count);
-
-       rc = sqlite3_finalize(stmt);
-       if (SQLITE_OK != rc) {
-               mf_debug("sqlite3_finalize fail, rc : %d, db_error : %s", rc, sqlite3_errmsg(mfd_handle));
-       }
-
-       return MFD_ERROR_NONE;
-}
-
-int mf_get_shortcut_display_name(MFDHandle *mfd_handle, const char *fullpath, char **name)
-{
-       int err = -1;
-       mf_tbl_field_s *mf_tbl_field;
-       char *query_string = NULL;
-       mf_tbl_name_e field_seq = MF_TABLE_SHORTCUT;
-       mf_tbl_field = mf_tbl[field_seq].mf_tbl_field;
-
-       __mf_media_db_cb_set((sqlite3_callback)__mf_convert_shortcut_display_name);
-       __mf_media_db_cb_params_set((void *)name);
-
-       query_string =
-           sqlite3_mprintf(MF_SELECT_SHORTCUT_NAME,
-                           mf_tbl_field[MF_FIELD_SHORTCUT_NAME].field_name,
-                           mf_tbl[field_seq].table_name,
-                           mf_tbl_field[MF_FIELD_SHORTCUT_PATH].field_name,
-                           fullpath);
-
-       mf_debug("Query : %s", query_string);
-
-       err = __mf_sqlite3_begin_trans(mfd_handle);
-       if (err < 0) {
-               mf_debug("gm_sqlite3_begin_trans failed");
-               __mf_media_db_cb_set(NULL);
-               __mf_media_db_cb_params_set(NULL);
-               return err;
-       }
-
-       err = __mf_query_sql(mfd_handle, query_string);
-       sqlite3_free(query_string);
-
-       if (err < 0) {
-               mf_debug("get shortcut display name failed.. Now start to rollback");
-               __mf_sqlite3_rollback_trans(mfd_handle);
-               __mf_media_db_cb_set(NULL);
-               __mf_media_db_cb_params_set(NULL);
-               return err;
-       }
-
-       err = __mf_sqlite3_commit_trans(mfd_handle);
-       if (err < 0) {
-               mf_debug("gm_sqlite3_commit_trans failed.. Now start to rollback\n");
-               __mf_sqlite3_rollback_trans(mfd_handle);
-               __mf_media_db_cb_set(NULL);
-               __mf_media_db_cb_params_set(NULL);
-               return err;
-       }
-       __mf_media_db_cb_set(NULL);
-       __mf_media_db_cb_params_set(NULL);
-
-       return MFD_ERROR_NONE;
-}
-
-int mf_update_shortcut_display_name(MFDHandle *mfd_handle,const char *new_name, const char *old_name)
-{
-       if (new_name == NULL) {
-               mf_debug("device_id is null");
-               return MFD_ERROR_INVALID_PARAMETER;
-       }
-
-       mf_error("mf_update_shortcut");
-       int err = -1;
-       mf_tbl_field_s *mf_tbl_field;
-       char *query_string = NULL;
-       mf_tbl_name_e field_seq = MF_TABLE_SHORTCUT;
-       mf_tbl_field = mf_tbl[field_seq].mf_tbl_field;
-
-
-       query_string =
-           sqlite3_mprintf(MF_UPDATE_FAVORATE_FILES_TABLE,
-                           mf_tbl[field_seq].table_name,
-                           //mf_tbl_field[MF_FIELD_SHORTCUT_PATH].field_name,
-                           mf_tbl_field[MF_FIELD_SHORTCUT_NAME].field_name,
-                           new_name,
-                           mf_tbl_field[MF_FIELD_SHORTCUT_PATH].field_name,
-                           old_name);
-
-       err = __mf_query_sql(mfd_handle, query_string);
-       sqlite3_free(query_string);
-
-       if (err < 0) {
-               mf_debug("Inserting device table failed\n");
-               mf_debug("query string is %s\n", query_string);
-               return MFD_ERROR_DB_INTERNAL;
-       }
-
-       return MFD_ERROR_NONE;
-}
-
 int mf_insert_recent_file(MFDHandle *mfd_handle, const char *path, const char *name, int storage_type, 
                           const char *thumbnail_path)
 {
@@ -1007,7 +433,7 @@ int mf_delete_recent_files(MFDHandle *mfd_handle, const char *path)
        mf_debug("");
 
        if (path == NULL) {
-               mf_debug("shortcut_path is null");
+               mf_debug("path is null");
                return MFD_ERROR_INVALID_PARAMETER;
        }
 
@@ -1153,7 +579,6 @@ int mf_update_recent_files_name(MFDHandle *mfd_handle,const char *new_name, char
        query_string =
            sqlite3_mprintf(MF_UPDATE_SET_RECENT_FILES_TABLE,
                            mf_tbl[field_seq].table_name,
-                           //mf_tbl_field[MF_FIELD_SHORTCUT_PATH].field_name,
                            mf_tbl_field[MF_FIELD_RECENT_FILES_PATH].field_name,
                            new_name,
                                mf_tbl_field[MF_FIELD_RECENT_FILES_PATH].field_name,
index fc6be01..9a0b645 100755 (executable)
@@ -49,90 +49,6 @@ int mf_media_disconnect(MFDHandle *handle)
        return mf_disconnect_db_with_handle(db_handle);
 }
 
-int mf_media_find_shortcut(MFDHandle *mfd_handle, const char *shortcut_path,
-               const char *shortcut_name, int storage_type)
-{
-       int find = 0;
-
-       if (mfd_handle == NULL) {
-               mf_debug("media service handle is NULL");
-               return MFD_ERROR_INVALID_PARAMETER;
-       }
-
-       find = mf_find_shortcut(mfd_handle, shortcut_path, shortcut_name, storage_type);
-
-       return find;
-}
-
-int mf_media_find_shortcut_display_name(MFDHandle *mfd_handle,const char *shortcut_name)
-{
-       int find = 0;
-
-       if (mfd_handle == NULL) {
-               mf_debug("media service handle is NULL");
-               return MFD_ERROR_INVALID_PARAMETER;
-       }
-
-       find = mf_find_shortcut_display_name(mfd_handle, shortcut_name);
-
-       return find;
-}
-
-int mf_media_add_shortcut(MFDHandle *mfd_handle, const char *shortcut_path,
-               const char *shortcut_name, int storage_type)
-{
-       int ret = MFD_ERROR_NONE;
-
-       if (mfd_handle == NULL) {
-               mf_debug("media service handle is NULL");
-               return MFD_ERROR_INVALID_PARAMETER;
-       }
-
-       ret = mf_insert_shortcut(mfd_handle, shortcut_path, shortcut_name, storage_type);
-        if (ret != MFD_ERROR_NONE) {
-               mf_debug("insert device info into devices table failed");
-               return ret;
-       }
-
-       return ret;
-}
-
-int mf_media_delete_shortcut(MFDHandle *mfd_handle, const char *path)
-{
-       int ret = MFD_ERROR_NONE;
-
-       if (mfd_handle == NULL) {
-               mf_debug("media service handle is NULL");
-               return MFD_ERROR_INVALID_PARAMETER;
-       }
-
-       ret = mf_delete_shortcut(mfd_handle, path);
-        if (ret != MFD_ERROR_NONE) {
-               mf_debug("delete device info into devices table failed");
-               return ret;
-       }
-
-       return ret;
-}
-
-int mf_media_delete_shortcut_by_type(MFDHandle *mfd_handle, int storage_type)
-{
-       int ret = MFD_ERROR_NONE;
-
-       if (mfd_handle == NULL) {
-               mf_debug("media service handle is NULL");
-               return MFD_ERROR_INVALID_PARAMETER;
-       }
-       ret = mf_delete_shortcut_by_type(mfd_handle, storage_type);
-
-        if (ret != MFD_ERROR_NONE) {
-               mf_debug("delete device info into devices table failed");
-               return ret;
-       }
-
-       return ret;
-}
-
 int mf_media_add_recent_files(MFDHandle *mfd_handle, const char *path, const char *name, int storage_type, const char *thumbnail_path)
 {
        int ret = MFD_ERROR_NONE;
@@ -207,63 +123,6 @@ int mf_media_update_recent_files_thumbnail(MFDHandle *mfd_handle, const char *th
 
 }
 
-int mf_media_foreach_shortcut_list(MFDHandle *mfd_handle, mf_shortcut_item_cb callback, void *user_data)
-{
-       int ret = MFD_ERROR_NONE;
-
-       if (mfd_handle == NULL) {
-               mf_debug("media service handle is NULL");
-               return MFD_ERROR_INVALID_PARAMETER;
-       }
-
-       ret = mf_foreach_shortcut_list(mfd_handle, callback, user_data);
-        if (ret != MFD_ERROR_NONE && ret != MFD_ERROR_DB_NO_RECORD) {
-               mf_debug
-                       ("foreach content list fail");
-               return ret;
-       }
-
-       return ret;
-}
-
-int mf_media_shortcut_list_get_display_name(MFDHandle *mfd_handle, const char *fullpath, char **name)
-{
-       int ret = MFD_ERROR_NONE;
-
-       if (mfd_handle == NULL) {
-               mf_debug("media service handle is NULL");
-               return MFD_ERROR_INVALID_PARAMETER;
-       }
-
-       ret = mf_get_shortcut_display_name(mfd_handle, fullpath, name);
-        if (ret != MFD_ERROR_NONE) {
-               mf_debug
-                       ("update device icon failed");
-               return ret;
-       }
-
-       return ret;
-}
-int mf_media_shortcut_update_name(MFDHandle *mfd_handle, char *name, const char *fullpath)
-{
-       int ret = MFD_ERROR_NONE;
-
-       if (mfd_handle == NULL) {
-               mf_debug("media service handle is NULL");
-               return MFD_ERROR_INVALID_PARAMETER;
-       }
-
-       ret = mf_update_shortcut_display_name(mfd_handle, name, fullpath);
-        if (ret != MFD_ERROR_NONE) {
-               mf_debug
-                       ("update device icon failed");
-               return ret;
-       }
-
-       return ret;
-}
-
-
 int mf_media_foreach_recent_files_list(MFDHandle *mfd_handle, mf_recent_files_item_cb callback, void *user_data)
 {
        int ret = MFD_ERROR_NONE;
@@ -282,25 +141,6 @@ int mf_media_foreach_recent_files_list(MFDHandle *mfd_handle, mf_recent_files_it
        return ret;
 }
 
-int mf_media_get_short_count(MFDHandle *mfd_handle, int *count)
-{
-       int ret = MFD_ERROR_NONE;
-
-       if (mfd_handle == NULL) {
-               mf_debug("media service handle is NULL");
-               return MFD_ERROR_INVALID_PARAMETER;
-       }
-
-       ret = mf_get_short_count(mfd_handle, count);
-        if (ret != MFD_ERROR_NONE && ret != MFD_ERROR_DB_NO_RECORD) {
-               mf_debug
-                       ("foreach content list fail");
-               return ret;
-       }
-
-       return ret;
-}
-
 int mf_media_get_recent_files_count(MFDHandle *mfd_handle, int *count)
 {
        int ret = MFD_ERROR_NONE;
@@ -320,26 +160,6 @@ int mf_media_get_recent_files_count(MFDHandle *mfd_handle, int *count)
        return ret;
 }
 
-
-
-int mf_destroy_shortcut_item(MFSitem *sitem)
-{
-       if (sitem == NULL) {
-               mf_debug("ditem is NULL");
-               return MFD_ERROR_INVALID_PARAMETER;
-       }
-       if (sitem->path) {
-               free(sitem->path);
-               sitem->path = NULL;
-       }
-       if (sitem->name) {
-               free(sitem->name);
-               sitem->name = NULL;
-       }
-
-       return MFD_ERROR_NONE;
-}
-
 int mf_destroy_recent_files_item(MFRitem *ritem)
 {
        if (ritem == NULL) {
index 3afa332..32f17ae 100755 (executable)
@@ -916,7 +916,6 @@ static void __mf_language_changed_cb(app_event_info_h event_info, void *user_dat
                || 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_EDIT_UNINSTALL
 
index c185def..a9ca74d 100755 (executable)
@@ -82,7 +82,6 @@ static void __mf_category_item_sel(void *data, Evas_Object * obj, void *event_in
                        || ap->mf_Status.more == MORE_EDIT_COPY
                        || ap->mf_Status.more == MORE_EDIT_MOVE
                    || ap->mf_Status.more == MORE_EDIT_DETAIL
-                       || ap->mf_Status.more == MORE_EDIT_ADD_SHORTCUT
                        || ap->mf_Status.more == MORE_EDIT_DELETE
                ) {
                        MF_TRACE_END;
@@ -615,8 +614,8 @@ void mf_category_list_update_cb (media_content_error_e error, int pid,
                     mf_view_get_pre_state(ap) != MORE_SEARCH &&
                     (ap->mf_Status.more == MORE_DEFAULT || ap->mf_Status.more == MORE_EDIT ||
                      ap->mf_Status.more == MORE_SHARE_EDIT || ap->mf_Status.more == MORE_EDIT_COPY ||
-                     ap->mf_Status.more == MORE_EDIT_MOVE || ap->mf_Status.more == MORE_EDIT_ADD_SHORTCUT ||
-                     ap->mf_Status.more == MORE_EDIT_DELETE || ap->mf_Status.more == MORE_EDIT_DETAIL))
+                     ap->mf_Status.more == MORE_EDIT_MOVE || ap->mf_Status.more == MORE_EDIT_DELETE ||
+                     ap->mf_Status.more == MORE_EDIT_DETAIL))
                 {   /* if it is rename state, don't refresh list */
                     if (mf_callback_monitor_media_db_update_flag_get()) {
                         mf_callback_monitor_media_db_update_flag_set(EINA_FALSE);
@@ -639,7 +638,6 @@ void mf_category_list_update_cb (media_content_error_e error, int pid,
                         pre_more == MORE_SHARE_EDIT ||
                         pre_more == MORE_EDIT_COPY ||
                         pre_more == MORE_EDIT_MOVE ||
-                        pre_more == MORE_EDIT_ADD_SHORTCUT ||
                         pre_more == MORE_EDIT_DELETE ||
                         pre_more == MORE_EDIT_DETAIL)
                     {
@@ -656,7 +654,6 @@ void mf_category_list_update_cb (media_content_error_e error, int pid,
                     if (pre_more == MORE_EDIT ||
                         pre_more == MORE_EDIT_COPY ||
                         pre_more == MORE_EDIT_MOVE ||
-                        pre_more == MORE_EDIT_ADD_SHORTCUT ||
                         pre_more == MORE_EDIT_DELETE ||
                         pre_more == MORE_EDIT_DETAIL)
                     {
@@ -704,7 +701,6 @@ void mf_category_list_update_cb (media_content_error_e error, int pid,
                     ap->mf_Status.more == MORE_EDIT_COPY ||
                     ap->mf_Status.more == MORE_EDIT_MOVE ||
                     ap->mf_Status.more == MORE_EDIT_DETAIL ||
-                    ap->mf_Status.more == MORE_EDIT_ADD_SHORTCUT ||
                     ap->mf_Status.more == MORE_EDIT_DELETE))
             {
                 Eina_List *file_list = NULL;
@@ -1026,7 +1022,6 @@ void mf_category_view_create_vew_as(void *data, bool flag_show)
        if (ap->mf_FileOperation.file_list) {
                mf_util_free_eina_list_with_data(&(ap->mf_FileOperation.file_list), MYFILE_TYPE_FSNODE);
        }
-       mf_util_free_eina_list_with_data(&(ap->mf_FileOperation.shortcut_list), MYFILE_TYPE_FSNODE);
        newContent = mf_category_get_from_media_db(ap, ap->mf_Status.category_type, false);
        elm_box_pack_end(ap->mf_MainWindow.pNaviBox, newContent);
        //mf_navi_bar_layout_content_set(ap->mf_MainWindow.pNaviLayout, newContent);
@@ -1063,7 +1058,6 @@ void mf_category_view_create(void *data, bool flag_show)
        if (ap->mf_FileOperation.file_list) {
                mf_util_free_eina_list_with_data(&(ap->mf_FileOperation.file_list), MYFILE_TYPE_FSNODE);
        }
-       mf_util_free_eina_list_with_data(&(ap->mf_FileOperation.shortcut_list), MYFILE_TYPE_FSNODE);
 
        ap->mf_Status.pPreNaviItem = ap->mf_MainWindow.pNaviItem;
 
@@ -1085,27 +1079,6 @@ void mf_category_view_create(void *data, bool flag_show)
        } else {
                ap->mf_MainWindow.pNaviItem = elm_naviframe_item_push(ap->mf_MainWindow.pNaviBar, NULL, NULL, NULL, ap->mf_MainWindow.pNaviLayout, MF_NAVI_STYLE_ENABLE);
        }
-//     Evas_Object *pImage = elm_image_add(ap->mf_MainWindow.pNaviBar);
-//     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 *btn = elm_button_add(ap->mf_MainWindow.pNaviBar);
-//     elm_object_content_set(btn, pImage);
-//     elm_object_style_set(btn, "transparent");
-//     evas_object_smart_callback_add(btn, "clicked", mf_category_view_back_cb, ap);
-//     elm_object_item_part_content_set(ap->mf_MainWindow.pNaviItem, "title_left_btn", btn);
-
-//     Evas_Object *search_image = elm_image_add(ap->mf_MainWindow.pNaviLayout);
-//     elm_image_file_set(search_image, EDJ_IMAGE, MF_TITLE_ICON_SEARCH);
-//     elm_image_resizable_set(search_image, EINA_TRUE, EINA_TRUE);
-//     evas_object_show(search_image);
-//
-//     Evas_Object *btn1 = elm_button_add(ap->mf_MainWindow.pNaviLayout);
-//     elm_object_content_set(btn1, search_image);
-//     evas_object_smart_callback_add(btn1, "clicked", mf_search_bar_enter_search_routine, ap);
-//     elm_object_part_content_set(ap->mf_MainWindow.pNaviLayout, "search_icon", btn1);
-//     ap->mf_MainWindow.pButton = btn1;
 
        mf_navi_add_back_button(ap, mf_category_view_navi_back_cb);
        mf_category_view_set_ctrl_button(ap);
index 9985346..dca5971 100755 (executable)
@@ -271,18 +271,6 @@ static void __mf_context_popup_item_append(Evas_Object *parent, void *data, mf_c
                item = elm_ctxpopup_item_append(ctxpopup, LABEL_RENAME, image, mf_callback_edit_rename_cb, data);
                mf_object_item_translate_set(item, LABEL_RENAME);
                break;
-       case mf_context_popup_item_add_shortcut:
-               item = elm_ctxpopup_item_append(ctxpopup, MF_LABEL_ADD_TO_SHORTCUT, image, mf_callback_edit_add_to_shortcut_cb, data);
-               mf_object_item_translate_set(item, MF_LABEL_ADD_TO_SHORTCUT);
-               break;
-       case mf_context_popup_item_delete_shortcut:
-               item = elm_ctxpopup_item_append(ctxpopup, MF_LABEL_DELETE_SHORTCUT, image, mf_callback_edit_delete_shortcut_cb, data);
-               mf_object_item_translate_set(item, MF_LABEL_DELETE_SHORTCUT);
-               break;
-       case mf_context_popup_item_rename_shortcut:
-               item = elm_ctxpopup_item_append(ctxpopup, MF_LABEL_RENAME_SHORTCUT, image, mf_callback_edit_rename_shortcut_cb, data);
-               mf_object_item_translate_set(item, MF_LABEL_RENAME_SHORTCUT);
-               break;
        case mf_context_popup_item_remove_recent:
                item = elm_ctxpopup_item_append(ctxpopup, MF_LABEL_REMOVE, image, mf_callback_edit_delete_recent_cb, data);
                mf_object_item_translate_set(item, MF_LABEL_REMOVE);
@@ -475,14 +463,6 @@ void mf_context_popup_create_more(void *data, Evas_Object *parent)
 
                        //1 Storage Usage
                        __mf_context_popup_item_append(ctxpopup, ap, mf_context_popup_item_storage_usage);
-                       //1 Add shortcut
-                       //__mf_context_popup_item_append(ctxpopup, ap, mf_context_popup_item_add_shortcut);
-                       int count = 0;
-                       mf_media_get_short_count(ap->mf_MainWindow.mfd_handle, &count);
-                       if (count > 0) {
-                               __mf_context_popup_item_append(ctxpopup, ap, mf_context_popup_item_delete_shortcut);
-                               __mf_context_popup_item_append(ctxpopup, ap, mf_context_popup_item_rename_shortcut);
-                       }
                        //1 Setting
                        //__mf_context_popup_item_append(ctxpopup, ap, mf_context_popup_item_setting);
                } else if (ap->mf_Status.view_type == mf_view_storage) {
@@ -581,8 +561,6 @@ void mf_context_popup_create_more(void *data, Evas_Object *parent)
                                                        __mf_context_popup_item_append(ctxpopup, ap, mf_context_popup_item_new_folder);
                                 //1 Rename
                                 __mf_context_popup_item_append(ctxpopup, ap, mf_context_popup_item_rename);
-                               //1 Add shortcut
-                            //    __mf_context_popup_item_append(ctxpopup, ap, mf_context_popup_item_add_shortcut);
                                 //1 Edit
                                 //__mf_context_popup_item_append(ctxpopup, ap, mf_context_popup_item_edit);
 
@@ -637,8 +615,7 @@ void mf_context_popup_create_more(void *data, Evas_Object *parent)
 
        } else if (ap->mf_Status.more == MORE_INTERNAL_MOVE ||
                        ap->mf_Status.more == MORE_INTERNAL_COPY  ||
-                       ap->mf_Status.more == MORE_INTERNAL_DECOMPRESS ||
-                    ap->mf_Status.more == MORE_EDIT_ADD_SHORTCUT) {
+                       ap->mf_Status.more == MORE_INTERNAL_DECOMPRESS) {
                //1 Create
                __mf_context_popup_item_append(ctxpopup, ap, mf_context_popup_item_new_folder);
        }
index f4cd0f2..eb27228 100755 (executable)
@@ -409,7 +409,6 @@ void mf_edit_gengrid_item_sel_cb(void *data, Evas_Object * obj, void *event_info
        && 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_EDIT_UNINSTALL
            && ap->mf_Status.more != MORE_EDIT_DETAIL
@@ -475,7 +474,6 @@ void mf_edit_list_item_sel_by_list_data(mf_list_data_t *selected, Evas_Object *
                && 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_EDIT_UNINSTALL
                && ap->mf_Status.more != MORE_EDIT_DETAIL
@@ -487,11 +485,6 @@ void mf_edit_list_item_sel_by_list_data(mf_list_data_t *selected, Evas_Object *
                Evas_Object *popup = evas_object_data_get(obj, "popup"); // Get popup
                if (popup) return;  // If popup exists, do nothing
        }
-       if (ap->mf_Status.more == MORE_EDIT_DELETE_SHORTCUT) {
-               if (selected->list_type != mf_list_shortcut) {
-                       return;
-               }
-       }
 
        if (selected->file_type == FILE_TYPE_DIR) {
                mf_error("select type is DIR");
@@ -770,8 +763,6 @@ void mf_edit_view_title_button_set(void *data)
                        mf_naviframe_right_save_button_create(ap->mf_MainWindow.pNaviBar, ap->mf_MainWindow.pNaviItem, mf_callback_delete_cb, ap);
                } else if (ap->mf_Status.more == MORE_SHARE_EDIT) {
                        mf_naviframe_right_save_button_create(ap->mf_MainWindow.pNaviBar, ap->mf_MainWindow.pNaviItem, mf_callback_share_cb, ap);
-               } else if (ap->mf_Status.more == MORE_EDIT_DELETE_SHORTCUT) {
-                       mf_naviframe_right_save_button_create(ap->mf_MainWindow.pNaviBar, ap->mf_MainWindow.pNaviItem, mf_callback_delete_shortcut_confirm_cb, ap);
                } else if (ap->mf_Status.more == MORE_EDIT_DELETE_RECENT) {
                        mf_naviframe_right_save_button_create(ap->mf_MainWindow.pNaviBar, ap->mf_MainWindow.pNaviItem, mf_callback_delete_recent_files_confirm_cb, ap);
                } else if (ap->mf_Status.more == MORE_EDIT_UNINSTALL) {
@@ -924,13 +915,13 @@ void mf_edit_view_refresh(void *data, Eina_List **file_list, Eina_List **folder_
        if (select_info_func != NULL) {
                select_info_func(ap);
        }
-       if (ap->mf_Status.more != MORE_EDIT_DELETE_SHORTCUT) {
-               mf_edit_view_select_all_layout_prepend(ap);
-               if (count == edit_count)
-                       mf_edit_select_all_check_set(EINA_TRUE);
-               else
-                       mf_edit_select_all_check_set(EINA_FALSE);
-       }
+
+       mf_edit_view_select_all_layout_prepend(ap);
+       if (count == edit_count)
+               mf_edit_select_all_check_set(EINA_TRUE);
+       else
+               mf_edit_select_all_check_set(EINA_FALSE);
+
        mf_edit_view_title_button_set(ap);
 
        mf_edit_view_ctrlbar_state_set(ap);
index 66af450..95fc7d6 100755 (executable)
@@ -61,8 +61,7 @@ static void __mf_gengrid_icon_clicked(void *data, Evas_Object *obj, void *event_
                        || ap->mf_Status.more == MORE_EDIT_MOVE
                        || ap->mf_Status.more == MORE_EDIT_DELETE
                        || ap->mf_Status.more == MORE_EDIT_UNINSTALL
-                       || ap->mf_Status.more == MORE_EDIT_DELETE_SHORTCUT
-                   || ap->mf_Status.more == MORE_EDIT_DETAIL
+                       || ap->mf_Status.more == MORE_EDIT_DETAIL
                        ) {
                        return;
                }
index 064e1ca..40973c8 100755 (executable)
@@ -244,13 +244,6 @@ static char *__mf_genlist_gl_label_get_lite(void *data, Evas_Object *obj, const
        mf_error("part=%s", part);
        if (strcmp(part, "elm.text.main.left") == 0) {
                /* supporting multi-lang for default folders */
-               if (params->list_type == mf_list_shortcut) {
-                       char *name = NULL;
-                       mf_media_shortcut_list_get_display_name(params->ap->mf_MainWindow.mfd_handle, params->m_ItemName->str, &name);
-                       if (name) {
-                               return name;
-                       }
-               }
                if (g_strcmp0(params->m_ItemName->str, PHONE_FOLDER) == 0) {
                        return g_strdup(mf_util_get_text(MF_LABEL_DEVICE_MEMORY));
                } else if (g_strcmp0(params->m_ItemName->str, MEMORY_FOLDER) == 0) {
@@ -281,13 +274,6 @@ static char *__mf_genlist_gl_label_get_lite(void *data, Evas_Object *obj, const
            return g_strdup(mf_file_get(params->m_ItemName->str));
                 */
        } else if (strcmp(part, "elm.text.main.left.top") == 0) {
-               if (params->list_type == mf_list_shortcut) {
-                       char *name = NULL;
-                       mf_media_shortcut_list_get_display_name(params->ap->mf_MainWindow.mfd_handle, params->m_ItemName->str, &name);
-                       if (name) {
-                               return name;
-                       }
-               }
                if (g_strcmp0(params->m_ItemName->str, PHONE_FOLDER) == 0) {
                        return g_strdup(mf_util_get_text(MF_LABEL_DEVICE_MEMORY));
                } else if (g_strcmp0(params->m_ItemName->str, MEMORY_FOLDER) == 0) {
@@ -469,28 +455,10 @@ static Evas_Object *__mf_genlist_gl_default_icon_get_lite(void *data, Evas_Objec
                        return NULL;
                }
        } else if (!strcmp(part, "elm.icon.2")) {
-               if (ap->mf_Status.more == MORE_EDIT_DELETE_SHORTCUT) {
-                       mf_error("params->list_type is [%d]", params->list_type);
-                       if (params->list_type == mf_list_shortcut) {
-                               Evas_Object *content = elm_layout_add(obj);
-                               elm_layout_theme_set(content, "layout", "list/C/type.2", "default");
-
-                               Evas_Object *check = NULL;
-                               check = elm_check_add(obj);
-                               elm_object_style_set(check, "default");
-                               elm_object_focus_set(check, EINA_FALSE);
-                               elm_check_state_pointer_set(check, &params->m_checked);
-                               evas_object_repeat_events_set(check, EINA_TRUE);
-                               evas_object_propagate_events_set(check, EINA_FALSE);
-
-                               elm_layout_content_set(content, "elm.swallow.content", check);
-                               return content;
-                       }
-               } else if (ap->mf_Status.more == MORE_SHARE_EDIT
+               if (ap->mf_Status.more == MORE_SHARE_EDIT
                                || ap->mf_Status.more == MORE_EDIT_DELETE
                                || ap->mf_Status.more == MORE_EDIT_COPY
                                || ap->mf_Status.more == MORE_EDIT_MOVE
-                               || ap->mf_Status.more == MORE_EDIT_DELETE_SHORTCUT
                                || ap->mf_Status.more == MORE_EDIT_DELETE_RECENT
                                || ap->mf_Status.more == MORE_EDIT_UNINSTALL
                                || ap->mf_Status.more == MORE_EDIT_DETAIL)
@@ -763,8 +731,7 @@ void mf_genlist_gl_selected(void *data, Evas_Object *obj, void *event_info)
                elm_genlist_item_selected_set(item, FALSE);
 
                if (ap->mf_Status.more == MORE_EDIT_RENAME) {
-                       if (ap->mf_Status.view_type == mf_view_root
-                                       && selected->list_type != mf_list_shortcut)
+                       if (ap->mf_Status.view_type == mf_view_root)
                                return;
                        ap->mf_FileOperation.rename_item = item;
                        mf_callback_idle_rename(selected);
@@ -777,7 +744,6 @@ void mf_genlist_gl_selected(void *data, Evas_Object *obj, void *event_info)
                                && ap->mf_Status.more != MORE_EDIT_MOVE
                                && ap->mf_Status.more != MORE_EDIT_DETAIL
                                && ap->mf_Status.more != MORE_EDIT_DELETE
-                               && ap->mf_Status.more != MORE_EDIT_DELETE_SHORTCUT
                                && ap->mf_Status.more != MORE_EDIT_DELETE_RECENT
                ) {
                        if (selected->storage_type == MYFILE_PHONE
@@ -789,13 +755,6 @@ void mf_genlist_gl_selected(void *data, Evas_Object *obj, void *event_info)
                                        return;
                                }
                        }
-
-                       if (ap->mf_Status.more == MORE_EDIT_ADD_SHORTCUT
-                                       && selected->file_type != FILE_TYPE_DIR) {
-                               /** shortcut can only be added to directory */
-                               return;
-                       }
-
                        mf_callback_click_cb(data, MFACTION_CLICK, selected->m_ItemName);
                }
        }
@@ -1100,7 +1059,6 @@ Evas_Object *mf_genlist_create_list(void *data,Evas_Object *parent)
        case MORE_DECOMPRESS:
        case MORE_DECOMPRESS_HERE:
        case MORE_INTERNAL_DECOMPRESS:
-       case MORE_EDIT_ADD_SHORTCUT:
                evas_object_smart_callback_add(genlist, "selected", mf_edit_list_item_sel_cb, ap);
                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);
index f6e4042..778df5c 100755 (executable)
@@ -378,7 +378,6 @@ void mf_navi_bar_title_set(void *data)
                || 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
           ) {
                if (more == MORE_EDIT) {
index beaea86..ec8eaa5 100755 (executable)
@@ -169,10 +169,6 @@ void mf_normal_view_create(void *data)
                mf_naviframe_left_cancel_button_create(ap->mf_MainWindow.pNaviBar, ap->mf_MainWindow.pNaviItem, mf_callback_cancel_cb, ap);
                mf_naviframe_right_save_button_create(ap->mf_MainWindow.pNaviBar, ap->mf_MainWindow.pNaviItem, mf_callback_move_here_cb, ap);
                mf_navi_bar_title_content_set(ap, LABEL_MOVE_TO);
-       } else if (ap->mf_Status.more == MORE_EDIT_ADD_SHORTCUT) {
-               mf_naviframe_left_cancel_button_create(ap->mf_MainWindow.pNaviBar, ap->mf_MainWindow.pNaviItem, mf_callback_cancel_cb, ap);
-               mf_naviframe_right_save_button_create(ap->mf_MainWindow.pNaviBar, ap->mf_MainWindow.pNaviItem, mf_callback_do_add_to_shortcut_cb, ap);
-               mf_navi_bar_title_content_set(ap, MF_LABEL_ADD_TO_SHORTCUT);
        } else if (ap->mf_Status.more == MORE_EDIT_RENAME) {
                elm_naviframe_item_title_enabled_set(ap->mf_MainWindow.pNaviItem, EINA_TRUE, EINA_FALSE);
                mf_navi_bar_title_content_set(ap, LABEL_RENAME);
index a4c20dc..959a4ce 100755 (executable)
@@ -778,11 +778,7 @@ Evas_Object *mf_popup_create_rename_popup(void *data, char *context)
                ap->mf_FileOperation.to_rename = NULL;
        }
        char *file_name = NULL;
-       if (params->list_type == mf_list_shortcut) {
-               mf_media_shortcut_list_get_display_name(params->ap->mf_MainWindow.mfd_handle, params->m_ItemName->str, &file_name);
-       } else {
-               file_name = g_strdup(params->m_ItemName->str);
-       }
+       file_name = g_strdup(params->m_ItemName->str);
        ap->mf_FileOperation.to_rename = g_string_new(file_name);
        SAFE_FREE_CHAR(ap->mf_FileOperation.file_name_suffix);
 
@@ -1196,12 +1192,6 @@ static void __mf_popup_operation_item_create(Evas_Object *genlist, void *data, m
        case mf_operation_item_download:
                mf_elm_popup_item_append(genlist, mf_util_get_text(MF_LABEL_DOWNLOAD), NULL, NULL, data);
                break;
-       case mf_operation_item_addto_shortcut:
-               mf_elm_popup_item_append(genlist, mf_util_get_text(MF_LABEL_ADD_TO_SHORTCUT), NULL, mf_callback_item_add_to_shortcut_cb, data);
-               break;
-       case mf_operation_item_remove:
-               mf_elm_popup_item_append(genlist, mf_util_get_text(MF_LABEL_REMOVE), NULL, mf_callback_item_remove_from_shortcut_cb, data);
-               break;
        case mf_operation_item_remove_recent:
                mf_elm_popup_item_append(genlist, mf_util_get_text(MF_LABEL_REMOVE), NULL, mf_callback_item_remove_from_recent_files_cb, data);
                break;
@@ -1280,18 +1270,6 @@ static void __mf_popup_operation_items_generate(void *data, Evas_Object *genlist
                        __mf_popup_operation_item_create(genlist, data, mf_operation_item_details);
 
                        break;
-               case mf_list_shortcut:
-                       {
-                               //1 Remove
-                               __mf_popup_operation_item_create(genlist, data, mf_operation_item_remove);
-
-                               //1 Rename
-                               __mf_popup_operation_item_create(genlist, data, mf_operation_item_rename);
-
-                               //1 Details
-                               __mf_popup_operation_item_create(genlist, data, mf_operation_item_details);
-                       }
-                       break;
                case mf_list_normal:
                        //1 Details
                        __mf_popup_operation_item_create(genlist, data, mf_operation_item_details);
@@ -1328,8 +1306,6 @@ static void __mf_popup_operation_items_generate(void *data, Evas_Object *genlist
 
        } else {
                        if (item_data->file_type == FILE_TYPE_DIR) {
-                               //1 Shortcut
-                               __mf_popup_operation_item_create(genlist, data, mf_operation_item_addto_shortcut);
 
                                //1 Delete
                                __mf_popup_operation_item_create(genlist, data, mf_operation_item_delete);
@@ -1440,7 +1416,7 @@ Evas_Object *mf_popup_create_operation_item_pop(void *data)
        char *title = NULL;
 
        if (item_data->list_type == mf_list_normal
-           || item_data->list_type == mf_list_shortcut || item_data->list_type == mf_list_recent_files) {
+           || item_data->list_type == mf_list_recent_files) {
                if (item_data->storage_type == MYFILE_PHONE
                    || item_data->storage_type == MYFILE_MMC
                ) {
@@ -1450,16 +1426,7 @@ Evas_Object *mf_popup_create_operation_item_pop(void *data)
                                return NULL;
                        }
                }
-
-               if (item_data->list_type == mf_list_shortcut) {
-                       char *temp_title = NULL;
-                       {
-                               mf_media_shortcut_list_get_display_name(item_data->ap->mf_MainWindow.mfd_handle, ((mfItemData_s *)item_data)->m_ItemName->str, &temp_title);
-                       }
-                       title = elm_entry_utf8_to_markup(temp_title);//Fixed P140321-05456 by jian12.li
-                       SAFE_FREE_CHAR(temp_title);
-                       temp_title = NULL;
-               } else if (g_strcmp0(((mfItemData_s *)item_data)->m_ItemName->str, PHONE_FOLDER) == 0) {
+               if (g_strcmp0(((mfItemData_s *)item_data)->m_ItemName->str, PHONE_FOLDER) == 0) {
                        title = g_strdup(MF_LABEL_DEVICE_MEMORY);
                } else if (g_strcmp0(((mfItemData_s *)item_data)->m_ItemName->str, MEMORY_FOLDER) == 0) {
                        title = g_strdup(MF_LABEL_SD_CARD);
index 330db76..d24fa1b 100755 (executable)
@@ -59,146 +59,124 @@ Eina_Bool mf_recent_view_navi_back_cb(void *data, Elm_Object_Item *it)
 
 Evas_Object *mf_recent_view_content_create(void *data)
 {
-    MF_TRACE_BEGIN;
-    mf_retvm_if(data == NULL, NULL, "data is NULL");
-
-    Eina_List *file_list = NULL;
-    Evas_Object *content = NULL;
-    struct appdata *ap = (struct appdata *)data;
-
-    mf_util_free_eina_list_with_data(&(ap->mf_FileOperation.recent_list), MYFILE_TYPE_FSNODE);
-    mf_util_generate_saved_files_list(ap, mf_list_recent_files);
-
-    if (eina_list_count(ap->mf_FileOperation.recent_list) == 0) 
-    {
-        mf_debug("No recent lists");
-
-        content = mf_object_create_multi_no_content(ap->mf_MainWindow.pNaviLayout);
-        mf_object_text_set(content, MF_LABEL_NO_FILES, "elm.text");
-        ap->mf_MainWindow.pNaviGengrid = NULL;
-        ap->mf_MainWindow.pNaviGenlist= NULL;
-        ap->mf_Status.flagNoContent = EINA_TRUE;
-    } else {
-        int iSortTypeValue = 0;
-        mf_debug("Recent lists exists");
-
-        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, mf_item_itc_type_recent);
-
-        mf_util_get_pref_value(PREF_TYPE_SORT_TYPE, &iSortTypeValue);
-
-        mf_fs_oper_sort_list(&ap->mf_FileOperation.recent_list, iSortTypeValue);
-        file_list = ap->mf_FileOperation.recent_list;
-        mf_genlist_create_list_default_style(content, ap, NULL, file_list);
-        ap->mf_MainWindow.pNaviGengrid = NULL;
-        ap->mf_MainWindow.pNaviGenlist = content;
-        ap->mf_Status.flagNoContent = EINA_FALSE;
-    }
-
-    MF_TRACE_END;
-    g_mf_recent_content = content;
-    return content;
+       MF_TRACE_BEGIN;
+       mf_retvm_if(data == NULL, NULL, "data is NULL");
+
+       Eina_List *file_list = NULL;
+       Evas_Object *content = NULL;
+       struct appdata *ap = (struct appdata *)data;
+
+       mf_util_free_eina_list_with_data(&(ap->mf_FileOperation.recent_list), MYFILE_TYPE_FSNODE);
+       mf_util_generate_saved_files_list(ap, mf_list_recent_files);
+
+       if (eina_list_count(ap->mf_FileOperation.recent_list) == 0)
+       {
+               mf_debug("No recent lists");
+
+               content = mf_object_create_multi_no_content(ap->mf_MainWindow.pNaviLayout);
+               mf_object_text_set(content, MF_LABEL_NO_FILES, "elm.text");
+               ap->mf_MainWindow.pNaviGengrid = NULL;
+               ap->mf_MainWindow.pNaviGenlist= NULL;
+               ap->mf_Status.flagNoContent = EINA_TRUE;
+       } else {
+               int iSortTypeValue = 0;
+               mf_debug("Recent lists exists");
+
+               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, mf_item_itc_type_recent);
+
+               mf_util_get_pref_value(PREF_TYPE_SORT_TYPE, &iSortTypeValue);
+
+               mf_fs_oper_sort_list(&ap->mf_FileOperation.recent_list, iSortTypeValue);
+               file_list = ap->mf_FileOperation.recent_list;
+               mf_genlist_create_list_default_style(content, ap, NULL, file_list);
+               ap->mf_MainWindow.pNaviGengrid = NULL;
+               ap->mf_MainWindow.pNaviGenlist = content;
+               ap->mf_Status.flagNoContent = EINA_FALSE;
+       }
+
+       MF_TRACE_END;
+       g_mf_recent_content = content;
+       return content;
 }
 
 void mf_recent_view_content_refresh(void *data)
 {
-   struct appdata *ap = (struct appdata *)data;
-   SAFE_FREE_OBJ(ap->mf_MainWindow.pContextPopup);
-   if (g_mf_recent_content != NULL) {
-          elm_box_unpack(ap->mf_MainWindow.pNaviBox, g_mf_recent_content);
-          if (ap->mf_MainWindow.pNaviGenlist == g_mf_recent_content) {
-                  ap->mf_MainWindow.pNaviGenlist = NULL;//avoid the invalid pointer.
-          }
-          evas_object_del(g_mf_recent_content);
-          g_mf_recent_content = NULL;
-   }
-   Evas_Object *newContent = mf_recent_view_content_create(ap);
-   evas_object_show(newContent);
-   elm_box_pack_end(ap->mf_MainWindow.pNaviBox, newContent);
-   evas_object_show(ap->mf_MainWindow.pNaviBox);
+       struct appdata *ap = (struct appdata *)data;
+       SAFE_FREE_OBJ(ap->mf_MainWindow.pContextPopup);
+       if (g_mf_recent_content != NULL) {
+               elm_box_unpack(ap->mf_MainWindow.pNaviBox, g_mf_recent_content);
+               if (ap->mf_MainWindow.pNaviGenlist == g_mf_recent_content) {
+                       ap->mf_MainWindow.pNaviGenlist = NULL;//avoid the invalid pointer.
+               }
+               evas_object_del(g_mf_recent_content);
+               g_mf_recent_content = NULL;
+       }
+       Evas_Object *newContent = mf_recent_view_content_create(ap);
+       evas_object_show(newContent);
+       elm_box_pack_end(ap->mf_MainWindow.pNaviBox, newContent);
+       evas_object_show(ap->mf_MainWindow.pNaviBox);
 }
 
 void mf_recent_view_create(void *data)
 {
-    MF_TRACE_BEGIN;
-    MF_TA_ACUM_ITEM_BEGIN("12345 mf_root_view_create", 0);
-    MF_TA_ACUM_ITEM_BEGIN("123456 create root view layout", 0);
-
-    struct appdata *ap = (struct appdata *)data;
-    mf_retm_if(ap == NULL, "ap is NULL");
-    mf_retm_if(ap->mf_MainWindow.pNaviBar == NULL, "ap->mf_MainWindow.pNaviBar is NULL");
-
-    mf_navi_bar_reset_navi_obj(ap);
-    Evas_Object *pathinfo = NULL;
-
-    ap->mf_Status.pPreNaviItem = ap->mf_MainWindow.pNaviItem;
-    ap->mf_MainWindow.pNaviLayout = mf_object_create_layout(ap->mf_MainWindow.pNaviBar, EDJ_NAME, "view_layout");
-    mf_navi_bar_layout_state_set(ap->mf_MainWindow.pNaviLayout, mf_navi_layout_normal);
-    ap->mf_MainWindow.pNaviBox = mf_object_create_box(ap->mf_MainWindow.pNaviLayout);
-    mf_navi_bar_layout_content_set(ap->mf_MainWindow.pNaviLayout, ap->mf_MainWindow.pNaviBox);
-    mf_util_free_eina_list_with_data(&(ap->mf_FileOperation.shortcut_list), MYFILE_TYPE_FSNODE);
-
-    Evas_Object *newContent = mf_recent_view_content_create(ap);
-    evas_object_show(newContent);
-    pathinfo = mf_navi_bar_create_normal_pathinfo(ap);
-    elm_object_part_content_set(ap->mf_MainWindow.pNaviLayout, "pathinfo", pathinfo);
-    elm_box_pack_end(ap->mf_MainWindow.pNaviBox, newContent);
-
-    MF_TA_ACUM_ITEM_BEGIN("123456 push naviframe item", 0);
-    if (ap->mf_Status.pPreNaviItem) {
-        ap->mf_MainWindow.pNaviItem = elm_naviframe_item_insert_after(ap->mf_MainWindow.pNaviBar, 
-                ap->mf_Status.pPreNaviItem, "", NULL, NULL, ap->mf_MainWindow.pNaviLayout, 
-                MF_NAVI_STYLE_ENABLE);
-    } else {
-        ap->mf_MainWindow.pNaviItem = elm_naviframe_item_push(ap->mf_MainWindow.pNaviBar, NULL, NULL, NULL, 
-                ap->mf_MainWindow.pNaviLayout, MF_NAVI_STYLE_ENABLE);
-    }
-    MF_TA_ACUM_ITEM_END("123456 push naviframe item", 0);
-
-    GString *title = g_string_new(MF_LABEL_RECTENT_FILES);
-    if (title != NULL) {
-        SAFE_FREE_CHAR(ap->mf_MainWindow.naviframe_title);
-        ap->mf_MainWindow.naviframe_title = g_strdup(title->str);
-        g_string_free(title, TRUE);
-        title = NULL;
-    }
-//    Evas_Object *pImage = elm_image_add(ap->mf_MainWindow.pNaviBar);
-//    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 *btn = elm_button_add(ap->mf_MainWindow.pNaviBar);
-//    elm_object_content_set(btn, pImage);
-//    elm_object_style_set(btn, "transparent");
-//    evas_object_smart_callback_add(btn, "clicked", mf_recent_view_back_cb, ap);
-//    elm_object_item_part_content_set(ap->mf_MainWindow.pNaviItem, "title_left_btn", btn);
-
-//    Evas_Object *search_image = elm_image_add(ap->mf_MainWindow.pNaviLayout);
-//    elm_image_file_set(search_image, EDJ_IMAGE, MF_TITLE_ICON_SEARCH);
-//    elm_image_resizable_set(search_image, EINA_TRUE, EINA_TRUE);
-//    evas_object_show(search_image);
-//
-//    Evas_Object *btn1 = elm_button_add(ap->mf_MainWindow.pNaviLayout);
-//    elm_object_content_set(btn1, search_image);
-//    evas_object_smart_callback_add(btn1, "clicked", mf_search_bar_enter_search_routine, ap);
-//    elm_object_part_content_set(ap->mf_MainWindow.pNaviLayout, "search_icon", btn1);
-//    ap->mf_MainWindow.pButton = btn1;
-
-    MF_TA_ACUM_ITEM_BEGIN("123456 mf_navi_add_back_button", 0);
-    mf_navi_add_back_button(ap, mf_recent_view_navi_back_cb);
-    MF_TA_ACUM_ITEM_END("123456 mf_navi_add_back_button", 0);
-
-    /* Add control bar for navigation bar */
-    MF_TA_ACUM_ITEM_BEGIN("123456 mf_navi_bar_set_ctrlbar", 0);
-    mf_navi_bar_set_ctrlbar(data);
-    MF_TA_ACUM_ITEM_END("123456 mf_navi_bar_set_ctrlbar", 0);
-
-    mf_navi_bar_title_content_set(ap, LABEL_MYFILE_CHAP);
-
-    //mf_navi_bar_title_set(ap);
-
-    MF_TRACE_END;
+       MF_TRACE_BEGIN;
+       MF_TA_ACUM_ITEM_BEGIN("12345 mf_root_view_create", 0);
+       MF_TA_ACUM_ITEM_BEGIN("123456 create root view layout", 0);
+
+       struct appdata *ap = (struct appdata *)data;
+       mf_retm_if(ap == NULL, "ap is NULL");
+       mf_retm_if(ap->mf_MainWindow.pNaviBar == NULL, "ap->mf_MainWindow.pNaviBar is NULL");
+
+       mf_navi_bar_reset_navi_obj(ap);
+       Evas_Object *pathinfo = NULL;
+
+       ap->mf_Status.pPreNaviItem = ap->mf_MainWindow.pNaviItem;
+       ap->mf_MainWindow.pNaviLayout = mf_object_create_layout(ap->mf_MainWindow.pNaviBar, EDJ_NAME, "view_layout");
+       mf_navi_bar_layout_state_set(ap->mf_MainWindow.pNaviLayout, mf_navi_layout_normal);
+       ap->mf_MainWindow.pNaviBox = mf_object_create_box(ap->mf_MainWindow.pNaviLayout);
+       mf_navi_bar_layout_content_set(ap->mf_MainWindow.pNaviLayout, ap->mf_MainWindow.pNaviBox);
+
+
+       Evas_Object *newContent = mf_recent_view_content_create(ap);
+       evas_object_show(newContent);
+       pathinfo = mf_navi_bar_create_normal_pathinfo(ap);
+       elm_object_part_content_set(ap->mf_MainWindow.pNaviLayout, "pathinfo", pathinfo);
+       elm_box_pack_end(ap->mf_MainWindow.pNaviBox, newContent);
+
+       MF_TA_ACUM_ITEM_BEGIN("123456 push naviframe item", 0);
+       if (ap->mf_Status.pPreNaviItem) {
+               ap->mf_MainWindow.pNaviItem = elm_naviframe_item_insert_after(ap->mf_MainWindow.pNaviBar,
+                               ap->mf_Status.pPreNaviItem, "", NULL, NULL, ap->mf_MainWindow.pNaviLayout,
+                               MF_NAVI_STYLE_ENABLE);
+       } else {
+               ap->mf_MainWindow.pNaviItem = elm_naviframe_item_push(ap->mf_MainWindow.pNaviBar, NULL, NULL, NULL,
+                               ap->mf_MainWindow.pNaviLayout, MF_NAVI_STYLE_ENABLE);
+       }
+       MF_TA_ACUM_ITEM_END("123456 push naviframe item", 0);
+
+       GString *title = g_string_new(MF_LABEL_RECTENT_FILES);
+       if (title != NULL) {
+               SAFE_FREE_CHAR(ap->mf_MainWindow.naviframe_title);
+               ap->mf_MainWindow.naviframe_title = g_strdup(title->str);
+               g_string_free(title, TRUE);
+               title = NULL;
+       }
+       MF_TA_ACUM_ITEM_BEGIN("123456 mf_navi_add_back_button", 0);
+       mf_navi_add_back_button(ap, mf_recent_view_navi_back_cb);
+       MF_TA_ACUM_ITEM_END("123456 mf_navi_add_back_button", 0);
+
+       /* Add control bar for navigation bar */
+       MF_TA_ACUM_ITEM_BEGIN("123456 mf_navi_bar_set_ctrlbar", 0);
+       mf_navi_bar_set_ctrlbar(data);
+       MF_TA_ACUM_ITEM_END("123456 mf_navi_bar_set_ctrlbar", 0);
+
+       mf_navi_bar_title_content_set(ap, LABEL_MYFILE_CHAP);
+
+       //mf_navi_bar_title_set(ap);
+
+       MF_TRACE_END;
 }
index 1a30203..ad09b70 100755 (executable)
@@ -44,7 +44,6 @@ static Elm_Object_Item *category_item = NULL;
 static Elm_Object_Item *local_index_item = NULL;
 static Elm_Object_Item *cloud_index_item = NULL;
 static Elm_Object_Item *first_index_item = NULL;
-static Elm_Object_Item *shortcut_index_item = NULL;
 static Evas_Object *root_category = NULL;
 static Evas_Object *box_root_category = NULL;
 
@@ -225,28 +224,6 @@ Elm_Object_Item *__mf_root_view_group_index_create(void *data, Evas_Object *genl
        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);
-               }
-               mf_genlist_create_list_default_style(genlist, ap, ap->mf_FileOperation.shortcut_list, NULL);
-       }
-}
-
 void __mf_root_view_local_storage_items_append(void *data)
 {
        mf_retm_if(data == NULL, "data is NULL");
@@ -354,7 +331,6 @@ static Evas_Object *__mf_root_view_content_create(void *data)
        //int view_style = mf_view_style_get(ap);
 
        content = ap->mf_MainWindow.pNaviGenlist;
-       __mf_root_view_shortcut_items_append(ap);
        __mf_root_view_local_storage_items_append(ap);
        __mf_root_view_cloud_storage(ap);
 
@@ -514,7 +490,6 @@ void mf_root_view_create(void *data)
        local_index_item = NULL;
        mf_navi_bar_reset_navi_obj(ap);
        ap->mf_Status.pPreNaviItem = ap->mf_MainWindow.pNaviItem;
-       ap->mf_Status.is_from_shortcut = false;
 
        ap->mf_MainWindow.pNaviLayout = mf_object_create_layout(ap->mf_MainWindow.pNaviBar, EDJ_NAME, "view_layout");
        mf_navi_bar_layout_state_set(ap->mf_MainWindow.pNaviLayout, mf_navi_layout_content_only);
index 57aa3be..8e1a625 100755 (executable)
@@ -86,8 +86,6 @@ void mf_storage_view_create(void *data)
        ap->mf_MainWindow.pNaviLayout = mf_object_create_layout(ap->mf_MainWindow.pNaviBar, EDJ_NAME, "view_layout");
 
        mf_navi_bar_layout_state_set(ap->mf_MainWindow.pNaviLayout, mf_navi_layout_normal);
-       
-       mf_util_free_eina_list_with_data(&(ap->mf_FileOperation.shortcut_list), MYFILE_TYPE_FSNODE);
 
        Evas_Object *newContent = mf_storage_view_create_content(ap);
        evas_object_show(newContent);
@@ -124,12 +122,8 @@ void mf_storage_view_create(void *data)
        Evas_Object *btn = mf_naviframe_right_save_button_create(ap->mf_MainWindow.pNaviBar, ap->mf_MainWindow.pNaviItem, NULL, ap);
        elm_object_disabled_set(btn, EINA_TRUE);
        elm_object_part_content_set(ap->mf_MainWindow.pNaviLayout, "pathinfo", pathinfo);
-       if (ap->mf_Status.more == MORE_EDIT_ADD_SHORTCUT) {
-               mf_navi_bar_title_content_set(ap, MF_LABEL_ADD_TO_SHORTCUT);
-       } else {
-               mf_navi_bar_title_content_set(ap, MF_LABEL_SELECT_STORAGE);
-               elm_naviframe_item_title_enabled_set(ap->mf_MainWindow.pNaviItem, EINA_TRUE, EINA_TRUE);
-       }
+       mf_navi_bar_title_content_set(ap, MF_LABEL_SELECT_STORAGE);
+       elm_naviframe_item_title_enabled_set(ap->mf_MainWindow.pNaviItem, EINA_TRUE, EINA_TRUE);
 
        t_end;
        /*temp data free*/
index 7c96ffa..76a81fd 100755 (executable)
@@ -40,7 +40,6 @@
 #define ICON_NORMAL_SIZE_HEIGHT                180.0f
 
 #define LAYOUT_SWALLOW_BG              "swallow.bg"
-#define LAYOUT_INFO_SHORTCUT_ITEM_ICON     "swallow.icon"
 
 #define MF_CATEGORY_LAYOUT_EDJ EDJ_PATH"/myfile_category.edj"
 #define MF_CATEGORY_LAYOUT_GROUP "category_frame"
@@ -570,8 +569,7 @@ static void __mf_category_item_clicked(void *data, Evas_Object *o, const char *e
        struct appdata *ap = (struct appdata *)mf_get_appdata();
        int category = (int) data;
        mf_debug("the category = %d", category);
-       if (ap->mf_Status.more == MORE_EDIT_DELETE_SHORTCUT
-           || ap->mf_Status.more == MORE_EDIT_RENAME) {
+       if (ap->mf_Status.more == MORE_EDIT_RENAME) {
                return;
        }
 
@@ -601,8 +599,7 @@ static void __mf_category_recent_item_clicked(void *data, Evas_Object *o, const
 {
        MF_TRACE_BEGIN;
        struct appdata *ap = (struct appdata *)mf_get_appdata();
-       if (ap->mf_Status.more == MORE_EDIT_DELETE_SHORTCUT
-           || ap->mf_Status.more == MORE_EDIT_RENAME) {
+       if (ap->mf_Status.more == MORE_EDIT_RENAME) {
                return;
        }
 
index d5ab454..03884bb 100755 (executable)
@@ -255,7 +255,6 @@ void mf_view_refresh(void *data)
                ap->mf_Status.more == MORE_INTERNAL_COPY || ap->mf_Status.more == MORE_INTERNAL_MOVE ||
                ap->mf_Status.more == MORE_DATA_COPYING || ap->mf_Status.more == MORE_DATA_MOVING ||
                ap->mf_Status.more == MORE_INTERNAL_DECOMPRESS
-               || ap->mf_Status.more == MORE_EDIT_ADD_SHORTCUT
                || ap->mf_Status.more == MORE_EDIT_RENAME) {
                mf_error();
                if (ap->mf_Status.view_type == mf_view_root) {
@@ -348,15 +347,6 @@ Elm_Object_Item *mf_view_item_append(Evas_Object *parent, fsNodeInfo *pNode, voi
        m_TempItem->list_type = pNode->list_type;
        m_TempItem->thumbnail_type = MF_THUMBNAIL_DEFAULT;
        m_TempItem->pNode = pNode;
-       if (ap->mf_Status.view_type == mf_view_root && pNode->list_type == mf_list_shortcut) {
-               //do nothing
-       } else {
-               if (!(m_TempItem->real_thumb_flag && m_TempItem->thumb_path)) {
-                       //mf_genlist_get_thumbnail(m_TempItem);
-                       //SECURE_ERROR("================= thumbnail is [%s]", m_TempItem->thumb_path);
-               }
-       }
-
        Elm_Object_Item *it = NULL;
 
        if (view_style == MF_VIEW_SYTLE_LIST_DETAIL) {
@@ -569,7 +559,6 @@ char *mf_view_item_data_get(void *data, int data_type)
                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;