00001 /* 00002 * This file is part of contentLister. 00003 * 00004 * contentLister 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 * contentLister 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 00026 /* contentLister - A GTK based content lister (read only) application on the eReader platform 00027 * Copyright (C) 2005-2008 iRex Technologies B.V. 00028 * 00029 */ 00030 00031 #ifndef __CL_HISTORY__H__ 00032 #define __CL_HISTORY__H__ 00033 00034 #ifdef __cplusplus 00035 extern "C" 00036 { 00037 #endif /* __cplusplus */ 00038 00039 00040 #define MAX_RECENT_ITEMS 6 // max. number of items in recent-documents list 00041 #define MAX_DOWNLOAD_ITEMS 12 // max. number of items in download-history 00042 00043 00050 void hsInit(void); 00051 00058 void hsDestroy(void); 00059 00069 void hsStoreItem(st_ContentType_e contentType, clDisplayItem_t* item); 00070 00079 void hsGetItem(st_ContentType_e contentType, clDisplayItem_t* item); 00080 00090 gboolean hsSetLocation(st_ContentType_e contentType , char* location); 00091 00101 char* hsGetLocation(st_ContentType_e contentType); 00102 00110 gboolean hsRemoveLocation(st_ContentType_e contentType); 00111 00120 void hsSetActiveViewer(st_ContentType_e contentType , char* viewerId); 00121 00130 char* hsGetActiveViewer(st_ContentType_e contentType); 00131 00139 st_ContentType_e hsGetContentType(char* viewerid); 00140 00148 void hsCleanupSymlinks(const char* szLinkDir); 00149 00158 void hsLimitSymlinks(const char* szLinkDir, int maxItems); 00159 00160 00161 #ifdef __cplusplus 00162 } 00163 #endif /* __cplusplus */ 00164 00165 #endif //__CL_HISTORY__H__