From b94ebafe8c2f32b404d69f1ea8e6bc2de68e606a Mon Sep 17 00:00:00 2001 From: Timo Eskola Date: Tue, 8 Sep 2015 12:59:54 +0300 Subject: Version 0.1.0: - Added hiding of duplicate recordings. - Updated German translations, thanks to Joerg Bornkessel. --- visibility.h | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 visibility.h (limited to 'visibility.h') 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 + +// --- 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 -- cgit v1.2.3