diff options
author | Lars Hanisch <dvb@flensrocker.de> | 2011-12-10 00:05:32 +0100 |
---|---|---|
committer | Lars Hanisch <dvb@flensrocker.de> | 2011-12-10 00:05:32 +0100 |
commit | e5899689c72ef8b583d08f79290739abafe2d7a2 (patch) | |
tree | 7f91110c92f6f576f83d1a2ed4e24033fe2d3fed /status.h | |
parent | 6766fad3d51a176dad50698a1b94c460ffd28578 (diff) | |
download | vdr-plugin-dynamite-e5899689c72ef8b583d08f79290739abafe2d7a2.tar.gz vdr-plugin-dynamite-e5899689c72ef8b583d08f79290739abafe2d7a2.tar.bz2 |
try to set the initial channel on device-attach if it hasn't been set so farv0.0.8f
Diffstat (limited to 'status.h')
-rw-r--r-- | status.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/status.h b/status.h new file mode 100644 index 0000000..bb5e686 --- /dev/null +++ b/status.h @@ -0,0 +1,25 @@ +#ifndef __DYNAMITESTATUS_H +#define __DYNAMITESTATUS_H + +#include <vdr/status.h> + +class cDynamiteStatus : public cStatus { +private: + static cDynamiteStatus *status; + + time_t init; + int initialChannel; + bool initialChannelSet; + int switchCount; + + cDynamiteStatus(int InitialChannel); + + virtual void ChannelSwitch(const cDevice *Device, int ChannelNumber); + +public: + static void Init(void); + static void DeInit(void); + static void SetInitialChannel(void); + }; + +#endif // __DYNAMITESTATUS_H |