diff options
author | thlo <t.lohmar@gmx.de> | 2013-04-29 20:26:53 +0200 |
---|---|---|
committer | thlo <t.lohmar@gmx.de> | 2013-04-29 20:26:53 +0200 |
commit | 5a8bf27d89d82d0bb1ea0939c74c1f122f6f6ae3 (patch) | |
tree | ab499437db93214fb753fe303af58d6d2baf16fd /smarttvfactory.h | |
parent | 7fe1953d5bb204ec97e8f5032b0f7ec5d0e1cbda (diff) | |
download | vdr-plugin-smarttvweb-5a8bf27d89d82d0bb1ea0939c74c1f122f6f6ae3.tar.gz vdr-plugin-smarttvweb-5a8bf27d89d82d0bb1ea0939c74c1f122f6f6ae3.tar.bz2 |
Added Delete YT Urls, Get notification for starting and finishing recordings, resume fix, query recording info of a single item.
Diffstat (limited to 'smarttvfactory.h')
-rw-r--r-- | smarttvfactory.h | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/smarttvfactory.h b/smarttvfactory.h index 261f2ea..02c03ec 100644 --- a/smarttvfactory.h +++ b/smarttvfactory.h @@ -38,12 +38,17 @@ #ifndef STANDALONE #include <vdr/recording.h> +#include <vdr/status.h> + +#else +class cStatus { +}; #endif using namespace std; -#define PLG_VERSION "0.9.7" -#define SERVER "SmartTvWeb/0.9.7" +#define PLG_VERSION "0.9.8-pre" +#define SERVER "SmartTvWeb/0.9.8-pre" struct sClientEntry { string mac; @@ -52,7 +57,8 @@ struct sClientEntry { sClientEntry(string m, string i, time_t t ): mac(m), ip(i), lastKeepAlive(t) {}; }; -class SmartTvServer { +class SmartTvServer : public cStatus { + public: SmartTvServer(); virtual ~SmartTvServer(); @@ -74,17 +80,23 @@ class SmartTvServer { void updateTvClient(string ip, string mac, time_t upd); void removeTvClient(string ip, string mac, time_t upd); - void storeYtVideoId(string); + void storeYtVideoId(string guid); + bool deleteYtVideoId(string guid); cManageUrls* getUrlsObj(); void pushYtVideoId(string, bool); void pushYtVideoIdToClient(string vid_id, string peer, bool); + void pushCfgServerAddressToTv( string tv_addr); private: void addHttpResource(int fd, cHttpResourceBase* resource); int connectToClient(string peer); void setNonBlocking(int fd); + + // status callbacks + void Recording(const cDevice *Device, const char *Name, const char *FileName, bool On); + void TimerChange(const cTimer *Timer, eTimerChange Change); pthread_t mThreadId; int mRequestCount; @@ -99,7 +111,7 @@ class SmartTvServer { vector<sClientEntry*> mConTvClients; int mActiveSessions; - int mHttpClients; + int mHttpClientId; string mConfigDir; cSmartTvConfig *mConfig; |