00001 /* 00002 * This file is part of settings. 00003 * 00004 * settings is free software: you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation, either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * settings is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00031 #ifndef __ILIAD_ARC_LOC_DATA_H__ 00032 #define __ILIAD_ARC_LOC_DATA_H__ 00033 00034 #ifdef __cplusplus 00035 extern "C" 00036 { 00037 #endif 00038 00039 typedef enum 00040 { 00041 arcNews = 0, 00042 arcBooks, 00043 arcDocs, 00044 arcNotes, 00045 arcTypeUndefined 00046 } arcType_e; 00047 00048 typedef enum 00049 { 00050 arcLocMain = 0, 00051 arcLocCard, 00052 arcLocUSB, 00053 arcLocCF, 00054 arcLocUndefined 00055 } arcLocType_e; 00056 00057 typedef struct 00058 { 00059 arcLocType_e newsLoc; 00060 arcLocType_e booksLoc; 00061 arcLocType_e docsLoc; 00062 arcLocType_e notesLoc; 00063 } arcLocData_t; 00064 00065 typedef struct 00066 { 00067 char* mainPath; 00068 char* cardPath; 00069 char* cfPath; 00070 char* usbPath; 00071 } mediaPath_t; 00072 00073 typedef struct 00074 { 00075 char* newsPath; 00076 char* booksPath; 00077 char* docsPath; 00078 char* notesPath; 00079 }arcPath_t; 00080 00081 void iLiad_archive_location_data_init(void); 00082 00083 void iLiad_archive_location_data_destroy(void); 00084 00085 void iLiad_archive_location_data_store(void); 00086 00087 void iLiad_archive_location_data_set(arcType_e arc, arcLocType_e location); 00088 void iLiad_export_location_data_set(arcLocType_e location); 00089 00090 arcLocType_e iLiad_archive_location_data_get(arcType_e arc); 00091 arcLocType_e iLiad_export_location_data_get(); 00092 00093 #ifdef __cplusplus 00094 } 00095 #endif 00096 00097 #endif /* __ILIAD_ARC_LOC_DATA_H__ */
1.5.6