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 /httpclient.c | |
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 'httpclient.c')
-rw-r--r-- | httpclient.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/httpclient.c b/httpclient.c index cdf7645..f1dd793 100644 --- a/httpclient.c +++ b/httpclient.c @@ -359,3 +359,33 @@ string cHttpYtPushClient::getMsgBody(int) { return "{\"type\":\"YT\",payload:{\"id\":\"" + mVideoId +"\", \"store\":"+((mStore)?"true":"false")+"}}"; } +//------------------------------ +//----- cHttpCfgPushClient ------ +//------------------------------ + +cHttpCfgPushClient::cHttpCfgPushClient(int f, int id, int port, SmartTvServer* fac, string peer) : cHttpClientBase(f, id, port, fac, peer) { + + createRequestMessage(""); +} + +cHttpCfgPushClient::~cHttpCfgPushClient() { +} + +string cHttpCfgPushClient::getMsgBody(int) { + return "{\"type\":\"CFGADD\",payload:{\"serverAddr\":\"" + mPeer +"\"" +"}}"; +} + +//------------------------------ +//----- cHttpInfoClient ------ +//------------------------------ +cHttpInfoClient::cHttpInfoClient(int f, int id, int port, SmartTvServer* fac, string peer, string bdy) : cHttpClientBase(f, id, port, fac, peer), mBody(bdy) { + + createRequestMessage(""); +} + +cHttpInfoClient::~cHttpInfoClient() { +} + +string cHttpInfoClient::getMsgBody(int) { + return "{\"type\":\"INFO\",payload:" + mBody +"}";; +} |