diff options
Diffstat (limited to 'tools.h')
-rw-r--r-- | tools.h | 31 |
1 files changed, 28 insertions, 3 deletions
@@ -1,12 +1,35 @@ +#include <string> +#include <fstream> +#include <iostream> + +using namespace std; + +class SortListItem:public cListObject +{ + private: + string path; + public: + SortListItem(const char *Path){path=Path;}; + const char *Path(){return path.c_str();} +}; + +class SortList:public cList<SortListItem> +{ + public: + void ReadConfigFile(); + void WriteConfigFile(); + bool Find(char *Path); +}; + bool MoveRename(const char *OldName,const char *NewName,cRecording *Recording,bool Move); class myRecListItem:public cListObject { + friend class myRecList; private: - const char *filename; - mutable char *sortbuffer; + static bool SortByName; + char *filename; static char *StripEpisodeName(char *s); - char *SortName()const; public: myRecListItem(cRecording *Recording); ~myRecListItem(); @@ -16,4 +39,6 @@ class myRecListItem:public cListObject class myRecList:public cList<myRecListItem> { + public: + void Sort(bool SortByName); }; |