diff options
author | Martin Schirrmacher <vdr.zaphistory@schirrmacher.eu> | 2013-08-15 21:24:18 +0200 |
---|---|---|
committer | Martin Schirrmacher <vdr.zaphistory@schirrmacher.eu> | 2013-08-15 21:24:18 +0200 |
commit | 111b0cc69414d8025a66b3325a65d7286be87df7 (patch) | |
tree | 13e4ec5b46e6607456e7015b0aa1365994f35a8e /zaplist.h | |
download | vdr-plugin-zaphistory-111b0cc69414d8025a66b3325a65d7286be87df7.tar.gz vdr-plugin-zaphistory-111b0cc69414d8025a66b3325a65d7286be87df7.tar.bz2 |
initial commit
Diffstat (limited to 'zaplist.h')
-rw-r--r-- | zaplist.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/zaplist.h b/zaplist.h new file mode 100644 index 0000000..e48f836 --- /dev/null +++ b/zaplist.h @@ -0,0 +1,42 @@ +/* + * zaplist.h: A plugin for the Video Disk Recorder + * + * See the README file for copyright information and how to reach the author. + * + * $Id$ + */ + +#ifndef __ZAPLIST_H +#define __ZAPLIST_H + +#include <vdr/channels.h> +#include <vdr/status.h> + +#include "setup-zaphistory.h" +#include "zaphistorychannel.h" + +class cZapHistory; + +extern cZapHistory ZapHistory; + +class cZapHistory : public cConfig<cZapHistoryChannel> { + private: + cZapHistoryChannel *currentChannel; + time_t lastSwitch; + + cZapHistoryChannel* FindChannel( cChannel *channel ); + cZapHistorySortMode sortMode; + + void UpdateHistory( cZapHistoryChannel *zapChan); + public: + cZapHistory(); + void ChannelSwitch( cChannel *channel ); + void ViewInterrupted(); + void ViewContinue(); + void UpdateWatchTime(); + cZapHistorySortMode GetSortMode(); + void SetSortMode( cZapHistorySortMode mode ); + void Reset(cZapHistoryChannel *zapChan = NULL, bool statisticOnly = true); +}; + +#endif |