blob: dd29bf6fda170eec658f91f92e243b82f77748f6 (
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
|
/*
* 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
|