blob: 47db6b4736ad41d6c202d71cb9b543cf6e2364f7 (
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
82
83
84
85
86
87
88
89
90
91
92
93
94
|
/*
* undelete: A plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
* $Id: menuundelete.h 0.4 2005/11/16 18:39:18 hflor Exp $
*/
#ifndef __MENUUNDELETE_H
#define __MENUUNDELETE_H
#include "vdrtools.h"
#include <vdr/menu.h>
#include <vdr/menuitems.h>
#include <vdr/recording.h>
#ifndef RECEXT
#define RECEXT ".rec"
#define DELEXT ".del"
#endif
// --- cMenuRecordingSelectItem --------------------------------------------------------
class cMenuRecordingSelectItem : public cOsdItem {
private:
char *filename;
char *name;
int level;
time_t start;
bool isdir;
int totalEntries;
int newEntries;
public:
#ifdef UND_Debug
int objID;
#endif
cMenuRecordingSelectItem(cRecording *Recording, int Level);
~cMenuRecordingSelectItem(void);
#if VDRVERSNUM >= 10315
virtual int compare(const cListObject &ListObject) const;
#else
virtual bool operator< (const cListObject &ListObject);
#endif
void IncrementCounter(bool New);
void RefreshCounter(void);
const char *FileName(void) { return filename; }
char *DirName(bool Parent = false);
const char *Name(void) { return name; }
bool IsDirectory(void) { return isdir; }
};
// --- cMenuRecordingSelect --------------------------------------------------------
class cMenuRecordingSelect : public cOsdMenu {
private:
char *base;
int level;
bool top_line[2];
bool bottom_line[2];
bool IsMenuRecordingSelectItem(cOsdItem *Item);
bool IsDirectory(cOsdItem *Item);
bool IsRecording(cOsdItem *Item);
bool IsReady(void);
cRecording *GetRecording(cOsdItem *Item);
void AddFunctionLines(void);
void DelFunctionLines(void);
void SetHelpKeys(void);
eOSState FunctionCall(int FunctionNumber);
public:
#ifdef UND_Debug
int objID;
#endif
cMenuRecordingSelect(const char *Base = NULL, int Level = 0);
~cMenuRecordingSelect(void);
virtual eOSState ProcessKey(eKeys Key);
};
// --- cMenuUndelete --------------------------------------------------------
class cMenuUndelete : public cOsdMenu {
private:
void FillMenu(void);
public:
#ifdef UND_Debug
int objID;
#endif
cMenuUndelete(void);
~cMenuUndelete(void);
virtual eOSState ProcessKey(eKeys Key);
};
#endif //__MENUUNDELETE_H
|