diff options
author | Timo Eskola <timo@tolleri.net> | 2015-09-08 12:59:54 +0300 |
---|---|---|
committer | Timo Eskola <timo@tolleri.net> | 2015-09-08 12:59:54 +0300 |
commit | b94ebafe8c2f32b404d69f1ea8e6bc2de68e606a (patch) | |
tree | cfcdfef1696b16df880e5be0d880e8f72e96446f /visibility.h | |
parent | 47a129b230b2b2e9a880948b5bc188ab715ba3b2 (diff) | |
download | vdr-plugin-duplicates-b94ebafe8c2f32b404d69f1ea8e6bc2de68e606a.tar.gz vdr-plugin-duplicates-b94ebafe8c2f32b404d69f1ea8e6bc2de68e606a.tar.bz2 |
Version 0.1.0:
- Added hiding of duplicate recordings.
- Updated German translations, thanks to Joerg Bornkessel.
Diffstat (limited to 'visibility.h')
-rw-r--r-- | visibility.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/visibility.h b/visibility.h new file mode 100644 index 0000000..dd29bf6 --- /dev/null +++ b/visibility.h @@ -0,0 +1,41 @@ +/* + * visibility.h: Visibility classes for duplicates plugin. + * + * See the README file for copyright information and how to reach the author. + * + * $Id$ + */ + +#ifndef _DUPLICATES_VISIBILITY_H +#define _DUPLICATES_VISIBILITY_H + +//#define DEBUG_VISIBILITY + +#include <vdr/recording.h> + +// --- eVisibility ----------------------------------------------------------- + +enum eVisibility {UNKNOWN, VISIBLE, HIDDEN}; + +// --- cVisibility ----------------------------------------------------------- + +class cVisibility { +private: + cString hiddenFileName; + eVisibility visibility; +public: + cVisibility(const char *fileName); + cVisibility(const cVisibility &Visibility); + eVisibility Get(void); + void Set(bool visible); + eVisibility Read(void); + bool Write(bool visible); +#ifdef DEBUG_VISIBILITY + static int getCount; + static int readCount; + static int accessCount; + static void ClearCounters(void); +#endif +}; + +#endif |