summaryrefslogtreecommitdiff
path: root/tools.h
diff options
context:
space:
mode:
authorMartin Prochnow <nordlicht@martins-kabuff.de>2006-06-12 10:10:21 +0200
committerAndreas Mair <andreas@vdr-developer.org>2006-06-12 10:10:21 +0200
commit75cebc37f280719c40824a6f76b43018f6c71d16 (patch)
treecf895fdf24e8c3b2c3315edb5c7306f4e7c01f1b /tools.h
parent40d2369b12da350f684f5364a00c3501a6c038e6 (diff)
downloadvdr-plugin-extrecmenu-75cebc37f280719c40824a6f76b43018f6c71d16.tar.gz
vdr-plugin-extrecmenu-75cebc37f280719c40824a6f76b43018f6c71d16.tar.bz2
Version 0.12v0.12
- reworked layout - added possibility to set sorting mode for each directory - if you use the PIN-plugin, ExtRecMenu works together with it to protect recordings - fixed a very annoying bug which prevent renaming and moving recordings which have special chars in their names if VDR is compiled with VFAT=1 or startet with the option --vfat
Diffstat (limited to 'tools.h')
-rw-r--r--tools.h31
1 files changed, 28 insertions, 3 deletions
diff --git a/tools.h b/tools.h
index 87ad386..0090ed2 100644
--- a/tools.h
+++ b/tools.h
@@ -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);
};