summaryrefslogtreecommitdiff
path: root/channels.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-02-08 11:05:22 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2004-02-08 11:05:22 +0100
commitda3c91f01bab52add46a3de24d20b760dfaf9708 (patch)
tree49f69feb8f1f228c65dfe6911e1a5772e3827197 /channels.h
parent8c71aab9bc8e0a7879eb2337de59de1028f92b7a (diff)
downloadvdr-da3c91f01bab52add46a3de24d20b760dfaf9708.tar.gz
vdr-da3c91f01bab52add46a3de24d20b760dfaf9708.tar.bz2
Now handling "linked services"
Diffstat (limited to 'channels.h')
-rw-r--r--channels.h22
1 files changed, 20 insertions, 2 deletions
diff --git a/channels.h b/channels.h
index 532a1121..fa55d951 100644
--- a/channels.h
+++ b/channels.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: channels.h 1.13 2004/01/25 15:31:16 kls Exp $
+ * $Id: channels.h 1.14 2004/02/07 22:04:26 kls Exp $
*/
#ifndef __CHANNELS_H
@@ -66,6 +66,19 @@ public:
static const tChannelID InvalidID;
};
+class cChannel;
+
+class cLinkChannel : public cListObject {
+private:
+ cChannel *channel;
+public:
+ cLinkChannel(cChannel *Channel) { channel = Channel; }
+ cChannel *Channel(void) { return channel; }
+ };
+
+class cLinkChannels : public cList<cLinkChannel> {
+ };
+
class cChannel : public cListObject {
friend class cMenuEditChannel;
private:
@@ -102,11 +115,14 @@ private:
int hierarchy;
int __EndData__;
int modification;
+ cLinkChannels *linkChannels;
+ cChannel *refChannel;
const char *ParametersToString(void);
bool StringToParameters(const char *s);
public:
cChannel(void);
- cChannel(const cChannel *Channel);
+ cChannel(const cChannel &Channel);
+ ~cChannel();
cChannel& operator= (const cChannel &Channel);
const char *ToText(void);
bool Parse(const char *s, bool AllowNonUniqueID = false);
@@ -153,6 +169,8 @@ public:
void SetPids(int Vpid, int Ppid, int *Apids, char ALangs[][4], int *Dpids, char DLangs[][4], int Tpid);
void SetCaIds(const int *CaIds); // list must be zero-terminated
void SetCaDescriptors(int Level);
+ void SetLinkChannels(cLinkChannels *LinkChannels);
+ void SetRefChannel(cChannel *RefChannel);
};
class cChannels : public cRwLock, public cConfig<cChannel> {