blob: 795c48c2207f9bb50730595bb4c7b74274a7a55e (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
extern bool clearall; // needed for myMenuMoveRecording
// --- myMenuRecordingsItem ---------------------------------------------------
class myMenuRecordingsItem:public cOsdItem
{
private:
bool isdvd;
char dvdnr[BUFSIZ];
int level,isdirectory;
int totalentries,newentries;
char *title;
char *name;
const char *filename;
char *id; // this is the unique name that identifies a recording
public:
myMenuRecordingsItem(cRecording *Recording,int Level);
~myMenuRecordingsItem();
const char *FileName(){return filename;}
const char *Name(){return name;}
bool IsDirectory(){return name!=NULL;}
void IncrementCounter(bool IsNew);
bool IsDVD(){return isdvd;}
char *DvdNr(){return dvdnr;}
const char *ID(){return id;}
};
// --- myMenuRecordings -------------------------------------------------------
class myMenuRecordings:public cOsdMenu
{
private:
bool edit;
int level,helpkeys;
int recordingsstate;
char *base;
bool Open();
void SetHelpKeys();
cRecording *GetRecording(myMenuRecordingsItem *Item);
eOSState Play();
eOSState Rewind();
eOSState Delete();
eOSState Rename();
eOSState MoveRec();
eOSState Info();
eOSState Commands(eKeys Key=kNone);
public:
myMenuRecordings(const char *Base=NULL,int Level=0);
~myMenuRecordings();
void Set(bool Refresh=false);
virtual eOSState ProcessKey(eKeys Key);
};
// --- myMenuRenameRecording --------------------------------------------------
class myMenuRenameRecording:public cOsdMenu
{
private:
char name[MaxFileName];
char path[MaxFileName];
cRecording *recording;
myMenuRecordings *menurecordings;
public:
myMenuRenameRecording(cRecording *Recording,myMenuRecordings *MenuRecordings);
virtual eOSState ProcessKey(eKeys Key);
};
// --- myMenuMoveRecording ----------------------------------------------------
class myMenuMoveRecording:public cOsdMenu
{
private:
int level;
char *base;
cRecording *recording;
myMenuRecordings *menurecordings;
void Set();
eOSState Open();
eOSState MoveRec();
eOSState Create();
public:
myMenuMoveRecording(cRecording *Recording,myMenuRecordings *MenuRecordings,const char *Base=NULL,int Level=0);
myMenuMoveRecording::~myMenuMoveRecording();
virtual eOSState ProcessKey(eKeys Key);
};
|