From 6ab5ecddeb666f5a01742ed63f585979096302f5 Mon Sep 17 00:00:00 2001 From: horchi Date: Thu, 16 Mar 2017 19:00:50 +0100 Subject: 2017-03-16: version 1.1.48 (horchi)\n - added: Further improvement of extended skins interface\n\n --- service.h | 42 ++++++++++++++++++++++++++++-------------- 1 file changed, 28 insertions(+), 14 deletions(-) (limited to 'service.h') diff --git a/service.h b/service.h index 122986f..7f60415 100644 --- a/service.h +++ b/service.h @@ -47,18 +47,18 @@ class cEpgTimer_Interface_V1 : public cTimer : cTimer(Instant, Pause, (cChannel*)Channel) {} #endif - long TimerId() { return timerid; } - long EventId() { return eventid; } - const char* VdrName() { return vdrName ? vdrName : ""; } - const char* VdrUuid() { return vdrUuid ? vdrUuid : ""; } - int isVdrRunning() { return vdrRunning; } - int isLocal() { return local; } - int isRemote() { return !isLocal(); } - - char State() { return state; } - int hasState(char s) const { return state == s; } - const char* StateInfo() { return stateInfo ? stateInfo : ""; } - char Action() { return action; } + long TimerId() const { return timerid; } + long EventId() const { return eventid; } + const char* VdrName() const { return vdrName ? vdrName : ""; } + const char* VdrUuid() const { return vdrUuid ? vdrUuid : ""; } + int isVdrRunning() const { return vdrRunning; } + int isLocal() const { return local; } + int isRemote() const { return !isLocal(); } + + char State() const { return state; } + int hasState(char s) const { return state == s; } + const char* StateInfo() const { return stateInfo ? stateInfo : ""; } + char Action() const { return action; } protected: @@ -76,7 +76,7 @@ class cEpgTimer_Interface_V1 : public cTimer }; //*************************************************************************** -// Service Interface +// Timer Service Interfaces //*************************************************************************** struct cEpgTimer_Service_V1 @@ -87,10 +87,24 @@ struct cEpgTimer_Service_V1 #define EPG2VDR_TIMER_UPDATED "Epg2Vdr_Timer_Updated-v1.0" #define EPG2VDR_TIMER_SERVICE "Epg2Vdr_Timer_Service-v1.0" +//*************************************************************************** +// Event Service Interfaces +//*************************************************************************** + +struct cEpgEvent_Service_V1 +{ + const cEvent* in; + cEpgEvent_Interface_V1* out; +}; + +#define EPG2VDR_EVENT_SERVICE "Epg2Vdr_Event_Service-v1.0" + #ifdef EPG2VDR //*************************************************************************** -// Internal +//*************************************************************************** +//*************************************************************************** +// Internal Stuff //*************************************************************************** //*************************************************************************** -- cgit v1.2.3