summaryrefslogtreecommitdiff
path: root/visibility.h
diff options
context:
space:
mode:
Diffstat (limited to 'visibility.h')
-rw-r--r--visibility.h41
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