00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __FS_FileHistory__
00021 #define __FS_FileHistory__
00022
00023 #include "FS_API.h"
00024 #include<UT/UT_PtrArray.h>
00025 #include<UT/UT_String.h>
00026 #include<fstream.h>
00027
00028 class FS_API FS_FileHistory
00029 {
00030 public:
00031 FS_FileHistory(const int maxFiles, const char *type, bool resolve);
00032 ~FS_FileHistory();
00033
00034 int numFilesinMRU() const;
00035 const char *getFilenamefromMRU(int index);
00036 void addFiletoMRU(const char *filename);
00037 void removeFilefromMRU(const char *filename);
00038 void getFormattedFilenamefromMRU(int index, UT_String &path);
00039 void saveFilestoMRU(ostream &os);
00040 bool loadFilesfromMRU(UT_IStream &is);
00041 const char *getTypeNameofMRU();
00042
00043 private:
00044 UT_PtrArray<UT_String *> myMRUList;
00045 int myMRUListHead;
00046 int myListMax;
00047 UT_String myTypeName;
00048 bool myResolvePath;
00049 };
00050
00051 #endif
00052