diff options
author | Chandan <ch.kumar@samsung.com> | 2017-01-24 14:37:06 +0530 |
---|---|---|
committer | Chandan <ch.kumar@samsung.com> | 2017-01-24 14:37:06 +0530 |
commit | d55e46ff3b94c9f5693fee812775d3f71b616994 (patch) | |
tree | 784d79f190c418cc34485000f8d363d98f44bdcf /include | |
parent | 29a4450c7957dbff62d34c7fe09781c5b4d8b319 (diff) | |
download | attach-panel-document-d55e46ff3b94c9f5693fee812775d3f71b616994.tar.gz attach-panel-document-d55e46ff3b94c9f5693fee812775d3f71b616994.tar.bz2 attach-panel-document-d55e46ff3b94c9f5693fee812775d3f71b616994.zip |
Aligned Supported FileTypes with MyFiles
Change-Id: Idf68d3eb40d9edf9a1d15b4dafae5a7a019192f3
Signed-off-by: Chandan <ch.kumar@samsung.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/doc-data.h | 54 | ||||
-rw-r--r-- | include/doc-list.h | 51 |
2 files changed, 54 insertions, 51 deletions
diff --git a/include/doc-data.h b/include/doc-data.h index 9302e5e..16ab4a3 100644 --- a/include/doc-data.h +++ b/include/doc-data.h @@ -20,16 +20,70 @@ #include "doc-local-data.h" #include "attach-panel-document.h" + +typedef enum _FILE_TYPE fsFileType; +enum _FILE_TYPE { + FILE_TYPE_NONE = 0, + FILE_TYPE_DIR, /**< Folder category */ + FILE_TYPE_FILE, /**< File category */ + FILE_TYPE_IMAGE, /**< Image category */ + FILE_TYPE_VIDEO, /**< Video category */ + FILE_TYPE_MUSIC, /**< Music category */ + FILE_TYPE_SOUND, /**< Sound category */ + FILE_TYPE_PDF, /**< Pdf category */ + FILE_TYPE_DOC, /**< Word category */ + FILE_TYPE_PPT, /**< Powerpoint category */ + FILE_TYPE_EXCEL, /**< Excel category */ + FILE_TYPE_VOICE, /**< Voice category */ + FILE_TYPE_HTML, /**< Html category */ + FILE_TYPE_FLASH, /**< Flash category */ + FILE_TYPE_GAME, /**< Game category */ + FILE_TYPE_APP, /**< Application category */ + FILE_TYPE_THEME, /**< Theme category */ + FILE_TYPE_TXT, /**< Txt category */ + FILE_TYPE_VCONTACT, /**< Vcontact category */ + FILE_TYPE_VCALENDAR, /**< Vcalendar category */ + FILE_TYPE_VNOTE, /**< Vnote category */ + FILE_TYPE_VBOOKMARK, /**< Vbookmark category */ + FILE_TYPE_VIDEO_PROJECT, /**< Video editor project category */ + FILE_TYPE_RADIO_RECORDED, /**< radio recorded clips category */ + FILE_TYPE_MOVIE_MAKER, /**< Movie maker project category */ + FILE_TYPE_SVG, /**< Svg category */ + FILE_TYPE_RSS, /**< Rss reader file, *.opml */ + FILE_TYPE_CERTIFICATION, /**< certification file, *.pem */ + FILE_TYPE_JAVA, /**< java file, *.jad, *.jar */ + FILE_TYPE_WGT, /**< wrt , *.wgt, *.wgt */ + FILE_TYPE_TPK, /**< *.tpk>*/ + FILE_TYPE_SNB, /**<*.snb> */ + FILE_TYPE_GUL, /**<*.gul> */ + FILE_TYPE_HWP, /**<*.hwp> */ + FILE_TYPE_ETC, /**< Other files category */ + FILE_TYPE_TASK, + FILE_TYPE_EML, + FILE_TYPE_CSV, + FILE_TYPE_SPD, + FILE_TYPE_ZIP, + FILE_TYPE_MAX +}; + #ifdef _cplusplus extern "C" { #endif +#define SAFE_FREE_CHAR(x) do {\ + if ((x) != NULL) {\ + free(x); \ + x = NULL;\ + } \ + } while (0) + typedef int (*doc_restore_selected_cb) (Eina_List * sel_id, doc_item * ditem); int doc_data_get_item_cnt(doc_ugdata * ugd, int *item_cnt); int doc_data_get_sel_paths(doc_ugdata * ugd, char **filepath, char ***filepath_arr, int *cnt); + int document_file_category(const char *filepath, fsFileType * category); int doc_data_get_media_data(doc_ugdata * ugd, int type, int start_pos, int end_pos, Eina_List ** pmedias_elist, doc_restore_selected_cb restore_cb, diff --git a/include/doc-list.h b/include/doc-list.h index a6b00cb..f18bc70 100644 --- a/include/doc-list.h +++ b/include/doc-list.h @@ -19,51 +19,6 @@ #include "attach-panel-document.h" -typedef enum _FILE_TYPE fsFileType; -enum _FILE_TYPE { - FILE_TYPE_NONE = 0, - FILE_TYPE_DIR, /**< Folder category */ - FILE_TYPE_FILE, /**< File category */ - FILE_TYPE_IMAGE, /**< Image category */ - FILE_TYPE_VIDEO, /**< Video category */ - FILE_TYPE_MUSIC, /**< Music category */ - FILE_TYPE_SOUND, /**< Sound category */ - FILE_TYPE_PDF, /**< Pdf category */ - FILE_TYPE_DOC, /**< Word category */ - FILE_TYPE_PPT, /**< Powerpoint category */ - FILE_TYPE_EXCEL, /**< Excel category */ - FILE_TYPE_VOICE, /**< Voice category */ - FILE_TYPE_HTML, /**< Html category */ - FILE_TYPE_FLASH, /**< Flash category */ - FILE_TYPE_GAME, /**< Game category */ - FILE_TYPE_APP, /**< Application category */ - FILE_TYPE_THEME, /**< Theme category */ - FILE_TYPE_TXT, /**< Txt category */ - FILE_TYPE_VCONTACT, /**< Vcontact category */ - FILE_TYPE_VCALENDAR, /**< Vcalendar category */ - FILE_TYPE_VNOTE, /**< Vnote category */ - FILE_TYPE_VBOOKMARK, /**< Vbookmark category */ - FILE_TYPE_VIDEO_PROJECT, /**< Video editor project category */ - FILE_TYPE_RADIO_RECORDED, /**< radio recorded clips category */ - FILE_TYPE_MOVIE_MAKER, /**< Movie maker project category */ - FILE_TYPE_SVG, /**< Svg category */ - FILE_TYPE_RSS, /**< Rss reader file, *.opml */ - FILE_TYPE_CERTIFICATION, /**< certification file, *.pem */ - FILE_TYPE_JAVA, /**< java file, *.jad, *.jar */ - FILE_TYPE_WGT, /**< wrt , *.wgt, *.wgt */ - FILE_TYPE_TPK, /**< *.tpk>*/ - FILE_TYPE_SNB, /**<*.snb> */ - FILE_TYPE_GUL, /**<*.gul> */ - FILE_TYPE_HWP, /**<*.hwp> */ - FILE_TYPE_ETC, /**< Other files category */ - FILE_TYPE_TASK, - FILE_TYPE_EML, - FILE_TYPE_CSV, - FILE_TYPE_SPD, - FILE_TYPE_ZIP, - FILE_TYPE_MAX -}; - /*************** Default Icon ***********************/ #define DOC_DEFAULT_ICON "doc_icon_etc.png" #define DOC_ICON_FOLDER "doc_icon_folder.png" @@ -94,12 +49,6 @@ enum _FILE_TYPE { #define DOC_ICON_ZIP "doc_icon_zip.png" #define DOC_ICON_SVG "doc_icon_svg.png" -#define SAFE_FREE_CHAR(x) do {\ - if ((x) != NULL) {\ - free(x); \ - x = NULL;\ - } \ - } while (0) void doc_list_change_selection_mode(doc_ugdata * ugd); int doc_list_lang_update(doc_ugdata * ugd); int doc_update_genlist(doc_ugdata * ugd); |