summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2010-01-17 12:08:03 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2010-01-17 12:08:03 +0100
commita503c6ab3f1763c98db5677a59d4d07bf8299025 (patch)
tree8c041b2e26b1453151f73927cdb3dacbe10b2f50 /config.h
parent61c1df70040cbb9215f9735be36cf414b039a2e6 (diff)
downloadvdr-a503c6ab3f1763c98db5677a59d4d07bf8299025.tar.gz
vdr-a503c6ab3f1763c98db5677a59d4d07bf8299025.tar.bz2
The "Edit timer" menu can now set the folder for the recording from a list of folders stored in "folders.conf"
Diffstat (limited to 'config.h')
-rw-r--r--config.h31
1 files changed, 30 insertions, 1 deletions
diff --git a/config.h b/config.h
index 547b49ba..651e9ae7 100644
--- a/config.h
+++ b/config.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: config.h 2.17 2010/01/08 15:21:44 kls Exp $
+ * $Id: config.h 2.18 2010/01/16 13:33:10 kls Exp $
*/
#ifndef __CONFIG_H
@@ -158,6 +158,34 @@ public:
}
};
+class cNestedItem : public cListObject {
+private:
+ char *text;
+ cList<cNestedItem> *subItems;
+public:
+ cNestedItem(const char *Text, bool WithSubItems = false);
+ virtual ~cNestedItem();
+ virtual int Compare(const cListObject &ListObject) const;
+ const char *Text(void) const { return text; }
+ cList<cNestedItem> *SubItems(void) { return subItems; }
+ void AddSubItem(cNestedItem *Item);
+ void SetText(const char *Text);
+ void SetSubItems(bool On);
+ };
+
+class cNestedItemList : public cList<cNestedItem> {
+private:
+ char *fileName;
+ bool Parse(FILE *f, cList<cNestedItem> *List, int &Line);
+ bool Write(FILE *f, cList<cNestedItem> *List, int Indent = 0);
+public:
+ cNestedItemList(void);
+ virtual ~cNestedItemList();
+ void Clear(void);
+ bool Load(const char *FileName);
+ bool Save(void);
+ };
+
class cCommands : public cConfig<cCommand> {};
class cSVDRPhosts : public cConfig<cSVDRPhost> {
@@ -165,6 +193,7 @@ public:
bool Acceptable(in_addr_t Address);
};
+extern cNestedItemList Folders;
extern cCommands Commands;
extern cCommands RecordingCommands;
extern cSVDRPhosts SVDRPhosts;