adzap: allow user-definable zap back time > 9 min

Origin commit data
------------------
Commit: ca6d1f69ee
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-03-01 (Tue, 01 Mar 2016)

Origin message was:
------------------
- adzap: allow user-definable zap back time > 9 min
This commit is contained in:
vanhofen
2016-03-01 09:53:55 +01:00
parent 091b14fb59
commit 3a61fd5cbf
3 changed files with 26 additions and 5 deletions

View File

@@ -31,7 +31,7 @@
#include <string>
#include <semaphore.h>
class CAdZapMenu: public CMenuTarget
class CAdZapMenu: public CMenuTarget, CChangeObserver
{
private:
CFrameBuffer * frameBuffer;
@@ -43,6 +43,7 @@ class CAdZapMenu: public CMenuTarget
struct timespec zapBackTime;
std::string channelName;
CMenuForwarder *forwarders[9];
CMenuOptionNumberChooser *nc;
CChannelEventList evtlist;
struct timespec monitorLifeTime;
t_channel_id channelId;
@@ -57,6 +58,7 @@ class CAdZapMenu: public CMenuTarget
public:
static CAdZapMenu *getInstance();
int exec(CMenuTarget * parent, const std::string & actionKey);
bool changeNotify(const neutrino_locale_t, void * data);
bool isActive() { return (armed || monitor); };
};
#endif // __adzap__