blob: c12b0702cfc35543646b3815083924f22fb31393 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
std::string myStrReplace(std::string S,char C1,char C2);
class SortListItem:public cListObject
{
private:
std::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);
};
class MoveBetweenFileSystems:public cThread
{
private:
std::string oldname;
std::string newname;
cRecording *recording;
bool Move(std::string From,std::string To,cRecording *Recording);
protected:
virtual void Action();
public:
MoveBetweenFileSystems();
bool Start(std::string OldName,std::string NewName,cRecording *Recording);
bool IsMoving(std::string Path);
};
extern MoveBetweenFileSystems MoveThread;
bool MoveRename(const char *OldName,const char *NewName,cRecording *Recording,bool Move);
class myRecListItem:public cListObject
{
friend class myRecList;
private:
static bool SortByName;
char *filename;
static char *StripEpisodeName(char *s);
public:
myRecListItem(cRecording *Recording);
~myRecListItem();
virtual int Compare(const cListObject &ListObject)const;
cRecording *recording;
};
class myRecList:public cList<myRecListItem>
{
public:
void Sort(bool SortByName);
};
|