/* * Copyright (c) 2015 Samsung Electronics Co., Ltd * * Licensed under the Flora License, Version 1.1 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://floralicense.org/license/ * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef _DOC_LIST_H_ #define _DOC_LIST_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_MAX }; /*************** Default Icon ***********************/ #define DOC_DEFAULT_ICON "doc_icon_etc.png" #define DOC_ICON_FOLDER "doc_icon_folder.png" #define DOC_ICON_IMAGE "doc_icon_images.png" #define DOC_ICON_VIDEO "doc_icon_video.png" #define DOC_ICON_MUSIC "doc_icon_music.png" #define DOC_ICON_SOUND "doc_icon_amr.png" #define DOC_ICON_PDF "doc_icon_pdf.png" #define DOC_ICON_DOC "doc_icon_word.png" #define DOC_ICON_PPT "doc_icon_ppt.png" #define DOC_ICON_EXCEL "doc_icon_excel.png" #define DOC_ICON_HTML "doc_icon_html.png" #define DOC_ICON_FLASH "doc_icon_swf.png" #define DOC_ICON_TXT "doc_icon_text.png" #define DOC_ICON_VCONTACT "doc_icon_vcard.png" #define DOC_ICON_VCALENDAR "doc_icon_vcalender.png" #define DOC_ICON_VNOTE "doc_icon_vText.png" #define DOC_ICON_RSS "doc_icon_rss.png" #define DOC_ICON_JAVA "doc_icon_java.png" #define DOC_ICON_MUSIC_PAUSE "doc_icon_control_pause.png" //NotFound #define DOC_ICON_VIDEO_PLAY "doc_icon_video_play.png" #define DOC_ICON_TPK "doc_icon_tpk.png" #define DOC_ICON_SNB "doc_icon_snb.png" #define DOC_ICON_HWP "doc_icon_hwp.png" #define DOC_ICON_GUL "doc_icon_etc.png" #define DOC_ICON_EMAIL "doc_icon_email.png" #define DOC_ICON_TASK "doc_icon_task.png" #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); int doc_create_genlist(doc_ugdata * ugd); #endif /* _DOC_LIST_H_ */