diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2013-12-25 12:13:00 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2013-12-25 12:13:00 +0100 |
commit | f6283b8e91f5b5bc20bc0ab4ea4c22e4810c17e5 (patch) | |
tree | 0c5eff13c074cc8885102cd7af98abccc74c908e /menu.h | |
parent | b936cb366f3bbd7c62327999343e2986af38d2d4 (diff) | |
download | vdr-f6283b8e91f5b5bc20bc0ab4ea4c22e4810c17e5.tar.gz vdr-f6283b8e91f5b5bc20bc0ab4ea4c22e4810c17e5.tar.bz2 |
The Recordings menu can now be called with a cRecordingFilter
Diffstat (limited to 'menu.h')
-rw-r--r-- | menu.h | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.h 3.4 2013/10/30 14:32:13 kls Exp $ + * $Id: menu.h 3.5 2013/12/25 12:06:03 kls Exp $ */ #ifndef __MENU_H @@ -191,6 +191,13 @@ public: cOsdObject *CamControl(void); bool CamMenuActive(void); +class cRecordingFilter { +public: + virtual ~cRecordingFilter(void) {}; + virtual bool Filter(const cRecording *Recording) const = 0; + ///< Returns true if the given Recording shall be displayed in the Recordings menu. + }; + class cMenuRecordingItem; class cMenuRecordings : public cOsdMenu { @@ -199,6 +206,7 @@ private: int level; int recordingsState; int helpKeys; + const cRecordingFilter *filter; static cString path; static cString fileName; void SetHelpKeys(void); @@ -213,7 +221,7 @@ private: protected: cString DirectoryName(void); public: - cMenuRecordings(const char *Base = NULL, int Level = 0, bool OpenSubMenus = false); + cMenuRecordings(const char *Base = NULL, int Level = 0, bool OpenSubMenus = false, const cRecordingFilter *Filter = NULL); ~cMenuRecordings(); virtual eOSState ProcessKey(eKeys Key); static void SetPath(const char *Path); |