00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00032
00033
00034
00035
00036 #ifndef __METADATA_STORE_MANAGER__H__
00037 #define __METADATA_STORE_MANAGER__H__
00038
00039 #include "stack.h"
00040
00041 #ifdef __cplusplus
00042 extern "C"
00043 {
00044 #endif
00045
00054 void mdsInit(void);
00055
00063 void mdsDestroy(void);
00064
00072 int mdsScanRoot(st_ContentType_e contentType);
00073
00082 int mdsScanCurrent(st_ContentType_e contentType);
00083
00095 int mdsScanNext(st_ContentType_e contentType, char* directory, unsigned int theIndex);
00096
00107 int mdsScanPrevious(st_ContentType_e contentType);
00108
00109
00114 void mdsSetIndex(st_ContentType_e contentType, unsigned int index);
00115
00120 unsigned int mdsGetIndex(st_ContentType_e contentType);
00121
00122
00127 int mdsGetRootLocation(const st_ContentType_e contentType, char * location, const int length);
00128
00129
00130
00131 int mdsGetItemCount(void);
00132 int mdsGetItemIndex(const gchar* szFilename);
00133 gboolean mdsGetItemFilename(int index, gchar* szFilename, int len);
00134 int mdsSetPageContent(clDisplayItem_t* displayItemArray, int nBegin, int *nChunk);
00135
00136 mdsSortStruct_t* mdsGetSortStructOfRootInfo(st_ContentType_e type);
00137 void mdsSetSortStructOfRootInfo(st_ContentType_e type, const mdsSortStruct_t* sort);
00138
00139 gchar* getContentCategoryID(st_ContentType_e type);
00140
00141 char* getFieldString(mdsFieldType_e type);
00142 mdsFieldType_e getFieldType(char *stringValue);
00143
00144 gboolean storageIsMounted(st_ContentType_e storageType);
00145 gboolean mdsArcLocIsChanged(st_ContentType_e archiveType, st_ContentType_e storageType);
00146 void mdsRecreateArchives(st_ContentType_e storageType);
00147
00149 void displayScanResult(void);
00150
00151 #ifdef __cplusplus
00152 }
00153 #endif
00154
00155 #endif //__METADATA_STORE_MANAGER__H__