From a74788a8e9e11d01b031b5313cfbdc99e557d82e Mon Sep 17 00:00:00 2001 From: Kapil Jhuria Date: Fri, 22 Sep 2017 11:35:57 +0530 Subject: [PATCH] Myfiles Comment Skeleton Added Change-Id: Id0ed65c90e00e39dbbf49e43c5e47abd2c592f52 --- src/common/file-operation/mf-cancel.c | 21 +++ src/common/file-operation/mf-request.c | 52 ++++++- src/common/file-operation/mf-search.c | 28 +++- src/common/mf-detail.c | 69 +++++++++ src/common/mf-error.c | 5 + src/common/mf-file-util.c | 66 +++++++++ src/common/mf-fs-monitor.c | 35 +++++ src/common/mf-inotify-handle.c | 40 ++++- src/common/mf-media-content.c | 28 ++++ src/common/mf-storage-space.c | 81 +++++++++- src/common/mf-ug-detail-fs.c | 43 ++++++ src/common/mf-ug-detail-media.c | 61 +++++++- src/media-db/mf-media-db.c | 254 +++++++++++++++++++++++++++++++- src/media-db/mf-media.c | 118 ++++++++++++++- src/mf-main.c | 80 ++++++++++ src/thumbnail/mf-thumb-gen.c | 124 +++++++++++++++- src/widget/mf-context-popup.c | 107 +++++++++++++- src/widget/mf-detail-view.c | 15 ++ src/widget/mf-downloaded-history-view.c | 21 +++ src/widget/mf-focus-ui.c | 12 ++ src/widget/mf-gengrid.c | 78 +++++++++- src/widget/mf-navi-bar.c | 125 +++++++++++++++- src/widget/mf-normal-view.c | 9 ++ src/widget/mf-object-item.c | 32 ++++ src/widget/mf-object.c | 82 +++++++++++ src/widget/mf-recent-view.c | 25 ++++ src/widget/mf-search-bar.c | 183 ++++++++++++++++++++++- src/widget/mf-search-view.c | 54 ++++++- src/widget/mf-setting-view.c | 62 ++++++++ src/widget/mf-storage-view.c | 16 +- src/widget/mf-tray-item.c | 116 ++++++++++++++- 31 files changed, 2012 insertions(+), 30 deletions(-) diff --git a/src/common/file-operation/mf-cancel.c b/src/common/file-operation/mf-cancel.c index c70715c..1193656 100644 --- a/src/common/file-operation/mf-cancel.c +++ b/src/common/file-operation/mf-cancel.c @@ -17,6 +17,10 @@ #include #include "mf-cancel.h" +/** + * + * @return + */ mf_cancel *mf_cancel_new(void) { mf_cancel *cancel = NULL; @@ -30,6 +34,10 @@ mf_cancel *mf_cancel_new(void) return cancel; } +/** + * + * @param cancel + */ void mf_cancel_free(mf_cancel * cancel) { if (cancel) { @@ -41,6 +49,10 @@ void mf_cancel_free(mf_cancel * cancel) return; } +/** + * + * @param cancel + */ void mf_cancel_do_cancel(mf_cancel * cancel) { if (cancel) { @@ -51,6 +63,11 @@ void mf_cancel_do_cancel(mf_cancel * cancel) return; } +/** + * + * @param cancel + * @return + */ gboolean mf_cancel_check_cancel(mf_cancel * cancel) { gboolean do_cancel = FALSE; @@ -64,6 +81,10 @@ gboolean mf_cancel_check_cancel(mf_cancel * cancel) return do_cancel; } +/** + * + * @param cancel + */ void mf_cancel_set_cancelled(mf_cancel * cancel) { if (cancel) { diff --git a/src/common/file-operation/mf-request.c b/src/common/file-operation/mf-request.c index f23391c..7c0df7f 100644 --- a/src/common/file-operation/mf-request.c +++ b/src/common/file-operation/mf-request.c @@ -33,6 +33,10 @@ struct _mf_fo_req { mf_request_type request; }; +/** + * + * @return + */ mf_fo_request *mf_request_new(void) { mf_fo_request *result = NULL; @@ -48,6 +52,10 @@ mf_fo_request *mf_request_new(void) return result; } +/** + * + * @param req + */ void mf_request_free(mf_fo_request * req) { if (req) { @@ -59,6 +67,11 @@ void mf_request_free(mf_fo_request * req) return; } +/** + * + * @param req + * @param result + */ void mf_request_set_result(mf_fo_request * req, mf_request_type result) { if (req) { @@ -75,6 +88,11 @@ void mf_request_set_result(mf_fo_request * req, mf_request_type result) return; } +/** + * + * @param req + * @param cond + */ void mf_request_set_cond(mf_fo_request * req, GCond * cond) { if (req) { @@ -83,6 +101,11 @@ void mf_request_set_cond(mf_fo_request * req, GCond * cond) return; } +/** + * + * @param req + * @param path + */ void mf_request_set_path(mf_fo_request * req, const char *path) { if (req) { @@ -91,6 +114,11 @@ void mf_request_set_path(mf_fo_request * req, const char *path) return; } +/** + * + * @param req + * @return + */ char *mf_request_get_new_name(mf_fo_request * req) { char *new_name = NULL; @@ -101,6 +129,11 @@ char *mf_request_get_new_name(mf_fo_request * req) return new_name; } +/** + * + * @param req + * @return + */ const char *mf_request_get_path(mf_fo_request * req) { if (req) { @@ -109,6 +142,11 @@ const char *mf_request_get_path(mf_fo_request * req) return NULL; } +/** + * + * @param req + * @return + */ mf_request_type mf_request_get_result(mf_fo_request * req) { mf_request_type request = MF_REQ_NONE; @@ -118,7 +156,9 @@ mf_request_type mf_request_get_result(mf_fo_request * req) return request; } - +/** + * + */ void mf_msg_request_handled_send() { pthread_mutex_lock(&gLockMsg); @@ -129,6 +169,11 @@ void mf_msg_request_handled_send() pthread_mutex_unlock(&gLockMsg); } +/** + * + * @param req + * @return + */ int mf_request_flag_get(mf_fo_request * req) { if (req) { @@ -137,6 +182,11 @@ int mf_request_flag_get(mf_fo_request * req) return -1; } +/** + * + * @param req + * @param value + */ void mf_request_flag_set(mf_fo_request * req, int value) { if (req) { diff --git a/src/common/file-operation/mf-search.c b/src/common/file-operation/mf-search.c index e5cc45c..e018281 100644 --- a/src/common/file-operation/mf-search.c +++ b/src/common/file-operation/mf-search.c @@ -26,7 +26,11 @@ /*+++++++++++++++++++++++ APIs +++++++++++++++++++++++*/ - +/** + * + * @param handle + * @return + */ int mf_search_init(mf_search_handle * handle) { int ret = 0; @@ -47,6 +51,19 @@ int mf_search_init(mf_search_handle * handle) return MF_SEARCH_ERROR_NONE; } +/** + * + * @param handle + * @param root_path + * @param path_num + * @param needle + * @param option + * @param user_data + * @param func + * @param category + * @param item_count + * @return + */ int mf_search_start(mf_search_handle handle, const char **root_path, unsigned int path_num, @@ -78,6 +95,11 @@ int mf_search_start(mf_search_handle handle, return ret; } +/** + * + * @param handle + * @return + */ int mf_search_stop(mf_search_handle handle) { int ret = 0; @@ -89,6 +111,10 @@ int mf_search_stop(mf_search_handle handle) return ret; } +/** + * + * @param handle + */ void mf_search_finalize(mf_search_handle * handle) { _mf_search_finalize((ms_handle_t **) handle); diff --git a/src/common/mf-detail.c b/src/common/mf-detail.c index 63f698a..949d0cf 100644 --- a/src/common/mf-detail.c +++ b/src/common/mf-detail.c @@ -29,6 +29,11 @@ #include "mf-edit-view.h" #include "mf-file-util.h" +/** + * + * @param ID + * @return + */ char *mf_detail_widget_get_text(const char *ID) { char *str; @@ -37,6 +42,11 @@ char *mf_detail_widget_get_text(const char *ID) } +/** + * + * @param data + * @param genlist + */ static void __mf_ug_detail_view_process_genlist(void *data, Evas_Object * genlist); @@ -77,6 +87,10 @@ static void __mf_ug_detail_view_init_data(void *data) UG_DETAIL_TRACE_END; } +/** + * + * @param data + */ void mf_ug_detail_view_init_data(void *data) { __mf_ug_detail_view_init_data(data); @@ -156,11 +170,19 @@ static void __mf_ug_detail_view_destroy_data(void *data) UG_DETAIL_TRACE_END; } +/** + * + * @param data + */ void mf_ug_detail_view_destroy_data(void *data) { __mf_ug_detail_view_destroy_data(data); } +/** + * + * @param data + */ void mf_detail_data_destroy(void *data) { MF_TRACE_BEGIN; @@ -177,6 +199,11 @@ void mf_detail_data_destroy(void *data) MF_TRACE_END; } +/** + * + * @param detail + * @param filesize + */ static void _mf_update_size_string(struct detailData *detail, char *filesize) { @@ -462,6 +489,12 @@ static Eina_Bool __mf_ug_detail_view_get_gl_state(void *data, return EINA_FALSE; } +/** + * + * @param data + * @param obj + * @param ei + */ static void __mf_ug_genlist_lang_changed(void *data, Evas_Object * obj, void *ei) { @@ -618,6 +651,11 @@ static void __mf_ug_detail_view_create_genlist_folder(void *data, } +/** + * + * @param data + * @param genlist + */ static void __mf_ug_detail_view_create_genlist_multi(void *data, Evas_Object * genlist) { @@ -920,6 +958,11 @@ static void __mf_ug_detail_view_process_genlist(void *data, UG_DETAIL_TRACE_END; } +/** + * + * @param data + * @param genlist + */ void mf_ug_detail_view_process_genlist(void *data, Evas_Object * genlist) { __mf_ug_detail_view_process_genlist(data, genlist); @@ -960,6 +1003,10 @@ static int __mf_ug_detail_get_file_view_type(const char *path) return view_type; } +/** + * + * @param data + */ static void __senior_info_get(void *data) { UG_DETAIL_TRACE_BEGIN; @@ -981,6 +1028,11 @@ static void __senior_info_get(void *data) UG_DETAIL_TRACE_END; } +/** + * + * @param dest_list + * @param path_list + */ void mf_ug_detail_get_params_path(Eina_List ** dest_list, const char *path_list) { @@ -997,6 +1049,13 @@ void mf_ug_detail_get_params_path(Eina_List ** dest_list, g_strfreev(result); } +/** + * + * @param list + * @param total_file_count + * @param total_folder_count + * @param total_size + */ void mf_ug_detail_get_multi_information(Eina_List * list, int *total_file_count, int *total_folder_count, @@ -1037,6 +1096,11 @@ void mf_ug_detail_get_multi_information(Eina_List * list, *total_folder_count = folder_count; } +/** + * + * @param path + * @return + */ struct detailData *mf_ug_detail_multi_info_extract(const char *path) { UG_DETAIL_TRACE_BEGIN; @@ -1091,6 +1155,11 @@ struct detailData *mf_ug_detail_multi_info_extract(const char *path) return data; } +/** + * + * @param path + * @return + */ struct detailData *mf_ug_detail_common_info_extract(const char *path) { UG_DETAIL_TRACE_BEGIN; diff --git a/src/common/mf-error.c b/src/common/mf-error.c index c86bb26..3cfd01a 100644 --- a/src/common/mf-error.c +++ b/src/common/mf-error.c @@ -18,6 +18,11 @@ #include "mf-error.h" #include "mf-dlog.h" +/** + * + * @param err_no + * @return + */ int mf_error_erron_to_mferror(int err_no) { int err = MYFILE_ERR_NONE; diff --git a/src/common/mf-file-util.c b/src/common/mf-file-util.c index c9b3a02..86cb366 100644 --- a/src/common/mf-file-util.c +++ b/src/common/mf-file-util.c @@ -22,6 +22,11 @@ static mode_t default_mode = S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH; +/** + * + * @param path + * @return + */ const char *mf_file_get(const char path[]) { char *file = NULL; @@ -34,6 +39,11 @@ const char *mf_file_get(const char path[]) return file; } +/** + * + * @param path + * @return + */ char *mf_dir_get(const char path[]) { char *p = NULL; @@ -51,6 +61,11 @@ char *mf_dir_get(const char path[]) return strdup(buf); } +/** + * + * @param path + * @return + */ int mf_file_exists(const char *path) { struct stat info = { 0, }; @@ -62,6 +77,11 @@ int mf_file_exists(const char *path) } } +/** + * + * @param path + * @return + */ Eina_Bool mf_is_dir(const char *path) { if (!path) { @@ -79,6 +99,11 @@ Eina_Bool mf_is_dir(const char *path) return 0; } +/** + * + * @param dir + * @return + */ int mf_mkdir(const char *dir) { if (mkdir(dir, default_mode) < 0) { @@ -88,6 +113,11 @@ int mf_mkdir(const char *dir) } } +/** + * + * @param path + * @return + */ static int mf_mkpath_if_not_exists(const char *path) { struct stat st = { 0, }; @@ -100,6 +130,11 @@ static int mf_mkpath_if_not_exists(const char *path) } } +/** + * + * @param path + * @return + */ int mf_mkpath(const char *path) { char ss[PATH_MAX] = { 0, }; @@ -126,6 +161,11 @@ int mf_mkpath(const char *path) return mf_mkpath_if_not_exists(ss); } +/** + * + * @param path + * @return + */ char *mf_strip_ext(const char *path) { char *p = NULL; @@ -145,6 +185,11 @@ char *mf_strip_ext(const char *path) return file; } +/** + * + * @param filename + * @return + */ int mf_file_unlink(const char *filename) { int status = unlink(filename); @@ -155,6 +200,11 @@ int mf_file_unlink(const char *filename) } } +/** + * + * @param filename + * @return + */ int mf_file_rmdir(const char *filename) { int status = rmdir(filename); @@ -165,6 +215,11 @@ int mf_file_rmdir(const char *filename) } } +/** + * + * @param dir + * @return + */ int mf_file_recursive_rm(const char *dir) { char buf[PATH_MAX_SIZE] = { 0, }; @@ -202,6 +257,12 @@ int mf_file_recursive_rm(const char *dir) } } +/** + * + * @param src + * @param dst + * @return + */ int mf_file_cp(const char *src, const char *dst) { FILE *f1 = NULL; @@ -243,6 +304,11 @@ int mf_file_cp(const char *src, const char *dst) return ret; } +/** + * + * @param filename + * @return + */ int mf_remove(const char *filename) { int status = remove(filename); diff --git a/src/common/mf-fs-monitor.c b/src/common/mf-fs-monitor.c index 0c2c2e8..2207460 100644 --- a/src/common/mf-fs-monitor.c +++ b/src/common/mf-fs-monitor.c @@ -34,6 +34,11 @@ typedef struct _mf_dir_event_t { static Eina_Bool monitor_refresh_start_flag = EINA_FALSE; +/** + * + * @param data + * @return + */ Eina_Bool __mf_fs_monitor_dir_pipe_add_cb(void *data) { struct appdata *ap = (struct appdata *) data; @@ -93,6 +98,12 @@ Eina_Bool __mf_fs_monitor_dir_pipe_add_cb(void *data) } +/** + * + * @param data + * @param buffer + * @param nbyte + */ static void __mf_callback_dir_pipe_cb(void *data, void *buffer, unsigned int nbyte) { @@ -144,6 +155,12 @@ static void __mf_callback_dir_pipe_cb(void *data, void *buffer, } } +/** + * + * @param event + * @param name + * @param data + */ static void __mf_fs_monitor_dir_update_cb(mf_inotify_event event, char *name, void *data) { @@ -159,6 +176,12 @@ static void __mf_fs_monitor_dir_update_cb(mf_inotify_event event, return; } +/** + * + * @param path + * @param data + * @return + */ int mf_fs_monitor_add_dir_watch(const char *path, void *data) { MF_TRACE_BEGIN; @@ -177,6 +200,10 @@ int mf_fs_monitor_add_dir_watch(const char *path, void *data) data); } +/** + * + * @return + */ int mf_fs_monitor_remove_dir_watch(void) { SAFE_FREE_CHAR(fs_monitor_dir_path); @@ -186,6 +213,11 @@ int mf_fs_monitor_remove_dir_watch(void) return mf_inotify_handle_rm_watch(); } +/** + * + * @param data + * @return + */ int mf_fs_monitor_create(void *data) { MF_TRACE_BEGIN; @@ -208,6 +240,9 @@ int mf_fs_monitor_create(void *data) return mf_inotify_handle_init_inotify(); } +/** + * + */ void mf_fs_monitor_destory() { if (fs_monitor_pipe) { diff --git a/src/common/mf-inotify-handle.c b/src/common/mf-inotify-handle.c index 0cc718d..a97d0df 100644 --- a/src/common/mf-inotify-handle.c +++ b/src/common/mf-inotify-handle.c @@ -52,6 +52,9 @@ typedef struct _mf_inotify_t { static pthread_mutex_t mf_noti_lock; static mf_inotify_t *g_handle = NULL; +/** + * + */ static void __mf_inotify_handle_free(void) { pthread_mutex_destroy(&mf_noti_lock); @@ -72,6 +75,10 @@ static void __mf_inotify_handle_free(void) return; } +/** + * + * @return + */ static mf_inotify_t *__mf_inotify_handle_init(void) { __mf_inotify_handle_free(); @@ -86,6 +93,10 @@ static mf_inotify_t *__mf_inotify_handle_init(void) return g_handle; } +/** + * + * @param data + */ static void __mf_inotify_handle_thread_clean_up(void *data) { pthread_mutex_t *lock = (pthread_mutex_t *) data; @@ -96,7 +107,11 @@ static void __mf_inotify_handle_thread_clean_up(void *data) return; } - +/** + * + * @param user_data + * @return + */ static gpointer __mf_inotify_handle_watch_thread(gpointer user_data) { mf_inotify_t *handle = (mf_inotify_t *) user_data; @@ -227,6 +242,9 @@ static gpointer __mf_inotify_handle_watch_thread(gpointer user_data) return NULL; } +/** + * + */ void mf_inotify_handle_request_handled_send() { pthread_mutex_lock(&mf_noti_lock); @@ -237,6 +255,10 @@ void mf_inotify_handle_request_handled_send() pthread_mutex_unlock(&mf_noti_lock); } +/** + * + * @return + */ int mf_inotify_handle_init_inotify(void) { mf_inotify_t *handle = NULL; @@ -269,6 +291,13 @@ int mf_inotify_handle_init_inotify(void) return 0; } +/** + * + * @param path + * @param callback + * @param user_data + * @return + */ int mf_inotify_handle_add_watch(const char *path, mf_inotify_cb callback, void *user_data) { @@ -332,8 +361,10 @@ int mf_inotify_handle_add_watch(const char *path, mf_inotify_cb callback, return 0; } - - +/** + * + * @return + */ int mf_inotify_handle_rm_watch(void) { int ret = -1; @@ -384,6 +415,9 @@ int mf_inotify_handle_rm_watch(void) return 0; } +/** + * + */ void mf_inotify_handle_finalize_inotify(void) { mf_inotify_t *handle = NULL; diff --git a/src/common/mf-media-content.c b/src/common/mf-media-content.c index 18b7541..727ce66 100644 --- a/src/common/mf-media-content.c +++ b/src/common/mf-media-content.c @@ -23,6 +23,11 @@ pthread_mutex_t gLockMediaContent; +/** + * + * @param filter + * @return + */ int mf_media_content_destroy_filter(filter_h filter) { mf_retvm_if(filter == NULL, -1, "filter is NULL"); @@ -32,6 +37,11 @@ int mf_media_content_destroy_filter(filter_h filter) return ret; } +/** + * + * @param condition + * @return + */ int mf_media_content_data_count_get(const char *condition) { int ret = MEDIA_CONTENT_ERROR_NONE; @@ -67,6 +77,13 @@ int mf_media_content_data_count_get(const char *condition) return count; } +/** + * + * @param data + * @param condition + * @param func + * @return + */ int mf_media_content_data_get(void *data, char *condition, bool(*func) (media_info_h media, void *data)) { @@ -99,6 +116,10 @@ int mf_media_content_data_get(void *data, char *condition, return ret; } +/** + * + * @param path + */ void mf_media_content_scan_file(const char *path) { mf_retm_if(path == NULL, "path is NULL"); @@ -107,6 +128,10 @@ void mf_media_content_scan_file(const char *path) pthread_mutex_unlock(&gLockMediaContent); } +/** + * + * @param path + */ void mf_media_content_scan_folder(const char *path) { mf_retm_if(path == NULL, "path is NULL"); @@ -116,6 +141,9 @@ void mf_media_content_scan_folder(const char *path) pthread_mutex_unlock(&gLockMediaContent); } +/** + * + */ void mf_media_content_disconnect() { pthread_mutex_lock(&gLockMediaContent); diff --git a/src/common/mf-storage-space.c b/src/common/mf-storage-space.c index fd8de7e..ca2cfe7 100644 --- a/src/common/mf-storage-space.c +++ b/src/common/mf-storage-space.c @@ -22,6 +22,12 @@ mfStorageStatus g_mf_storage_status; Update_Info g_recent_info; static double recent_total_size = 0; +/** + * + * @param media + * @param data + * @return + */ static bool __mf_storage_main_media_item_cb(media_info_h media, void *data) { mf_retvm_if(media == NULL, true, "media is NULL"); @@ -99,6 +105,10 @@ static bool __mf_storage_main_media_item_cb(media_info_h media, void *data) return true; } +/** + * + * @return + */ static double __mf_storage_main_picture_status_get() { MF_TRACE_BEGIN; @@ -149,6 +159,10 @@ static double __mf_storage_main_picture_status_get() return g_mf_storage_status.total_size; } +/** + * + * @return + */ static double __mf_storage_main_video_status_get() { MF_TRACE_BEGIN; @@ -198,7 +212,10 @@ static double __mf_storage_main_video_status_get() return g_mf_storage_status.total_size; } - +/** + * + * @return + */ static double __mf_storage_main_sound_status_get() { MF_TRACE_BEGIN; @@ -249,6 +266,10 @@ static double __mf_storage_main_sound_status_get() return g_mf_storage_status.total_size; } +/** + * + * @return + */ static double __mf_storage_main_document_status_get() { MF_TRACE_BEGIN; @@ -299,6 +320,10 @@ static double __mf_storage_main_document_status_get() return g_mf_storage_status.total_size; } +/** + * + * @return + */ double __mf_storage_main_download_status_get() { struct appdata *ap = mf_get_appdata(); @@ -325,6 +350,12 @@ double __mf_storage_main_download_status_get() return size; } +/** + * + * @param data + * @param buffer + * @param nbyte + */ void __mf_storage_main_pipe_cb(void *data, void *buffer, unsigned int nbyte) { @@ -407,6 +438,10 @@ void __mf_storage_main_pipe_cb(void *data, void *buffer, } } +/** + * + * @param data + */ static void *__mf_storage_main_thread_start_routine(void *data) { MF_TRACE_BEGIN; @@ -542,6 +577,10 @@ static void *__mf_storage_main_thread_start_routine(void *data) MF_TRACE_END; } +/** + * + * @param data + */ static void __mf_storage_main_init(void *data) { MF_TRACE_BEGIN; @@ -566,6 +605,11 @@ static void __mf_storage_main_init(void *data) MF_TRACE_END; } +/** + * + * @param app_data + * @return + */ int mf_storage_create(void *app_data) { MF_TRACE_BEGIN; @@ -596,6 +640,11 @@ int mf_storage_create(void *app_data) return 1; } +/** + * + * @param app_data + * @return + */ int mf_storage_destroy(void *app_data) { MF_TRACE_BEGIN; @@ -643,6 +692,12 @@ int mf_storage_destroy(void *app_data) return 0; } +/** + * + * @param app_data + * @param update_cb + * @return + */ int mf_storage_set_update_cb(void *app_data, mf_storage_update_cb update_cb) { @@ -651,11 +706,21 @@ int mf_storage_set_update_cb(void *app_data, return 0; } +/** + * + * @param app_data + * @return + */ mfStorageStatus *mf_storage_get_status(void *app_data) { return &g_mf_storage_status; } +/** + * + * @param app_data + * @return + */ int mf_storage_refresh(void *app_data) { MF_TRACE_BEGIN; @@ -665,6 +730,12 @@ int mf_storage_refresh(void *app_data) return 1; } +/** + * + * @param Ritem + * @param user_data + * @return + */ bool mf_storage_get_recent_files_size_cb(MFRitem * Ritem, void *user_data) { if (Ritem && Ritem->path) { @@ -684,6 +755,9 @@ bool mf_storage_get_recent_files_size_cb(MFRitem * Ritem, void *user_data) return true; } +/** + * + */ void mf_storage_get_recent_files_size() { struct appdata *ap = mf_get_appdata(); @@ -699,6 +773,11 @@ void mf_storage_get_recent_files_size() //mf_category_storage_size_refresh(mf_tray_item_category_recent, &g_recent_info, NULL); } +/** + * + * @param data + * @param total_size + */ void mf_download_calculate_total_size(void *data, double *total_size) { struct appdata *ap = (struct appdata *) data; diff --git a/src/common/mf-ug-detail-fs.c b/src/common/mf-ug-detail-fs.c index 57137ee..b13e40e 100644 --- a/src/common/mf-ug-detail-fs.c +++ b/src/common/mf-ug-detail-fs.c @@ -133,6 +133,12 @@ static struct _ug_dt_ftype_by_mime dt_mime_type[] = { {NULL, FILE_TYPE_ETC}, }; +/** + * + * @param filename + * @param node + * @return + */ int mf_ug_detaill_fs_get_file_stat(const char *filename, Node_Info ** node) { struct stat statbuf = { 0 }; @@ -168,6 +174,11 @@ int mf_ug_detaill_fs_get_file_stat(const char *filename, Node_Info ** node) return UG_MYFILE_ERR_NONE; } +/** + * + * @param filepath + * @return + */ int mf_ug_detail_fs_is_dir(const char *filepath) { if (filepath == NULL) { @@ -571,6 +582,12 @@ static File_Type __mf_ug_detail_fs_get_category_by_file_ext(const char return FILE_TYPE_ETC; } +/** + * + * @param filepath + * @param category + * @return + */ int mf_ug_detail_fs_get_file_type(const char *filepath, File_Type * category) { @@ -697,6 +714,11 @@ int mf_ug_detail_fs_get_logi_path(const char *full_path, char *path) return UG_MYFILE_ERR_NONE; } +/** + * + * @param path + * @return + */ GString *mf_ug_detail_fs_parse_file_type(GString * path) { GString *catetory = NULL; @@ -852,6 +874,12 @@ int mf_ug_detail_fs_get_list_len(const Eina_List * list) return eina_list_count(list); } +/** + * + * @param path + * @param parent_path + * @return + */ static int __mf_ug_detail_fs_get_parent_path(const char *path, char *parent_path) { @@ -879,6 +907,11 @@ static int __mf_ug_detail_fs_get_parent_path(const char *path, return UG_MYFILE_ERR_NONE; } +/** + * + * @param fullpath + * @return + */ GString *mf_ug_detail_fs_get_parent(char *fullpath) { myfile_dlog("%s %d\n", __func__, __LINE__); @@ -1039,6 +1072,11 @@ int mf_ug_detail_fs_get_file_list(GString * folder_name, return error_code; } +/** + * + * @param path + * @return + */ LONG_LONG_UNSIGNED_INT mf_ug_detail_fs_get_storage_size(char *path) { LONG_LONG_UNSIGNED_INT use_space = 0; @@ -1056,6 +1094,11 @@ LONG_LONG_UNSIGNED_INT mf_ug_detail_fs_get_storage_size(char *path) return use_space; } +/** + * + * @param path + * @return + */ LONG_LONG_UNSIGNED_INT mf_ug_detail_fs_get_folder_size(char *path) { myfile_dlog("%s %d\n", __func__, __LINE__); diff --git a/src/common/mf-ug-detail-media.c b/src/common/mf-ug-detail-media.c index 1e26f12..681733f 100644 --- a/src/common/mf-ug-detail-media.c +++ b/src/common/mf-ug-detail-media.c @@ -137,6 +137,9 @@ static struct _ftype_by_mime mime_type[] = { #define SAFE_FREE(src) { if (src) { free(src); src = NULL; } } +/** + * + */ static void __mf_ug_detail_media_set_default_timezone_id() { i18n_uchar utimezone_id[UG_ICU_ARR_LENGTH] = { 0 }; @@ -189,6 +192,13 @@ static void __mf_ug_detail_media_set_default_timezone_id() } } +/** + * + * @param locale + * @param customSkeleton + * @param date + * @return + */ static char *__mf_ug_detail_media_get_best_pattern(const char *locale, i18n_uchar * customSkeleton, @@ -248,6 +258,11 @@ static char *__mf_ug_detail_media_get_best_pattern(const char *locale, return g_strdup(formattedString); } +/** + * + * @param date + * @return + */ char *mf_ug_detail_media_get_icu_date(i18n_udate date) { char *datestr = NULL; @@ -313,6 +328,11 @@ char *mf_ug_detail_media_get_icu_date(i18n_udate date) return datestr; } +/** + * + * @param data + * @param path + */ static void __mf_ug_detail_media_get_file_path(void *data, char *path) { ug_detail_retm_if(data == NULL, "data is NULL"); @@ -330,7 +350,11 @@ static void __mf_ug_detail_media_get_file_path(void *data, char *path) } } - +/** + * + * @param data + * @param path + */ static void __mf_ug_detail_media_get_file_name(void *data, char *path) { ug_detail_retm_if(data == NULL, "data is NULL"); @@ -356,6 +380,10 @@ static void __mf_ug_detail_media_get_file_name(void *data, char *path) } } +/** + * + * @param data + */ static void __mf_ug_detail_media_get_file_type(void *data) { ug_detail_retm_if(data == NULL, "data is NULL"); @@ -379,6 +407,11 @@ static void __mf_ug_detail_media_get_file_type(void *data) } } +/** + * + * @param data + * @param path + */ void mf_ug_detail_media_get_file_location(void *data, char *path) { ug_detail_retm_if(data == NULL, "data is NULL"); @@ -437,6 +470,11 @@ void mf_ug_detail_media_get_file_location(void *data, char *path) } } +/** + * + * @param data + * @param path + */ static void __mf_ug_detail_media_get_file_contains(void *data, char *path) { ug_detail_retm_if(data == NULL, "data is NULL"); @@ -497,6 +535,12 @@ static void __mf_ug_detail_media_get_file_contains(void *data, char *path) } } +/** + * + * @param data + * @param pNode + * @param path + */ static void __mf_ug_detail_media_get_file_size(void *data, Node_Info * pNode, char *path) @@ -541,6 +585,11 @@ static void __mf_ug_detail_media_get_file_size(void *data, myfile_dlog("\n ap->mf_Info.unit_num=%d", ap->mf_Info.unit_num); } +/** + * + * @param data + * @param pNode + */ static void __mf_ug_detail_media_get_file_date(void *data, Node_Info * pNode) { @@ -581,6 +630,11 @@ static void __mf_ug_detail_media_get_file_date(void *data, } } +/** + * + * @param file_path + * @return + */ char *mf_ug_detail_media_get_file_ext_by_mime(const char *file_path) { int index; @@ -615,6 +669,11 @@ char *mf_ug_detail_media_get_file_ext_by_mime(const char *file_path) return ext; } +/** + * + * @param data + * @param path + */ void mf_ug_detail_media_get_file_ext(void *data, char *path) { ug_detail_retm_if(data == NULL, "data is NULL"); diff --git a/src/media-db/mf-media-db.c b/src/media-db/mf-media-db.c index 8463979..374e41a 100644 --- a/src/media-db/mf-media-db.c +++ b/src/media-db/mf-media-db.c @@ -57,11 +57,19 @@ static sqlite3_callback sqlite3_func = NULL; static void *func_params = NULL; +/** + * + * @param func + */ static void __mf_media_db_cb_set(sqlite3_callback func) { sqlite3_func = func; } +/** + * + * @param params + */ static void __mf_media_db_cb_params_set(void *params) { func_params = params; @@ -124,6 +132,12 @@ mf_tbl_s mf_tbl[MF_TABLE_NUM] = { } }; +/** + * + * @param pData + * @param count + * @return + */ static int __mf_busy_handler(void *pData, int count) { usleep(50000); @@ -133,6 +147,15 @@ static int __mf_busy_handler(void *pData, int count) return 100 - count; } +/** + * + * @param p_db + * @param sql + * @param callback + * @param params + * @param errmsg + * @return + */ int mf_sqlite3_exec(sqlite3 * p_db, /* An open database */ const char *sql, /* SQL to be evaluated */ int (*callback) (void *, int, char **, char **), /* Callback function */ @@ -159,6 +182,11 @@ int mf_sqlite3_exec(sqlite3 * p_db, /* An open database */ return result; } +/** + * + * @param mfd_handle + * @return + */ static int __mf_sqlite3_commit_trans(MFDHandle * mfd_handle) { char *err_msg = NULL; @@ -187,7 +215,13 @@ static int __mf_sqlite3_commit_trans(MFDHandle * mfd_handle) return 0; } - +/** + * + * @param stmt + * @param pos + * @param str + * @return + */ static int __mf_query_bind_text(sqlite3_stmt * stmt, int pos, const char *str) { @@ -201,6 +235,13 @@ static int __mf_query_bind_text(sqlite3_stmt * stmt, int pos, } } +/** + * + * @param stmt + * @param pos + * @param num + * @return + */ static int __mf_query_bind_int(sqlite3_stmt * stmt, int pos, int num) { assert(NULL != stmt); @@ -208,6 +249,12 @@ static int __mf_query_bind_int(sqlite3_stmt * stmt, int pos, int num) return sqlite3_bind_int(stmt, pos, num); } +/** + * + * @param stmt + * @param pos + * @return + */ static char *__mf_query_table_column_text(sqlite3_stmt * stmt, int pos) { assert(NULL != stmt); @@ -216,6 +263,12 @@ static char *__mf_query_table_column_text(sqlite3_stmt * stmt, int pos) return (char *) sqlite3_column_text(stmt, pos); } +/** + * + * @param stmt + * @param pos + * @return + */ static int __mf_query_table_column_int(sqlite3_stmt * stmt, int pos) { assert(NULL != stmt); @@ -223,6 +276,11 @@ static int __mf_query_table_column_int(sqlite3_stmt * stmt, int pos) return sqlite3_column_int(stmt, pos); } +/** + * + * @param textbuf + * @param output + */ static void __mf_data_to_text(char *textbuf, char **output) { if (textbuf && strlen(textbuf) > 0) { @@ -234,7 +292,12 @@ static void __mf_data_to_text(char *textbuf, char **output) } } - +/** + * + * @param mfd_handle + * @param query_str + * @return + */ static int __mf_query_sql(MFDHandle * mfd_handle, char *query_str) { int err = -1; @@ -268,6 +331,11 @@ static int __mf_query_sql(MFDHandle * mfd_handle, char *query_str) return err; } +/** + * + * @param mfd_handle + * @return + */ static int __mf_sqlite3_begin_trans(MFDHandle * mfd_handle) { char *err_msg = NULL; @@ -296,6 +364,11 @@ static int __mf_sqlite3_begin_trans(MFDHandle * mfd_handle) return 0; } +/** + * + * @param mfd_handle + * @return + */ static int __mf_sqlite3_rollback_trans(MFDHandle * mfd_handle) { char *err_msg = NULL; @@ -323,6 +396,11 @@ static int __mf_sqlite3_rollback_trans(MFDHandle * mfd_handle) return 0; } +/** + * + * @param stmt + * @param sitem + */ static void __mf_convert_shortcut_column_to_sitem(sqlite3_stmt * stmt, MFSitem * sitem) { @@ -338,6 +416,13 @@ static void __mf_convert_shortcut_column_to_sitem(sqlite3_stmt * stmt, sitem->storage_type = storage_type; } +/** + * + * @param data + * @param column + * @param column_value + * @param column_name + */ static void __mf_convert_shortcut_display_name(void *data, int column, char **column_value, char **column_name) @@ -352,6 +437,12 @@ static void __mf_convert_shortcut_display_name(void *data, int column, } } +/** + * + * @param callback + * @param data + * @param user_data + */ static void __mf_foreach_shortcut_sitem_cb(mf_shortcut_item_cb callback, void *data, void *user_data) { @@ -367,11 +458,20 @@ static void __mf_foreach_shortcut_sitem_cb(mf_shortcut_item_cb callback, } } +/** + * + * @param data + */ static void __mf_free_shortcut_list(void *data) { mf_destroy_shortcut_item(data); } +/** + * + * @param stmt + * @param ritem + */ static void __mf_convert_recent_files_column_to_citem(sqlite3_stmt * stmt, MFRitem * ritem) { @@ -396,6 +496,12 @@ static void __mf_convert_recent_files_column_to_citem(sqlite3_stmt * stmt, } +/** + * + * @param callback + * @param data + * @param user_data + */ static void __mf_foreach_recent_files_ritem_cb(mf_recent_files_item_cb callback, void *data, void *user_data) @@ -413,11 +519,20 @@ static void __mf_foreach_recent_files_ritem_cb(mf_recent_files_item_cb } } +/** + * + * @param data + */ static void __mf_free_recent_files_list(void *data) { mf_destroy_recent_files_item(data); } +/** + * + * @param list + * @param func + */ static void __mf_media_db_eina_list_free_full(Eina_List ** list, void (*func) (void *data)) { @@ -432,6 +547,11 @@ static void __mf_media_db_eina_list_free_full(Eina_List ** list, *list = NULL; } +/** + * + * @param db_handle + * @return + */ int mf_connect_db_with_handle(sqlite3 ** db_handle) { int ret = MFD_ERROR_NONE; @@ -528,6 +648,11 @@ int mf_connect_db_with_handle(sqlite3 ** db_handle) return MFD_ERROR_NONE; } +/** + * + * @param db_handle + * @return + */ int mf_disconnect_db_with_handle(sqlite3 * db_handle) { int ret = MFD_ERROR_NONE; @@ -544,7 +669,13 @@ int mf_disconnect_db_with_handle(sqlite3 * db_handle) } //1 Shortcut - +/** + * + * @param mfd_handle + * @param new_name + * @param old_name + * @return + */ int mf_update_shortcut(MFDHandle * mfd_handle, const char *new_name, char *old_name) { @@ -583,6 +714,14 @@ int mf_update_shortcut(MFDHandle * mfd_handle, const char *new_name, } /* No shortcut : 0, find Shortcut : 1 */ +/** + * + * @param mfd_handle + * @param shortcut_path + * @param shortcut_name + * @param storage_type + * @return + */ int mf_find_shortcut(MFDHandle * mfd_handle, const char *shortcut_path, const char *shortcut_name, int storage_type) { @@ -646,6 +785,12 @@ int mf_find_shortcut(MFDHandle * mfd_handle, const char *shortcut_path, return find; } +/** + * + * @param mfd_handle + * @param shortcut_name + * @return + */ int mf_find_shortcut_display_name(MFDHandle * mfd_handle, const char *shortcut_name) { @@ -705,6 +850,14 @@ int mf_find_shortcut_display_name(MFDHandle * mfd_handle, return find; } +/** + * + * @param mfd_handle + * @param shortcut_path + * @param shortcut_name + * @param storage_type + * @return + */ int mf_insert_shortcut(MFDHandle * mfd_handle, const char *shortcut_path, const char *shortcut_name, int storage_type) { @@ -745,6 +898,12 @@ int mf_insert_shortcut(MFDHandle * mfd_handle, const char *shortcut_path, return MFD_ERROR_NONE; } +/** + * + * @param mfd_handle + * @param shortcut_path + * @return + */ int mf_delete_shortcut(MFDHandle * mfd_handle, const char *shortcut_path) { mf_debug(""); @@ -795,6 +954,12 @@ int mf_delete_shortcut(MFDHandle * mfd_handle, const char *shortcut_path) return MFD_ERROR_NONE; } +/** + * + * @param mfd_handle + * @param storage_type + * @return + */ int mf_delete_shortcut_by_type(MFDHandle * mfd_handle, int storage_type) { mf_debug(""); @@ -840,6 +1005,13 @@ int mf_delete_shortcut_by_type(MFDHandle * mfd_handle, int storage_type) return MFD_ERROR_NONE; } +/** + * + * @param mfd_handle + * @param callback + * @param user_data + * @return + */ int mf_foreach_shortcut_list(MFDHandle * mfd_handle, mf_shortcut_item_cb callback, void *user_data) { @@ -905,6 +1077,12 @@ int mf_foreach_shortcut_list(MFDHandle * mfd_handle, return MFD_ERROR_NONE; } +/** + * + * @param mfd_handle + * @param count + * @return + */ int mf_get_short_count(MFDHandle * mfd_handle, int *count) { mf_debug(""); @@ -953,6 +1131,13 @@ int mf_get_short_count(MFDHandle * mfd_handle, int *count) return MFD_ERROR_NONE; } +/** + * + * @param mfd_handle + * @param fullpath + * @param name + * @return + */ int mf_get_shortcut_display_name(MFDHandle * mfd_handle, const char *fullpath, char **name) { @@ -1010,6 +1195,13 @@ int mf_get_shortcut_display_name(MFDHandle * mfd_handle, return MFD_ERROR_NONE; } +/** + * + * @param mfd_handle + * @param new_name + * @param old_name + * @return + */ int mf_update_shortcut_display_name(MFDHandle * mfd_handle, const char *new_name, const char *old_name) @@ -1048,6 +1240,15 @@ int mf_update_shortcut_display_name(MFDHandle * mfd_handle, return MFD_ERROR_NONE; } +/** + * + * @param mfd_handle + * @param path + * @param name + * @param storage_type + * @param thumbnail_path + * @return + */ int mf_insert_recent_file(MFDHandle * mfd_handle, const char *path, const char *name, int storage_type, const char *thumbnail_path) @@ -1105,6 +1306,12 @@ int mf_insert_recent_file(MFDHandle * mfd_handle, const char *path, return MFD_ERROR_NONE; } +/** + * + * @param mfd_handle + * @param path + * @return + */ int mf_delete_recent_files(MFDHandle * mfd_handle, const char *path) { mf_debug(""); @@ -1155,6 +1362,12 @@ int mf_delete_recent_files(MFDHandle * mfd_handle, const char *path) return MFD_ERROR_NONE; } +/** + * + * @param mfd_handle + * @param storage_type + * @return + */ int mf_delete_recent_files_by_type(MFDHandle * mfd_handle, int storage_type) { @@ -1201,6 +1414,13 @@ int mf_delete_recent_files_by_type(MFDHandle * mfd_handle, return MFD_ERROR_NONE; } +/** + * + * @param mfd_handle + * @param thumbnail + * @param new_thumbnail + * @return + */ int mf_update_recent_files_thumbnail(MFDHandle * mfd_handle, const char *thumbnail, const char *new_thumbnail) @@ -1245,7 +1465,13 @@ int mf_update_recent_files_thumbnail(MFDHandle * mfd_handle, return MFD_ERROR_NONE; } - +/** + * + * @param mfd_handle + * @param new_name + * @param old_name + * @return + */ int mf_update_recent_files_name(MFDHandle * mfd_handle, const char *new_name, char *old_name) { @@ -1283,6 +1509,13 @@ int mf_update_recent_files_name(MFDHandle * mfd_handle, return MFD_ERROR_NONE; } +/** + * + * @param mfd_handle + * @param callback + * @param user_data + * @return + */ int mf_foreach_recent_files_list(MFDHandle * mfd_handle, mf_recent_files_item_cb callback, void *user_data) @@ -1350,7 +1583,12 @@ int mf_foreach_recent_files_list(MFDHandle * mfd_handle, return MFD_ERROR_NONE; } - +/** + * + * @param mfd_handle + * @param count + * @return + */ int mf_get_recent_files_count(MFDHandle * mfd_handle, int *count) { mf_debug(""); @@ -1399,6 +1637,12 @@ int mf_get_recent_files_count(MFDHandle * mfd_handle, int *count) return MFD_ERROR_NONE; } +/** + * + * @param mfd_handle + * @param path + * @return + */ int mf_find_recent_file(MFDHandle * mfd_handle, const char *path) { mf_debug(""); diff --git a/src/media-db/mf-media.c b/src/media-db/mf-media.c index 90c9356..efd8d4a 100644 --- a/src/media-db/mf-media.c +++ b/src/media-db/mf-media.c @@ -22,6 +22,11 @@ #include "mf-dlog.h" #include "mf-media-types.h" +/** + * + * @param handle + * @return + */ int mf_media_connect(MFDHandle ** handle) { int ret = MFD_ERROR_NONE; @@ -37,6 +42,11 @@ int mf_media_connect(MFDHandle ** handle) } +/** + * + * @param handle + * @return + */ int mf_media_disconnect(MFDHandle * handle) { sqlite3 *db_handle = (sqlite3 *) handle; @@ -48,6 +58,14 @@ int mf_media_disconnect(MFDHandle * handle) return mf_disconnect_db_with_handle(db_handle); } +/** + * + * @param mfd_handle + * @param shortcut_path + * @param shortcut_name + * @param storage_type + * @return + */ int mf_media_find_shortcut(MFDHandle * mfd_handle, const char *shortcut_path, const char *shortcut_name, int storage_type) @@ -66,6 +84,12 @@ int mf_media_find_shortcut(MFDHandle * mfd_handle, return find; } +/** + * + * @param mfd_handle + * @param shortcut_name + * @return + */ int mf_media_find_shortcut_display_name(MFDHandle * mfd_handle, const char *shortcut_name) { @@ -81,6 +105,14 @@ int mf_media_find_shortcut_display_name(MFDHandle * mfd_handle, return find; } +/** + * + * @param mfd_handle + * @param shortcut_path + * @param shortcut_name + * @param storage_type + * @return + */ int mf_media_add_shortcut(MFDHandle * mfd_handle, const char *shortcut_path, const char *shortcut_name, int storage_type) @@ -103,6 +135,12 @@ int mf_media_add_shortcut(MFDHandle * mfd_handle, return ret; } +/** + * + * @param mfd_handle + * @param path + * @return + */ int mf_media_delete_shortcut(MFDHandle * mfd_handle, const char *path) { int ret = MFD_ERROR_NONE; @@ -121,6 +159,12 @@ int mf_media_delete_shortcut(MFDHandle * mfd_handle, const char *path) return ret; } +/** + * + * @param mfd_handle + * @param storage_type + * @return + */ int mf_media_delete_shortcut_by_type(MFDHandle * mfd_handle, int storage_type) { @@ -140,6 +184,15 @@ int mf_media_delete_shortcut_by_type(MFDHandle * mfd_handle, return ret; } +/** + * + * @param mfd_handle + * @param path + * @param name + * @param storage_type + * @param thumbnail_path + * @return + */ int mf_media_add_recent_files(MFDHandle * mfd_handle, const char *path, const char *name, int storage_type, const char *thumbnail_path) @@ -162,6 +215,12 @@ int mf_media_add_recent_files(MFDHandle * mfd_handle, const char *path, return ret; } +/** + * + * @param mfd_handle + * @param path + * @return + */ int mf_media_delete_recent_files(MFDHandle * mfd_handle, const char *path) { int ret = MFD_ERROR_NONE; @@ -180,6 +239,12 @@ int mf_media_delete_recent_files(MFDHandle * mfd_handle, const char *path) return ret; } +/** + * + * @param mfd_handle + * @param storage_type + * @return + */ int mf_media_delete_recent_files_by_type(MFDHandle * mfd_handle, int storage_type) { @@ -199,6 +264,13 @@ int mf_media_delete_recent_files_by_type(MFDHandle * mfd_handle, return ret; } +/** + * + * @param mfd_handle + * @param callback + * @param user_data + * @return + */ int mf_media_foreach_shortcut_list(MFDHandle * mfd_handle, mf_shortcut_item_cb callback, void *user_data) @@ -219,6 +291,13 @@ int mf_media_foreach_shortcut_list(MFDHandle * mfd_handle, return ret; } +/** + * + * @param mfd_handle + * @param fullpath + * @param name + * @return + */ int mf_media_shortcut_list_get_display_name(MFDHandle * mfd_handle, const char *fullpath, char **name) @@ -239,6 +318,13 @@ int mf_media_shortcut_list_get_display_name(MFDHandle * mfd_handle, return ret; } +/** + * + * @param mfd_handle + * @param name + * @param fullpath + * @return + */ int mf_media_shortcut_update_name(MFDHandle * mfd_handle, char *name, const char *fullpath) { @@ -258,7 +344,13 @@ int mf_media_shortcut_update_name(MFDHandle * mfd_handle, char *name, return ret; } - +/** + * + * @param mfd_handle + * @param callback + * @param user_data + * @return + */ int mf_media_foreach_recent_files_list(MFDHandle * mfd_handle, mf_recent_files_item_cb callback, void *user_data) @@ -279,6 +371,12 @@ int mf_media_foreach_recent_files_list(MFDHandle * mfd_handle, return ret; } +/** + * + * @param mfd_handle + * @param count + * @return + */ int mf_media_get_short_count(MFDHandle * mfd_handle, int *count) { int ret = MFD_ERROR_NONE; @@ -297,6 +395,12 @@ int mf_media_get_short_count(MFDHandle * mfd_handle, int *count) return ret; } +/** + * + * @param mfd_handle + * @param count + * @return + */ int mf_media_get_recent_files_count(MFDHandle * mfd_handle, int *count) { int ret = MFD_ERROR_NONE; @@ -315,8 +419,11 @@ int mf_media_get_recent_files_count(MFDHandle * mfd_handle, int *count) return ret; } - - +/** + * + * @param sitem + * @return + */ int mf_destroy_shortcut_item(MFSitem * sitem) { if (sitem == NULL) { @@ -335,6 +442,11 @@ int mf_destroy_shortcut_item(MFSitem * sitem) return MFD_ERROR_NONE; } +/** + * + * @param ritem + * @return + */ int mf_destroy_recent_files_item(MFRitem * ritem) { if (ritem == NULL) { diff --git a/src/mf-main.c b/src/mf-main.c index 34944f8..3d5f1b2 100644 --- a/src/mf-main.c +++ b/src/mf-main.c @@ -85,11 +85,19 @@ struct appdata *g_myfile_app_data = NULL; data_control_sql_response_cb mf_sql_callback; +/** + * + * @return + */ struct appdata *mf_get_appdata() { return g_myfile_app_data; } +/** + * + * @param data + */ static void __mf_main_data_init(void *data) { MF_TRACE_BEGIN; @@ -206,6 +214,11 @@ static Evas_Object *__mf_main_create_win(const char *name) } } +/** + * + * @param parent + * @return + */ static Evas_Object *__mf_main_create_bg(Evas_Object * parent) { MF_TRACE_BEGIN; @@ -257,6 +270,11 @@ static void __mf_main_view_create(void *data) } +/** + * + * @param data + * @return + */ static Eina_Bool __mf_main_app_init_idler_cb(void *data) { MF_TRACE_BEGIN; @@ -330,6 +348,12 @@ static Eina_Bool __mf_main_app_init_idler_cb(void *data) return ECORE_CALLBACK_CANCEL; } +/** + * + * @param app_control + * @param data + * @return + */ static int __mf_main_remake_app(app_control_h app_control, void *data) { MF_TRACE_BEGIN; @@ -396,6 +420,10 @@ static void __mf_main_storage_status_get(void *data) MF_TRACE_END; } +/** + * + * @param win + */ void __mf_main_rotation_list_register(Evas_Object * win) { MF_TRACE_BEGIN; @@ -408,6 +436,11 @@ void __mf_main_rotation_list_register(Evas_Object * win) } +/** + * + * @param data + * @param win + */ void __mf_main_rotation_callback_register(void *data, Evas_Object * win) { MF_TRACE_BEGIN; @@ -423,6 +456,10 @@ static int initialization_done_extra = 0; static pthread_t thread_init; static int initialization_done = 0; +/** + * + * @param data + */ void *initialization_extra(void *data) { struct appdata *ap = (struct appdata *) data; @@ -436,6 +473,10 @@ void *initialization_extra(void *data) return NULL; } +/** + * + * @param data + */ static void run_extra(void *data) { pthread_t thread_extra; @@ -448,6 +489,11 @@ static void run_extra(void *data) } } +/** + * + * @param data + * @return + */ bool initialization(void *data) { struct appdata *ap = (struct appdata *) data; @@ -484,6 +530,11 @@ bool initialization(void *data) return TRUE; } +/** + * + * @param data + * @return + */ Eina_Bool my_idle_enterer_cb(void *data) { mf_debug("idler called"); @@ -508,6 +559,10 @@ Eina_Bool my_idle_enterer_cb(void *data) return ECORE_CALLBACK_DONE; } +/** + * + * @param data + */ void mf_initialize_datacontrol_consumer(void *data) { struct appdata *ap = (struct appdata *) data; @@ -562,6 +617,11 @@ void mf_initialize_datacontrol_consumer(void *data) return; } +/** + * + * @param data + * @return + */ bool __mf_main_create_app(void *data) { MF_TA_ACUM_ITEM_BEGIN("__mf_main_create_app", 0); @@ -699,6 +759,11 @@ bool __mf_main_create_app(void *data) return true; } +/** + * + * @param service + * @param data + */ static void __mf_main_bundle_parse(app_control_h service, void *data) { MF_TRACE_BEGIN; @@ -734,6 +799,11 @@ static void __mf_main_bundle_parse(app_control_h service, void *data) t_end; } +/** + * + * @param app_control + * @param data + */ static void __mf_main_reset_app(app_control_h app_control, void *data) { MF_TRACE_BEGIN; @@ -950,6 +1020,10 @@ static void __mf_main_reset_app(app_control_h app_control, void *data) MF_TRACE_END; } +/** + * + * @param data + */ static void __mf_main_resume_app(void *data) { MF_TRACE_BEGIN; @@ -1209,6 +1283,12 @@ static void __mf_language_changed_cb(app_event_info_h event_info, MF_TRACE_END; } +/** + * + * @param argc + * @param argv + * @return + */ EXPORT_API int main(int argc, char *argv[]) { MF_TRACE_BEGIN; diff --git a/src/thumbnail/mf-thumb-gen.c b/src/thumbnail/mf-thumb-gen.c index 292ab8a..7917928 100644 --- a/src/thumbnail/mf-thumb-gen.c +++ b/src/thumbnail/mf-thumb-gen.c @@ -61,16 +61,27 @@ void _mf_thumbnail_completed_cb(thumbnail_util_error_e error, int raw_height, unsigned char *raw_data, int raw_size, void *user_data); +/** + * + */ static void _mf_thumb_gen_lock() { pthread_mutex_lock(&g_mutex); } +/** + * + */ static void _mf_thumb_gen_unlock() { pthread_mutex_unlock(&g_mutex); } +/** + * + * @param pThumbGen + * @return + */ static int myfile_thumb_update_filelist(ThumbGen * pThumbGen) { if (pThumbGen == NULL) { @@ -199,7 +210,10 @@ static int myfile_thumb_update_filelist(ThumbGen * pThumbGen) return MYFILE_ERR_NONE; } - +/** + * + * @param pUserData + */ static void *_mf_thumb_gen_thread_loop(void *pUserData) { if (pUserData == NULL) { @@ -211,6 +225,10 @@ static void *_mf_thumb_gen_thread_loop(void *pUserData) return NULL; } +/** + * + * @param pThumbGen + */ static void _mf_thumb_gen_destroy_handle(ThumbGen * pThumbGen) { if (pThumbGen == NULL) { @@ -234,6 +252,11 @@ static void _mf_thumb_gen_destroy_handle(ThumbGen * pThumbGen) } /* external functions */ +/** + * + * @param szMediaURL + * @return + */ mf_thumb_gen_h mf_thumb_gen_create(const char *szMediaURL) { if (szMediaURL == NULL) { @@ -255,6 +278,10 @@ mf_thumb_gen_h mf_thumb_gen_create(const char *szMediaURL) return (mf_thumb_gen_h) pThumbGen; } +/** + * + * @param hThumbGen + */ void mf_thumb_gen_destroy(mf_thumb_gen_h hThumbGen) { if (hThumbGen == NULL) { @@ -278,6 +305,11 @@ void mf_thumb_gen_destroy(mf_thumb_gen_h hThumbGen) } +/** + * + * @param hThumbGen + * @return + */ bool mf_thumb_gen_realize(mf_thumb_gen_h hThumbGen) { if (hThumbGen == NULL) { @@ -299,6 +331,11 @@ bool mf_thumb_gen_realize(mf_thumb_gen_h hThumbGen) return TRUE; } +/** + * + * @param hThumbGen + * @return + */ bool mf_thumb_gen_unrealize(mf_thumb_gen_h hThumbGen) { if (hThumbGen == NULL) { @@ -324,6 +361,12 @@ bool mf_thumb_gen_unrealize(mf_thumb_gen_h hThumbGen) return TRUE; } +/** + * + * @param hThumbGen + * @param szSaveDir + * @return + */ bool mf_thumb_gen_set_save_directory(mf_thumb_gen_h hThumbGen, char *szSaveDir) { @@ -358,6 +401,11 @@ bool mf_thumb_gen_set_save_directory(mf_thumb_gen_h hThumbGen, return TRUE; } +/** + * + * @param hThumbGen + * @return + */ bool mf_thumb_gen_start(mf_thumb_gen_h hThumbGen) { if (hThumbGen == NULL) { @@ -397,6 +445,11 @@ bool mf_thumb_gen_start(mf_thumb_gen_h hThumbGen) return TRUE; } +/** + * + * @param hThumbGen + * @return + */ bool mf_thumb_gen_cancel(mf_thumb_gen_h hThumbGen) { if (hThumbGen == NULL) { @@ -425,6 +478,12 @@ bool mf_thumb_gen_cancel(mf_thumb_gen_h hThumbGen) return TRUE; } +/** + * + * @param hThumbGen + * @param pUserData + * @return + */ bool mf_thumb_gen_set_user_data(mf_thumb_gen_h hThumbGen, void *pUserData) { if (hThumbGen == NULL) { @@ -443,6 +502,12 @@ bool mf_thumb_gen_set_user_data(mf_thumb_gen_h hThumbGen, void *pUserData) return TRUE; } +/** + * + * @param hThumbGen + * @param progress_cb + * @return + */ bool mf_thumb_gen_set_progress_cb(mf_thumb_gen_h hThumbGen, mf_thumb_gen_progress_cb progress_cb) { @@ -462,6 +527,12 @@ bool mf_thumb_gen_set_progress_cb(mf_thumb_gen_h hThumbGen, return TRUE; } +/** + * + * @param hThumbGen + * @param complete_cb + * @return + */ bool mf_thumb_gen_set_complete_cb(mf_thumb_gen_h hThumbGen, mf_thumb_gen_complete_cb complete_cb) { @@ -481,6 +552,12 @@ bool mf_thumb_gen_set_complete_cb(mf_thumb_gen_h hThumbGen, return TRUE; } +/** + * + * @param hThumbGen + * @param file_list + * @return + */ bool mf_thumb_gen_set_file_list(mf_thumb_gen_h hThumbGen, Eina_List * file_list) { @@ -503,6 +580,11 @@ bool mf_thumb_gen_set_file_list(mf_thumb_gen_h hThumbGen, return TRUE; } +/** + * + * @param data + * @return + */ static Eina_Bool __mf_make_thumbnail_done(void *data) { mf_retvm_if(data == NULL, ECORE_CALLBACK_CANCEL, "data is NULL"); @@ -530,6 +612,11 @@ static Eina_Bool __mf_make_thumbnail_done(void *data) return ECORE_CALLBACK_CANCEL; } +/** + * + * @param data + * @return + */ static Eina_Bool __mf_make_thumbnail_progress(void *data) { mf_retvm_if(data == NULL, ECORE_CALLBACK_CANCEL, "data is NULL"); @@ -574,6 +661,12 @@ typedef struct { void *user_data; } thumbnail_progress_pipe_data_s; +/** + * + * @param data + * @param buffer + * @param nbyte + */ static void __mf_thumbnail_progress_pipe_handler(void *data, void *buffer, unsigned int nbyte) @@ -594,6 +687,12 @@ __mf_thumbnail_progress_pipe_handler(void *data, void *buffer, } } +/** + * + * @param bSucess + * @param nIdx + * @param pUserData + */ void mf_util_thumb_gen_progress_cb(bool bSucess, int nIdx, void *pUserData) { MF_THUMBNAIL_DEBUG @@ -611,6 +710,11 @@ void mf_util_thumb_gen_progress_cb(bool bSucess, int nIdx, void *pUserData) ("\n>>>>>>>>>>>>mf_util_thumb_gen_progress_cb leave"); } +/** + * + * @param nItemCount + * @param pUserData + */ void mf_util_thumb_gen_complete_cb(int nItemCount, void *pUserData) { MF_THUMBNAIL_DEBUG @@ -625,6 +729,9 @@ void mf_util_thumb_gen_complete_cb(int nItemCount, void *pUserData) ("\n>>>>>>>>>>>>mf_util_thumb_gen_progress_cb leave"); } +/** + * + */ void mf_view_refresh_thumbnail_destroy() { MF_THUMBNAIL_DEBUG @@ -642,6 +749,11 @@ void mf_view_refresh_thumbnail_destroy() ("\n>>>>>>>>>>>>mf_view_refresh_thumbnail_destroy leave"); } +/** + * + * @param data + * @param file_list + */ void mf_view_refresh_thumbnail_for_other_memory(void *data, Eina_List * file_list) { @@ -679,6 +791,16 @@ void mf_view_refresh_thumbnail_for_other_memory(void *data, } } +/** + * + * @param error + * @param request_id + * @param raw_width + * @param raw_height + * @param raw_data + * @param raw_size + * @param user_data + */ void _mf_thumbnail_completed_cb(thumbnail_util_error_e error, const char *request_id, int raw_width, int raw_height, unsigned char *raw_data, diff --git a/src/widget/mf-context-popup.c b/src/widget/mf-context-popup.c index 3218962..6a7278a 100644 --- a/src/widget/mf-context-popup.c +++ b/src/widget/mf-context-popup.c @@ -46,6 +46,12 @@ enum __context_popup_type { CONTEXT_POPUP_TYPE_MAX }; +/** + * + * @param data + * @param parent + * @param ctxpopup + */ static void _move_ctxpopup_all(void *data, Evas_Object * parent, Evas_Object * ctxpopup) { @@ -102,7 +108,12 @@ static void _move_ctxpopup_all(void *data, Evas_Object * parent, } } - +/** + * + * @param data + * @param win + * @param ctxpopup + */ static void _move_more_ctxpopup(void *data, Evas_Object * win, Evas_Object * ctxpopup) { @@ -370,7 +381,13 @@ static void __mf_context_popup_item_append(Evas_Object * parent, } //Added by jian12.li, for fixing the context popup is rotated problem, when rotate context popup, press the back key, it will be show again. - +/** + * + * @param data + * @param e + * @param obj + * @param ei + */ static void __mf_ctxpopup_parent_resize_cb(void *data, Evas * e, Evas_Object * obj, void *ei) { @@ -380,6 +397,12 @@ static void __mf_ctxpopup_parent_resize_cb(void *data, Evas * e, (void *) true); } +/** + * + * @param data + * @param obj + * @param ei + */ static void __mf_ctxpopup_search_filter_rotate_cb(void *data, Evas_Object * obj, void *ei) @@ -395,6 +418,12 @@ static void __mf_ctxpopup_search_filter_rotate_cb(void *data, } } +/** + * + * @param data + * @param obj + * @param ei + */ static void __mf_ctxpopup_search_filter_hide_cb(void *data, Evas_Object * obj, void *ei) @@ -427,6 +456,12 @@ static void __mf_ctxpopup_search_filter_hide_cb(void *data, } } +/** + * + * @param data + * @param obj + * @param ei + */ static void __mf_ctxpopup_hide_cb(void *data, Evas_Object * obj, void *ei) { MF_TRACE_BEGIN; @@ -457,6 +492,12 @@ static void __mf_ctxpopup_hide_cb(void *data, Evas_Object * obj, void *ei) } } +/** + * + * @param data + * @param obj + * @param ei + */ static void __mf_ctxpopup_rotate_cb(void *data, Evas_Object * obj, void *ei) { @@ -475,6 +516,13 @@ static void __mf_ctxpopup_rotate_cb(void *data, Evas_Object * obj, } } +/** + * + * @param data + * @param e + * @param obj + * @param ei + */ static void __mf_ctxpopup_del_cb(void *data, Evas * e, Evas_Object * obj, void *ei) { @@ -506,6 +554,12 @@ static void __mf_ctxpopup_del_cb(void *data, Evas * e, Evas_Object * obj, mf_debug("done"); } +/** + * + * @param data + * @param ctxpopup + * @return + */ static int __mf_ctxpopup_add_callbacks(void *data, Evas_Object * ctxpopup) { mf_retvm_if(!data, -1, "data is NULL"); @@ -539,7 +593,11 @@ static int __mf_ctxpopup_add_callbacks(void *data, Evas_Object * ctxpopup) } //End by jian12.li - +/** + * + * @param data + * @param parent + */ void mf_context_popup_create_more(void *data, Evas_Object * parent) { MF_TRACE_BEGIN; @@ -861,6 +919,12 @@ void mf_context_popup_create_more(void *data, Evas_Object * parent) MF_TRACE_END; } +/** + * + * @param data + * @param category + * @param icon_buf + */ static void __mf_search_filter_selected(void *data, int category, const char *icon_buf) { @@ -884,6 +948,12 @@ static void __mf_search_filter_selected(void *data, int category, MF_TRACE_END; } +/** + * + * @param data + * @param obj + * @param event_info + */ static void __mf_search_filter_img_selected(void *data, Evas_Object * obj, void *event_info) { @@ -897,6 +967,12 @@ static void __mf_search_filter_img_selected(void *data, Evas_Object * obj, __mf_search_filter_selected(ap, category, icon_buf); } +/** + * + * @param data + * @param obj + * @param event_info + */ static void __mf_search_filter_snd_selected(void *data, Evas_Object * obj, void *event_info) { @@ -910,6 +986,12 @@ static void __mf_search_filter_snd_selected(void *data, Evas_Object * obj, __mf_search_filter_selected(ap, category, icon_buf); } +/** + * + * @param data + * @param obj + * @param event_info + */ static void __mf_search_filter_video_selected(void *data, Evas_Object * obj, void *event_info) @@ -924,6 +1006,12 @@ static void __mf_search_filter_video_selected(void *data, __mf_search_filter_selected(ap, category, icon_buf); } +/** + * + * @param data + * @param obj + * @param event_info + */ static void __mf_search_filter_doc_selected(void *data, Evas_Object * obj, void *event_info) { @@ -936,6 +1024,12 @@ static void __mf_search_filter_doc_selected(void *data, Evas_Object * obj, __mf_search_filter_selected(ap, category, icon_buf); } +/** + * + * @param data + * @param obj + * @param event_info + */ static void __mf_search_filter_all_selected(void *data, Evas_Object * obj, void *event_info) { @@ -949,6 +1043,13 @@ static void __mf_search_filter_all_selected(void *data, Evas_Object * obj, __mf_search_filter_selected(ap, category, icon_buf); } +/** + * + * @param parent + * @param user_data + * @param obj + * @return + */ Evas_Object *mf_context_popup_search_filter(Evas_Object * parent, void *user_data, Evas_Object * obj) diff --git a/src/widget/mf-detail-view.c b/src/widget/mf-detail-view.c index e6c6351..6ab20f4 100644 --- a/src/widget/mf-detail-view.c +++ b/src/widget/mf-detail-view.c @@ -26,6 +26,12 @@ #include "mf-view.h" #include "mf-focus-ui.h" +/** + * + * @param data + * @param it + * @return + */ Eina_Bool mf_detail_view_navi_back_cb(void *data, Elm_Object_Item * it) { MF_TRACE_BEGIN; @@ -44,6 +50,11 @@ Eina_Bool mf_detail_view_navi_back_cb(void *data, Elm_Object_Item * it) return EINA_FALSE; } +/** + * + * @param data + * @return + */ Evas_Object *mf_detail_view_content_create(void *data) { MF_TRACE_BEGIN; @@ -76,6 +87,10 @@ Evas_Object *mf_detail_view_content_create(void *data) return content; } +/** + * + * @param data + */ void mf_detail_view_create(void *data) { MF_TRACE_BEGIN; diff --git a/src/widget/mf-downloaded-history-view.c b/src/widget/mf-downloaded-history-view.c index 69ddda0..ca122d3 100644 --- a/src/widget/mf-downloaded-history-view.c +++ b/src/widget/mf-downloaded-history-view.c @@ -28,6 +28,11 @@ #include "mf-edit-view.h" #include "mf-search-view.h" +/** + * + * @param data + * @return + */ Evas_Object *mf_downloaded_history_view_content_create(void *data) { mf_debug("start mf_downloaded_history_view_content_create"); @@ -75,6 +80,12 @@ Evas_Object *mf_downloaded_history_view_content_create(void *data) return content; } +/** + * + * @param data + * @param obj + * @param event_info + */ void mf_download_history_view_back_cb(void *data, Evas_Object * obj, void *event_info) { @@ -90,6 +101,12 @@ void mf_download_history_view_back_cb(void *data, Evas_Object * obj, } } +/** + * + * @param data + * @param it + * @return + */ Eina_Bool mf_download_history_view_navi_back_cb(void *data, Elm_Object_Item * it) { @@ -103,6 +120,10 @@ Eina_Bool mf_download_history_view_navi_back_cb(void *data, return EINA_FALSE; } +/** + * + * @param data + */ void mf_download_history_view_create(void *data) { mf_debug("start mf_download_history_view_create"); diff --git a/src/widget/mf-focus-ui.c b/src/widget/mf-focus-ui.c index 1200f27..b1538bb 100644 --- a/src/widget/mf-focus-ui.c +++ b/src/widget/mf-focus-ui.c @@ -17,6 +17,13 @@ #include "mf-focus-ui.h" #include "mf-dlog.h" +/** + * + * @param curr + * @param next + * @param order + * @return + */ int _mf_focus_ui_set_dual_focus_order(Evas_Object * curr, Evas_Object * next, mf_focus_dual_order_e order) @@ -44,6 +51,11 @@ int _mf_focus_ui_set_dual_focus_order(Evas_Object * curr, } /* elm widgets only */ +/** + * + * @param elm_widget + * @return + */ int _mf_focus_ui_set_focus(Evas_Object * elm_widget) { mf_retvm_if(elm_widget == NULL, 0, "elm_widget is NULL"); diff --git a/src/widget/mf-gengrid.c b/src/widget/mf-gengrid.c index cb6c619..7dec25b 100644 --- a/src/widget/mf-gengrid.c +++ b/src/widget/mf-gengrid.c @@ -35,6 +35,12 @@ Elm_Gengrid_Item_Class gic; #define GENGRID_ITEM_WIDTH 72 static bool g_is_refresh_at_grid = false; +/** + * + * @param data + * @param obj + * @param event_info + */ static void __mf_gengrid_icon_clicked(void *data, Evas_Object * obj, void *event_info) { @@ -83,6 +89,12 @@ static void __mf_gengrid_icon_clicked(void *data, Evas_Object * obj, MF_TRACE_END; } +/** + * + * @param data + * @param obj + * @param event_info + */ void mf_gengrid_realized(void *data, Evas_Object * obj, void *event_info) { @@ -113,6 +125,12 @@ void mf_gengrid_realized(void *data, Evas_Object * obj, void *event_info) } } +/** + * + * @param data + * @param grid + * @param file_list + */ void mf_gengrid_create_grid_items(void *data, Evas_Object * grid, Eina_List * file_list) { @@ -183,6 +201,13 @@ void mf_gengrid_create_grid_items(void *data, Evas_Object * grid, } } +/** + * + * @param data + * @param obj + * @param part + * @return + */ Evas_Object *mf_gengrid_item_icon_get(void *data, Evas_Object * obj, const char *part) { @@ -455,6 +480,13 @@ Evas_Object *mf_gengrid_item_icon_get(void *data, Evas_Object * obj, return NULL; } +/** + * + * @param data + * @param obj + * @param part + * @return + */ char *mf_gengrid_item_label_get(void *data, Evas_Object * obj, const char *part) { @@ -555,6 +587,11 @@ char *mf_gengrid_item_label_get(void *data, Evas_Object * obj, MF_TRACE_END; } +/** + * + * @param data + * @param obj + */ void mf_gengrid_item_del(void *data, Evas_Object * obj) { mfItemData_s *params = (mfItemData_s *) data; @@ -587,8 +624,9 @@ void mf_gengrid_item_del(void *data, Evas_Object * obj) return; } - - +/** + * + */ void mf_gengrid_gen_style_set() { gic.item_style = "custom/myfile"; @@ -598,6 +636,12 @@ void mf_gengrid_gen_style_set() gic.func.del = mf_gengrid_item_del; } +/** + * + * @param parent + * @param data + * @return + */ Evas_Object *mf_gengrid_create(Evas_Object * parent, void *data) { MF_TRACE_BEGIN; @@ -617,6 +661,11 @@ Evas_Object *mf_gengrid_create(Evas_Object * parent, void *data) return grid; } +/** + * + * @param parent + * @return + */ Evas_Object *mf_gengrid_create_grid(Evas_Object * parent) { MF_TRACE_BEGIN; @@ -640,6 +689,13 @@ Evas_Object *mf_gengrid_create_grid(Evas_Object * parent) return grid; } +/** + * + * @param pGengrid + * @param data + * @param dir_list + * @param file_list + */ void mf_gengrid_create_list_default_style(Evas_Object * pGengrid, void *data, Eina_List * dir_list, Eina_List * file_list) @@ -673,13 +729,24 @@ void mf_gengrid_create_list_default_style(Evas_Object * pGengrid, } } +/** + * + * @param data + * @param obj + * @param event_info + */ void mf_gengrid_gl_lang_changed(void *data, Evas_Object * obj, void *event_info) { elm_gengrid_realized_items_update(obj); } - +/** + * + * @param data + * @param parent + * @return + */ Evas_Object *mf_gengrid_create_list(void *data, Evas_Object * parent) { @@ -721,6 +788,11 @@ Evas_Object *mf_gengrid_create_list(void *data, Evas_Object * parent) return gengrid; } +/** + * + * @param gengrid + * @param count + */ void mf_gengrid_align_set(Evas_Object * gengrid, int count) { app_device_orientation_e rotate_mode; diff --git a/src/widget/mf-navi-bar.c b/src/widget/mf-navi-bar.c index 83896e4..4412b51 100644 --- a/src/widget/mf-navi-bar.c +++ b/src/widget/mf-navi-bar.c @@ -37,6 +37,10 @@ #define MF_PATH_INFO_W 480 #define MF_PATH_INFO_H 76 +/** + * + * @param data + */ void mf_navi_bar_reset_navi_obj(void *data) { MF_TRACE_BEGIN; @@ -60,6 +64,11 @@ void mf_navi_bar_reset_navi_obj(void *data) MF_TRACE_END; } +/** + * + * @param parent + * @return + */ Evas_Object *mf_navi_bar_create(Evas_Object * parent) { MF_TRACE_BEGIN; @@ -73,6 +82,11 @@ Evas_Object *mf_navi_bar_create(Evas_Object * parent) return navi_bar; } +/** + * + * @param data + * @return + */ Evas_Object *mf_navi_bar_create_normal_pathinfo(void *data) { MF_TRACE_BEGIN; @@ -95,6 +109,10 @@ Evas_Object *mf_navi_bar_create_normal_pathinfo(void *data) return pathinfo_obj; } +/** + * + * @param data + */ void mf_navi_bar_pathinfo_refresh(void *data) { MF_TRACE_BEGIN; @@ -145,6 +163,11 @@ static void _mf_navi_bar_create_content_set_focus(void *data, MF_TRACE_END; } +/** + * + * @param data + * @return + */ Evas_Object *mf_navi_bar_create_view_content(void *data) { MF_TRACE_BEGIN; @@ -208,6 +231,11 @@ void mf_navi_bar_layout_content_set(Evas_Object * layout, elm_object_part_content_set(layout, "elm.swallow.content", content); } +/** + * + * @param data + * @param pLayout + */ void mf_navi_bar_clean_content(void *data, Evas_Object * pLayout) { MF_TRACE_BEGIN; @@ -225,6 +253,12 @@ void mf_navi_bar_clean_content(void *data, Evas_Object * pLayout) MF_TRACE_END; } +/** + * + * @param data + * @param pLayout + * @param NaviContent + */ void mf_navi_bar_set_content(void *data, Evas_Object * pLayout, Evas_Object * NaviContent) { @@ -246,6 +280,11 @@ void mf_navi_bar_set_content(void *data, Evas_Object * pLayout, MF_TRACE_END; } +/** + * + * @param data + * @param title + */ void mf_navi_bar_title_content_set(void *data, const char *title) { MF_TRACE_BEGIN; @@ -259,6 +298,13 @@ void mf_navi_bar_title_content_set(void *data, const char *title) } +/** + * + * @param parent + * @param func + * @param user_data + * @return + */ Evas_Object *mf_navi_bar_home_button_create(Evas_Object * parent, Evas_Smart_Cb func, void *user_data) @@ -282,6 +328,13 @@ Evas_Object *mf_navi_bar_home_button_create(Evas_Object * parent, return home_btn; } +/** + * + * @param parent + * @param func + * @param user_data + * @return + */ Evas_Object *mf_navi_bar_search_button_create(Evas_Object * parent, Evas_Smart_Cb func, void *user_data) @@ -305,7 +358,13 @@ Evas_Object *mf_navi_bar_search_button_create(Evas_Object * parent, return up_btn; } - +/** + * + * @param parent + * @param func + * @param user_data + * @return + */ Evas_Object *mf_navi_bar_upper_button_create(Evas_Object * parent, Evas_Smart_Cb func, void *user_data) @@ -329,6 +388,13 @@ Evas_Object *mf_navi_bar_upper_button_create(Evas_Object * parent, return up_btn; } +/** + * + * @param parent + * @param func + * @param user_data + * @return + */ Evas_Object *mf_navi_bar_select_all_button_create(Evas_Object * parent, Evas_Smart_Cb func, void *user_data) @@ -385,6 +451,11 @@ Evas_Object *__mf_navi_bar_backbutton_create(Evas_Object * parent, return btn; } +/** + * + * @param data + * @param func + */ void mf_navi_add_back_button(void *data, Eina_Bool(*func) (void *data, Elm_Object_Item * it)) @@ -419,6 +490,10 @@ void mf_navi_add_back_button(void *data, elm_naviframe_item_pop_cb_set(ap->mf_MainWindow.pNaviItem, func, ap); } +/** + * + * @param data + */ void mf_navi_bar_set_ctrlbar(void *data) { MF_TRACE_BEGIN; @@ -502,6 +577,10 @@ void mf_navi_bar_set_ctrlbar(void *data) } +/** + * + * @param data + */ void mf_navi_bar_reset_ctrlbar(void *data) { MF_TRACE_BEGIN; @@ -521,6 +600,11 @@ void mf_navi_bar_reset_ctrlbar(void *data) MF_TRACE_END; } +/** + * + * @param layout + * @param type + */ void mf_navi_bar_layout_state_set(Evas_Object * layout, int type) { mf_error(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> type is [%d]", type); @@ -578,6 +662,10 @@ void mf_navi_bar_remove_info_box(void *data) MF_TRACE_END; } +/** + * + * @param data + */ void mf_navi_bar_recover_info_box(void *data) { MF_TRACE_BEGIN; @@ -626,6 +714,10 @@ void mf_navi_bar_recover_state(void *data) MF_TRACE_END; } +/** + * + * @param data + */ void mf_navi_bar_reset(void *data) { MF_TRACE_BEGIN; @@ -643,6 +735,12 @@ void mf_navi_bar_reset(void *data) MF_TRACE_END; } +/** + * + * @param navi_it + * @param disable_item + * @param disable + */ void mf_navi_bar_set_ctrlbar_item_disable(Elm_Object_Item * navi_it, int disable_item, bool disable) { @@ -670,6 +768,11 @@ void mf_navi_bar_set_ctrlbar_item_disable(Elm_Object_Item * navi_it, MF_TRACE_END; } +/** + * + * @param data + * @return + */ Evas_Object *mf_navi_bar_content_create(void *data) { MF_TRACE_BEGIN; @@ -774,6 +877,14 @@ Evas_Object *mf_navi_bar_content_create(void *data) return pContent; } +/** + * + * @param pParent + * @param pNaviItem + * @param pFunc + * @param pUserData + * @return + */ Evas_Object *mf_naviframe_left_cancel_button_create(Evas_Object * pParent, Elm_Object_Item * pNaviItem, @@ -791,6 +902,14 @@ Evas_Object *mf_naviframe_left_cancel_button_create(Evas_Object * pParent, return btn; } +/** + * + * @param pParent + * @param pNaviItem + * @param pFunc + * @param pUserData + * @return + */ Evas_Object *mf_naviframe_right_save_button_create(Evas_Object * pParent, Elm_Object_Item * pNaviItem, @@ -815,6 +934,10 @@ Evas_Object *mf_naviframe_right_save_button_create(Evas_Object * pParent, return btn; } +/** + * + * @param navi_it + */ void mf_naviframe_title_button_delete(Elm_Object_Item * navi_it) { Evas_Object *btn = NULL; diff --git a/src/widget/mf-normal-view.c b/src/widget/mf-normal-view.c index f89df72..7ed6aaf 100644 --- a/src/widget/mf-normal-view.c +++ b/src/widget/mf-normal-view.c @@ -26,6 +26,11 @@ #include "mf-object.h" #include "mf-search-view.h" +/** + * + * @param data + * @return + */ static Evas_Object *__mf_normal_view_create_content(void *data) { MF_TRACE_BEGIN; @@ -80,6 +85,10 @@ static Evas_Object *__mf_normal_view_create_content(void *data) } +/** + * + * @param data + */ void mf_normal_view_create(void *data) { MF_TRACE_BEGIN; diff --git a/src/widget/mf-object-item.c b/src/widget/mf-object-item.c index 992d617..173395b 100644 --- a/src/widget/mf-object-item.c +++ b/src/widget/mf-object-item.c @@ -25,6 +25,12 @@ extern Elm_Gengrid_Item_Class gic; +/** + * + * @param item + * @param ID + * @param part + */ void mf_object_item_text_set(Elm_Object_Item * item, const char *ID, const char *part) { @@ -39,6 +45,11 @@ void mf_object_item_text_set(Elm_Object_Item * item, const char *ID, MF_TRACE_END; } +/** + * + * @param item + * @param ID + */ void mf_object_item_translate_set(Elm_Object_Item * item, const char *ID) { mf_retm_if(ID == NULL, "ID is NULL"); @@ -51,6 +62,15 @@ void mf_object_item_translate_set(Elm_Object_Item * item, const char *ID) elm_object_item_domain_text_translatable_set(item, domain, EINA_TRUE); } +/** + * + * @param obj + * @param icon + * @param label + * @param func + * @param data + * @return + */ Elm_Object_Item *mf_object_item_tabbar_item_append(Evas_Object * obj, const char *icon, const char *label, @@ -64,6 +84,11 @@ Elm_Object_Item *mf_object_item_tabbar_item_append(Evas_Object * obj, return item; } +/** + * + * @param item + * @param part + */ void mf_object_item_part_content_remove(Elm_Object_Item * item, const char *part) { @@ -78,6 +103,13 @@ void mf_object_item_part_content_remove(Elm_Object_Item * item, MF_TRACE_END; } +/** + * + * @param genlist + * @param x + * @param y + * @return + */ Elm_Object_Item *mf_object_item_genlist_x_y_item_get(Evas_Object * genlist, int x, int y) { diff --git a/src/widget/mf-object.c b/src/widget/mf-object.c index 2c529ed..e1bb245 100644 --- a/src/widget/mf-object.c +++ b/src/widget/mf-object.c @@ -20,6 +20,11 @@ #include "mf-object-conf.h" #include "mf-callback.h" +/** + * + * @param parent + * @return + */ Evas_Object *mf_object_create_genlist(Evas_Object * parent) { Evas_Object *genlist = NULL; @@ -36,6 +41,13 @@ Evas_Object *mf_object_create_genlist(Evas_Object * parent) return genlist; } +/** + * + * @param parent + * @param edj + * @param grp_name + * @return + */ Evas_Object *mf_object_create_layout(Evas_Object * parent, const char *edj, const char *grp_name) { @@ -60,6 +72,11 @@ Evas_Object *mf_object_create_layout(Evas_Object * parent, const char *edj, } +/** + * + * @param parent + * @return + */ Evas_Object *mf_object_create_conform(Evas_Object * parent) { MF_TRACE_BEGIN; @@ -78,6 +95,11 @@ Evas_Object *mf_object_create_conform(Evas_Object * parent) return conform; } +/** + * + * @param parent + * @return + */ Evas_Object *mf_object_create_no_content(Evas_Object * parent) { MF_TRACE_BEGIN; @@ -105,6 +127,11 @@ Evas_Object *mf_object_create_no_content(Evas_Object * parent) return nocontent; } +/** + * + * @param parent + * @return + */ Evas_Object *mf_object_create_multi_no_content(Evas_Object * parent) { MF_TRACE_BEGIN; @@ -132,6 +159,11 @@ Evas_Object *mf_object_create_multi_no_content(Evas_Object * parent) return nocontent; } +/** + * + * @param parent + * @return + */ Evas_Object *mf_object_create_layout_main(Evas_Object * parent) { MF_TRACE_BEGIN; @@ -159,6 +191,12 @@ Evas_Object *mf_object_create_layout_main(Evas_Object * parent) return layout; } +/** + * + * @param parent + * @param part + * @return + */ Evas_Object *mf_object_unset_part_content(Evas_Object * parent, const char *part) { @@ -170,6 +208,17 @@ Evas_Object *mf_object_unset_part_content(Evas_Object * parent, return content; } +/** + * + * @param parent + * @param style + * @param caption + * @param icon + * @param func + * @param data + * @param flag_propagate + * @return + */ Evas_Object *mf_object_create_button(Evas_Object * parent, const char *style, const char *caption, @@ -205,6 +254,11 @@ Evas_Object *mf_object_create_button(Evas_Object * parent, return btn; } +/** + * + * @param parent + * @return + */ Evas_Object *mf_object_path_widget_create(Evas_Object * parent) { mf_debug(""); @@ -223,6 +277,12 @@ Evas_Object *mf_object_path_widget_create(Evas_Object * parent) return obj; } +/** + * + * @param obj + * @param ID + * @param part + */ void mf_object_text_set(Evas_Object * obj, const char *ID, const char *part) { @@ -236,6 +296,10 @@ void mf_object_text_set(Evas_Object * obj, const char *ID, //elm_object_domain_part_text_translatable_set(obj, part, domain, EINA_TRUE); } +/** + * + * @param entry + */ void mf_object_entry_unfocus(Evas_Object * entry) { if (entry) { @@ -243,6 +307,11 @@ void mf_object_entry_unfocus(Evas_Object * entry) } } +/** + * + * @param parent + * @return + */ Evas_Object *mf_object_create_box(Evas_Object * parent) { Evas_Object *box = NULL; @@ -254,6 +323,15 @@ Evas_Object *mf_object_create_box(Evas_Object * parent) return box; } +/** + * + * @param pParent + * @param pChangeFunc + * @param pMouseDownFunc + * @param pUserData + * @param pCheckBox + * @param pSelectLayout + */ void mf_object_create_select_all_layout(Evas_Object * pParent, Evas_Smart_Cb pChangeFunc, Evas_Object_Event_Cb @@ -290,6 +368,10 @@ void mf_object_create_select_all_layout(Evas_Object * pParent, *pCheckBox = pSelectAllCheckbox; } +/** + * + * @param box + */ void mf_object_box_clear(Evas_Object * box) { mf_retm_if(box == NULL, "box is NULL"); diff --git a/src/widget/mf-recent-view.c b/src/widget/mf-recent-view.c index 5c67ed1..29343d1 100644 --- a/src/widget/mf-recent-view.c +++ b/src/widget/mf-recent-view.c @@ -30,6 +30,12 @@ Evas_Object *g_mf_recent_content = NULL; +/** + * + * @param data + * @param obj + * @param event_info + */ void mf_recent_view_back_cb(void *data, Evas_Object * obj, void *event_info) { @@ -45,6 +51,12 @@ void mf_recent_view_back_cb(void *data, Evas_Object * obj, } } +/** + * + * @param data + * @param it + * @return + */ Eina_Bool mf_recent_view_navi_back_cb(void *data, Elm_Object_Item * it) { MF_TRACE_BEGIN; @@ -57,6 +69,11 @@ Eina_Bool mf_recent_view_navi_back_cb(void *data, Elm_Object_Item * it) return EINA_FALSE; } +/** + * + * @param data + * @return + */ Evas_Object *mf_recent_view_content_create(void *data) { MF_TRACE_BEGIN; @@ -108,6 +125,10 @@ Evas_Object *mf_recent_view_content_create(void *data) return content; } +/** + * + * @param data + */ void mf_recent_view_content_refresh(void *data) { struct appdata *ap = (struct appdata *) data; @@ -126,6 +147,10 @@ void mf_recent_view_content_refresh(void *data) evas_object_show(ap->mf_MainWindow.pNaviBox); } +/** + * + * @param data + */ void mf_recent_view_create(void *data) { MF_TRACE_BEGIN; diff --git a/src/widget/mf-search-bar.c b/src/widget/mf-search-bar.c index 0f57716..33d3862 100644 --- a/src/widget/mf-search-bar.c +++ b/src/widget/mf-search-bar.c @@ -59,6 +59,10 @@ typedef struct { char *create_date; } mf_search_detail_infor_s; +/** + * + * @param data + */ static void __mf_search_bar_click_item(void *data) { MF_TRACE_BEGIN; @@ -126,6 +130,12 @@ static void __mf_search_bar_click_item(void *data) MF_TRACE_END; } +/** + * + * @param data + * @param obj + * @param event_info + */ static void __mf_search_bar_item_sel(void *data, Evas_Object * obj, void *event_info) { @@ -209,6 +219,12 @@ static void __mf_search_bar_item_sel(void *data, Evas_Object * obj, } } +/** + * + * @param data + * @param obj + * @param event_info + */ static void __mf_search_bar_grid_item_sel(void *data, Evas_Object * obj, void *event_info) { @@ -228,6 +244,13 @@ static void __mf_search_bar_grid_item_sel(void *data, Evas_Object * obj, } } +/** + * + * @param fullpath + * @param user_data + * @param list_type + * @return + */ mfItemData_s *mf_search_item_normal_data_get(const char *fullpath, void *user_data, int list_type) @@ -261,6 +284,12 @@ mfItemData_s *mf_search_item_normal_data_get(const char *fullpath, } +/** + * + * @param data + * @param fullpath + * @return + */ static mfItemData_s *__mf_search_bar_item_generate(void *data, const char *fullpath) { @@ -281,6 +310,11 @@ static mfItemData_s *__mf_search_bar_item_generate(void *data, return m_TempItem; } +/** + * + * @param data + * @param item_data + */ static void __mf_search_bar_item_append(void *data, mfItemData_s * item_data) { @@ -316,6 +350,13 @@ static void __mf_search_bar_item_append(void *data, #endif } +/** + * + * @param data + * @param obj + * @param part + * @return + */ char *_mf_device_text_get(void *data, Evas_Object * obj, const char *part) { char *ret = NULL; @@ -326,6 +367,13 @@ char *_mf_device_text_get(void *data, Evas_Object * obj, const char *part) return ret; } +/** + * + * @param data + * @param obj + * @param part + * @return + */ char *_mf_sdcard_text_get(void *data, Evas_Object * obj, const char *part) { char *ret = NULL; @@ -336,12 +384,25 @@ char *_mf_sdcard_text_get(void *data, Evas_Object * obj, const char *part) return ret; } +/** + * + * @param data + * @param obj + * @param part + * @return + */ static Evas_Object *_mf_expand_icon_get(void *data, Evas_Object * obj, const char *part) { return NULL; } +/** + * + * @param data + * @param obj + * @param event_info + */ static void _on_expand_cb(void *data, Evas_Object * obj, void *event_info) { mf_debug("_on_expand_cb"); @@ -386,6 +447,12 @@ static void _on_expand_cb(void *data, Evas_Object * obj, void *event_info) return; } +/** + * + * @param data + * @param obj + * @param event_info + */ static void _on_collapse_cb(void *data, Evas_Object * obj, void *event_info) { @@ -409,6 +476,12 @@ static void _on_collapse_cb(void *data, Evas_Object * obj, return; } +/** + * + * @param data + * @param obj + * @param event_info + */ static void _parent_selected_cb(void *data, Evas_Object * obj, void *event_info) { @@ -423,6 +496,12 @@ static void _parent_selected_cb(void *data, Evas_Object * obj, return; } +/** + * + * @param data + * @param obj + * @param event_info + */ static void _parent_sdcard_selected_cb(void *data, Evas_Object * obj, void *event_info) { @@ -437,6 +516,11 @@ static void _parent_sdcard_selected_cb(void *data, Evas_Object * obj, return; } +/** + * + * @param data + * @param user_data + */ void mf_search_bar_folder_item_append(void *data, void *user_data) { MF_TRACE_BEGIN; @@ -472,6 +556,11 @@ void mf_search_bar_folder_item_append(void *data, void *user_data) MF_TRACE_END; } +/** + * + * @param data + * @param user_data + */ void mf_search_bar_SDcard_folder_item_append(void *data, void *user_data) { MF_TRACE_BEGIN; @@ -508,7 +597,11 @@ void mf_search_bar_SDcard_folder_item_append(void *data, void *user_data) MF_TRACE_END; } - +/** + * + * @param data + * @param user_data + */ void mf_search_bar_file_item_append(void *data, void *user_data) { MF_TRACE_BEGIN; @@ -552,6 +645,11 @@ void mf_search_bar_file_item_append(void *data, void *user_data) MF_TRACE_END; } +/** + * + * @param data + * @param user_data + */ void mf_search_bar_SDcard_file_item_append(void *data, void *user_data) { MF_TRACE_BEGIN; @@ -595,7 +693,13 @@ void mf_search_bar_SDcard_file_item_append(void *data, void *user_data) MF_TRACE_END; } - +/** + * + * @param data + * @param pLayout + * @param NaviContent + * @param is_no_content + */ void mf_search_bar_set_content(void *data, Evas_Object * pLayout, Evas_Object * NaviContent, bool is_no_content) @@ -610,7 +714,10 @@ void mf_search_bar_set_content(void *data, Evas_Object * pLayout, MF_TRACE_END; } - +/** + * + * @param data + */ void mf_search_bar_content_object_create(void *data) { MF_TRACE_BEGIN; @@ -673,6 +780,10 @@ void mf_search_bar_content_object_create(void *data) } +/** + * + * @param data + */ void mf_search_set_ctrl_button(void *data) { MF_TRACE_BEGIN; @@ -702,6 +813,11 @@ void mf_search_set_ctrl_button(void *data) MF_TRACE_END; } +/** + * + * @param result + * @param user_data + */ void mf_search_bar_content_create(mf_search_result_t * result, void *user_data) { @@ -766,6 +882,10 @@ void mf_search_bar_content_create(mf_search_result_t * result, } } +/** + * + * @param data + */ void mf_search_bar_view_update(void *data) { MF_TRACE_BEGIN; @@ -919,6 +1039,11 @@ void mf_search_bar_view_update(void *data) } } +/** + * + * @param data + * @return + */ static int __mf_search_bar_entry_focus_allow(void *data) { MF_TRACE_BEGIN; @@ -932,11 +1057,20 @@ static int __mf_search_bar_entry_focus_allow(void *data) return ECORE_CALLBACK_CANCEL; } +/** + * + */ void mf_entry_focus_allow_idler_destory() { mf_ecore_idler_del(entry_focus_allow_idler); } +/** + * + * @param result + * @param user_data + * @param msg_type + */ static void __mf_search_bar_result_update(mf_search_result_t * result, void *user_data, int msg_type) { @@ -1033,6 +1167,12 @@ static void __mf_search_bar_result_update(mf_search_result_t * result, MF_TRACE_END; } +/** + * + * @param data + * @param obj + * @param event_info + */ static void __mf_search_bar_stop_cb(void *data, Evas_Object * obj, void *event_info) { @@ -1059,11 +1199,20 @@ static void __mf_search_bar_stop_cb(void *data, Evas_Object * obj, SAFE_FREE_OBJ(ap->mf_MainWindow.pProgressPopup); } +/** + * + * @param data + */ void mf_search_bar_stop(void *data) { __mf_search_bar_stop_cb(data, NULL, NULL); } +/** + * + * @param data + * @return + */ static int __mf_search_bar_idle_search_msg_cope_finished(void *data) { pthread_mutex_lock(&gLockSearchMsg); @@ -1083,6 +1232,12 @@ static int __mf_search_bar_idle_search_msg_cope_finished(void *data) return ECORE_CALLBACK_CANCEL; } +/** + * + * @param data + * @param buffer + * @param nbyte + */ static void __mf_search_bar_pipe_cb(void *data, void *buffer, unsigned int nbyte) { @@ -1125,7 +1280,11 @@ static void __mf_search_bar_pipe_cb(void *data, void *buffer, MF_TRACE_END; } - +/** + * + * @param data + * @return + */ static bool __mf_search_bar_idle_search_start(void *data) { struct appdata *ap = (struct appdata *) data; @@ -1213,6 +1372,12 @@ static bool __mf_search_bar_idle_search_start(void *data) return ECORE_CALLBACK_CANCEL; } +/** + * + * @param data + * @param obj + * @param event_info + */ void mf_search_bar_enter_search_routine(void *data, Evas_Object * obj, void *event_info) { @@ -1244,6 +1409,12 @@ void mf_search_bar_enter_search_routine(void *data, Evas_Object * obj, MF_TRACE_END; } +/** + * + * @param data + * @param obj + * @param event_info + */ void mf_search_bar_search_started_callback(void *data, Evas_Object * obj, void *event_info) { @@ -1321,6 +1492,10 @@ void mf_search_bar_search_started_callback(void *data, Evas_Object * obj, return; } +/** + * + * @param data + */ void mf_search_list_expand(void *data) { struct appdata *ap = (struct appdata *) data; diff --git a/src/widget/mf-search-view.c b/src/widget/mf-search-view.c index 921e25d..d85e1a2 100644 --- a/src/widget/mf-search-view.c +++ b/src/widget/mf-search-view.c @@ -33,6 +33,13 @@ #include "mf-genlist.h" #include "mf-focus-ui.h" +/** + * + * @param data + * @param obj + * @param event_info + * @return + */ static Eina_Bool __mf_search_view_add_filter_ctxpopup(void *data, Evas_Object * obj, void *event_info) @@ -48,6 +55,13 @@ static Eina_Bool __mf_search_view_add_filter_ctxpopup(void *data, return EINA_FALSE; } +/** + * + * @param data + * @param e + * @param obj + * @param event_info + */ static void __mf_search_entry_text_del_cb(void *data, Evas * e, Evas_Object * obj, void *event_info) @@ -69,6 +83,12 @@ static void __mf_category_btn_del_cb(void *data, Evas *e, Evas_Object *obj, void ap->mf_MainWindow.pSearchCategoryBtn = NULL; }*/ +/** + * + * @param data + * @param obj + * @param event_info + */ static void __mf_search_entry_changed_cb(void *data, Evas_Object * obj, void *event_info) { @@ -93,6 +113,11 @@ static void __mf_search_entry_changed_cb(void *data, Evas_Object * obj, elm_object_signal_emit(searchbar, signal, "elm"); } +/** + * + * @param data + * @return + */ int mf_search_bar_unfocused_callback_unselect(void *data) { struct appdata *ap = (struct appdata *) data; @@ -103,6 +128,12 @@ int mf_search_bar_unfocused_callback_unselect(void *data) return ECORE_CALLBACK_CANCEL; } +/** + * + * @param data + * @param obj + * @param event_info + */ static void mf_search_bar_unfocused_callback(void *data, Evas_Object * obj, void *event_info) { @@ -116,6 +147,12 @@ static void mf_search_bar_unfocused_callback(void *data, Evas_Object * obj, mf_search_bar_unfocused_callback_unselect, data); } +/** + * + * @param data + * @param obj + * @param event_info + */ void mf_search_view_orientation_get(void *data, Evas_Object * obj, void *event_info) { @@ -132,7 +169,12 @@ void mf_search_view_orientation_get(void *data, Evas_Object * obj, } } - +/** + * + * @param parent + * @param data + * @return + */ Evas_Object *mf_search_view_create_search_bar(Evas_Object * parent, void *data) { @@ -250,6 +292,12 @@ Evas_Object *mf_search_view_create_search_bar(Evas_Object * parent, return sb; } +/** + * + * @param data + * @param it + * @return + */ Eina_Bool mf_search_view_back_cb(void *data, Elm_Object_Item * it) { mf_retvm_if(data == NULL, EINA_FALSE, "data is NULL"); @@ -264,6 +312,10 @@ Eina_Bool mf_search_view_back_cb(void *data, Elm_Object_Item * it) return EINA_FALSE; } +/** + * + * @param data + */ void mf_search_view_create(void *data) { MF_TRACE_BEGIN; diff --git a/src/widget/mf-setting-view.c b/src/widget/mf-setting-view.c index d0b1f94..7ae6659 100644 --- a/src/widget/mf-setting-view.c +++ b/src/widget/mf-setting-view.c @@ -30,6 +30,12 @@ static Eina_Bool g_check_extension_status = EINA_FALSE; static Eina_Bool g_check_hiden_status = EINA_FALSE; #endif +/** + * + * @param data + * @param obj + * @param event_info + */ static void __mf_setting_view_extension_check_clicked_cb(void *data, Evas_Object * obj, void *event_info) @@ -49,6 +55,12 @@ static void __mf_setting_view_extension_check_clicked_cb(void *data, } #ifdef MYFILE_HIDEN_FILES_SHOW +/** + * + * @param data + * @param obj + * @param event_info + */ static void __mf_setting_view_hiden_check_clicked_cb(void *data, Evas_Object * obj, void *event_info) @@ -65,6 +77,13 @@ static void __mf_setting_view_hiden_check_clicked_cb(void *data, } #endif +/** + * + * @param data + * @param evas + * @param obj + * @param event_info + */ static void __mf_setting_view_item_move(void *data, Evas * evas, Evas_Object * obj, void *event_info) @@ -80,6 +99,13 @@ static void __mf_setting_view_item_move(void *data, Evas * evas, MF_TRACE_END; } +/** + * + * @param data + * @param evas + * @param obj + * @param event_info + */ static void __mf_setting_view_item_down(void *data, Evas * evas, Evas_Object * obj, void *event_info) @@ -94,6 +120,13 @@ static void __mf_setting_view_item_down(void *data, Evas * evas, Evas_Object *check_hiden = NULL; Evas_Object *check_extension = NULL; +/** + * + * @param data + * @param evas + * @param obj + * @param event_info + */ static void __mf_setting_view_extension_item_up(void *data, Evas * evas, Evas_Object * obj, void *event_info) @@ -116,6 +149,13 @@ static void __mf_setting_view_extension_item_up(void *data, Evas * evas, } #ifdef MYFILE_HIDEN_FILES_SHOW +/** + * + * @param data + * @param evas + * @param obj + * @param event_info + */ static void __mf_setting_view_hiden_item_up(void *data, Evas * evas, Evas_Object * obj, void *event_info) @@ -137,6 +177,12 @@ static void __mf_setting_view_hiden_item_up(void *data, Evas * evas, } #endif +/** + * + * @param data + * @param obj + * @param event_info + */ static void __mf_setting_view_item_clicked(void *data, Evas_Object * obj, void *event_info) { @@ -146,6 +192,12 @@ static void __mf_setting_view_item_clicked(void *data, Evas_Object * obj, MF_TRACE_END; } +/** + * + * @param data + * @param parent + * @return + */ Evas_Object *mf_setting_view_content_create(void *data, Evas_Object * parent) { @@ -286,6 +338,12 @@ Evas_Object *mf_setting_view_content_create(void *data, } +/** + * + * @param data + * @param it + * @return + */ Eina_Bool mf_setting_view_back_cb(void *data, Elm_Object_Item * it) { mf_retvm_if(data == NULL, EINA_FALSE, "data is NULL"); @@ -295,6 +353,10 @@ Eina_Bool mf_setting_view_back_cb(void *data, Elm_Object_Item * it) return EINA_FALSE; } +/** + * + * @param data + */ void mf_setting_view_create(void *data) { MF_TRACE_BEGIN; diff --git a/src/widget/mf-storage-view.c b/src/widget/mf-storage-view.c index a8abda4..adc3a55 100644 --- a/src/widget/mf-storage-view.c +++ b/src/widget/mf-storage-view.c @@ -26,6 +26,12 @@ #include "mf-view.h" #include "mf-focus-ui.h" +/** + * + * @param data + * @param it + * @return + */ Eina_Bool mf_storage_view_back_cb(void *data, Elm_Object_Item * it) { MF_TRACE_BEGIN; @@ -43,6 +49,11 @@ Eina_Bool mf_storage_view_back_cb(void *data, Elm_Object_Item * it) } +/** + * + * @param data + * @return + */ Evas_Object *mf_storage_view_create_content(void *data) { mf_retvm_if(data == NULL, NULL, "data is NULL"); @@ -75,7 +86,10 @@ Evas_Object *mf_storage_view_create_content(void *data) return content; } - +/** + * + * @param data + */ void mf_storage_view_create(void *data) { MF_TRACE_BEGIN; diff --git a/src/widget/mf-tray-item.c b/src/widget/mf-tray-item.c index 72e97bf..08aaf8e 100644 --- a/src/widget/mf-tray-item.c +++ b/src/widget/mf-tray-item.c @@ -80,6 +80,11 @@ Elm_Gengrid_Item_Class category_gic; void __mf_category_item_add_click_callback(void *data); +/** + * + * @param type + * @return + */ int mf_tray_item_category_type_get_by_file_type(fsFileType type) { MF_TRACE_BEGIN; @@ -117,6 +122,11 @@ int mf_tray_item_category_type_get_by_file_type(fsFileType type) return category; } +/** + * + * @param path + * @return + */ int mf_tray_item_type(const char *path) { MF_TRACE_BEGIN; @@ -191,6 +201,11 @@ int mf_tray_item_type(const char *path) return category; } +/** + * + * @param data + * @param type + */ void mf_tray_item_search(void *data, int type) { MF_TRACE_BEGIN; @@ -237,6 +252,10 @@ void mf_tray_item_search(void *data, int type) } } +/** + * + * @param parent + */ void mf_category_item_title_refresh(Evas_Object * parent) { MF_TRACE_BEGIN; @@ -282,6 +301,12 @@ void mf_category_item_title_refresh(Evas_Object * parent) } } +/** + * + * @param data + * @param obj + * @param event_info + */ void mf_category_widgets_lang_changed(void *data, Evas_Object * obj, void *event_info) { @@ -289,6 +314,10 @@ void mf_category_widgets_lang_changed(void *data, Evas_Object * obj, mf_category_item_title_refresh(obj); } +/** + * + * @param category + */ void mf_category_storage_size_reset(mf_tray_item_category category) //fix P131121-00236 by ray { MF_TRACE_BEGIN; @@ -364,6 +393,12 @@ void mf_category_storage_size_reset(mf_tray_item_category category) //fix P1311 } } +/** + * + * @param category + * @param update_info + * @param pUserData + */ void mf_category_storage_size_refresh(mf_tray_item_category category, Update_Info * update_info, void *pUserData) @@ -552,6 +587,13 @@ void mf_category_storage_size_refresh(mf_tray_item_category category, } #ifdef MYFILE_ENABLE_FOCUS +/** + * + * @param data + * @param evas + * @param obj + * @param event_info + */ static void __mf_category_item_key_down(void *data, Evas * evas, Evas_Object * obj, void *event_info) @@ -580,6 +622,11 @@ static void __mf_category_item_key_down(void *data, Evas * evas, } #endif +/** + * + * @param data + * @param parent + */ static void _mf_category_item_set_focus(void *data, Evas_Object * parent) { MF_TRACE_BEGIN; @@ -635,6 +682,11 @@ static void _mf_category_item_set_focus(void *data, Evas_Object * parent) MF_TRACE_END; } +/** + * + * @param data + * @return + */ Eina_Bool mf_category_widgets_create_idle_cb(void *data) { MF_TRACE_BEGIN; @@ -654,6 +706,10 @@ Eina_Bool mf_category_widgets_create_idle_cb(void *data) return EINA_FALSE; } +/** + * + * @param data + */ void mf_category_size_update(void *data) { struct appdata *ap = (struct appdata *) data; @@ -675,6 +731,9 @@ void mf_category_size_update(void *data) } +/** + * + */ void mf_category_hide_set() { mf_debug("set layout in hide state"); @@ -706,6 +765,9 @@ void mf_category_hide_set() } } +/** + * + */ void mf_category_show_set() { mf_debug("set layout in show state"); @@ -737,6 +799,12 @@ void mf_category_show_set() } } +/** + * + * @param data + * @param parent + * @return + */ Evas_Object *mf_category_widgets_create(void *data, Evas_Object * parent) { MF_TRACE_BEGIN; @@ -841,6 +909,13 @@ Evas_Object *mf_category_widgets_create(void *data, Evas_Object * parent) return g_mf_category_layout.category_frame; } +/** + * + * @param data + * @param o + * @param emission + * @param source + */ static void __mf_category_item_clicked(void *data, Evas_Object * o, const char *emission, const char *source) @@ -861,6 +936,13 @@ static void __mf_category_item_clicked(void *data, Evas_Object * o, MF_TRACE_END; } +/** + * + * @param data + * @param o + * @param emission + * @param source + */ static void __mf_category_item_released(void *data, Evas_Object * o, const char *emission, const char *source) @@ -880,6 +962,13 @@ static void __mf_category_item_released(void *data, Evas_Object * o, MF_TRACE_END; } +/** + * + * @param data + * @param o + * @param emission + * @param source + */ static void __mf_category_recent_item_clicked(void *data, Evas_Object * o, const char *emission, const char *source) @@ -896,6 +985,13 @@ static void __mf_category_recent_item_clicked(void *data, Evas_Object * o, MF_TRACE_END; } +/** + * + * @param data + * @param o + * @param emission + * @param source + */ void __mf_category_download_history_item_clicked(void *data, Evas_Object * o, const char *emission, @@ -912,6 +1008,10 @@ void __mf_category_download_history_item_clicked(void *data, mf_debug("end __mf_category_download_history_item_clicked"); } +/** + * + * @param data + */ void __mf_category_item_add_click_callback(void *data) { MF_TRACE_BEGIN; @@ -956,6 +1056,10 @@ void __mf_category_item_add_click_callback(void *data) NULL); } +/** + * + * @param data + */ void __mf_category_item_add_release_callback(void *data) { MF_TRACE_BEGIN; @@ -993,7 +1097,9 @@ void __mf_category_item_add_release_callback(void *data) __mf_category_item_released, NULL); } - +/** + * + */ void __mf_category_item_mode_landscape(void) { edje_object_signal_emit(_EDJ(g_mf_category_layout.category_image), @@ -1013,6 +1119,9 @@ void __mf_category_item_mode_landscape(void) "landscape", "category_download_app"); } +/** + * + */ void __mf_category_item_mode_portrait(void) { edje_object_signal_emit(_EDJ(g_mf_category_layout.category_image), @@ -1032,6 +1141,11 @@ void __mf_category_item_mode_portrait(void) "portrait", "category_download_app"); } +/** + * + * @param data + * @return + */ Evas_Object *mf_category_create(void *data) { MF_TRACE_BEGIN; -- 2.7.4