summaryrefslogtreecommitdiff
path: root/locks.h
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2022-02-21 15:00:59 +0100
committerhorchi <vdr@jwendel.de>2022-02-21 15:00:59 +0100
commitd1e3f613ce43e5b355807398369393fb8e35e63e (patch)
tree79d3a951870598473f94d6413ba748174b9a8f8c /locks.h
parent9f8fb2260b73971d69691962df472c992d94b123 (diff)
downloadvdr-plugin-pin-master.tar.gz
vdr-plugin-pin-master.tar.bz2
compiler portingHEAD0.1.18master
Diffstat (limited to 'locks.h')
-rw-r--r--locks.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/locks.h b/locks.h
index f64ccbb..21d81af 100644
--- a/locks.h
+++ b/locks.h
@@ -24,7 +24,7 @@
//***************************************************************************
class cLockItem : public cListObject
-{
+{
public:
enum SearchMode
@@ -38,11 +38,11 @@ class cLockItem : public cListObject
smCount
};
-
+
cLockItem(int aActive = no);
cLockItem(const char* aName, int aActive = yes, const char* aTitle = 0);
virtual ~cLockItem();
-
+
// interface
virtual bool Parse(char* line);
@@ -53,7 +53,7 @@ class cLockItem : public cListObject
virtual int Locked(long startTime = 0);
bool MatchPattern(const char* aName);
bool HasName(const char* aName);
-
+
// gettings
int GetActive() { return active; }
@@ -83,7 +83,7 @@ class cLockItem : public cListObject
static const char* searchModes[smCount+1];
protected:
-
+
char* name;
char* title;
long start; // in seconds
@@ -99,7 +99,7 @@ class cLockItem : public cListObject
//***************************************************************************
class cLockedBroadcast : public cLockItem
-{
+{
public:
cLockedBroadcast();
@@ -136,18 +136,18 @@ template<class T> class cLockList : public cConfig<T>
if (!aName)
return 0;
-
+
for (item = (T*)this->First(); item; item = (T*)this->Next(item))
{
if (item->HasName(aName))
return item;
}
-
+
return 0;
}
protected:
-
+
int listType;
};
@@ -173,10 +173,9 @@ class cLockedBroadcasts : public cLockList<cLockedBroadcast>
public:
cLockedBroadcasts(int aType = na) : cLockList<cLockedBroadcast>::cLockList(aType) {}
-
+
virtual int Locked(const char* aName, long startTime = 0);
};
//***************************************************************************
#endif // VDR_PIN_LOCKS_H
-