summaryrefslogtreecommitdiff
path: root/menuundelete.h
diff options
context:
space:
mode:
Diffstat (limited to 'menuundelete.h')
-rw-r--r--menuundelete.h43
1 files changed, 35 insertions, 8 deletions
diff --git a/menuundelete.h b/menuundelete.h
index 9373d37..47db6b4 100644
--- a/menuundelete.h
+++ b/menuundelete.h
@@ -3,14 +3,21 @@
*
* See the README file for copyright information and how to reach the author.
*
- * $Id: menuundelete.h 0.2 2004/10/10 12:23:20 hflor Exp $
+ * $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 --------------------------------------------------------
@@ -24,13 +31,20 @@ private:
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(void);
+ char *DirName(bool Parent = false);
const char *Name(void) { return name; }
bool IsDirectory(void) { return isdir; }
};
@@ -41,14 +55,23 @@ 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);
- cRecording *GetRecording(cMenuRecordingSelectItem *Item);
- eOSState Open(bool OpenSubMenus = false);
- eOSState UnDelete(void);
- eOSState Delete(void);
- eOSState Summary(void);
+ eOSState FunctionCall(int FunctionNumber);
public:
- cMenuRecordingSelect(const char *Base = NULL, int Level = 0, bool OpenSubMenus = false);
+#ifdef UND_Debug
+ int objID;
+#endif
+ cMenuRecordingSelect(const char *Base = NULL, int Level = 0);
~cMenuRecordingSelect(void);
virtual eOSState ProcessKey(eKeys Key);
};
@@ -57,7 +80,11 @@ public:
class cMenuUndelete : public cOsdMenu {
private:
+ void FillMenu(void);
public:
+#ifdef UND_Debug
+ int objID;
+#endif
cMenuUndelete(void);
~cMenuUndelete(void);
virtual eOSState ProcessKey(eKeys Key);