zapit/lib/zapitclient.cpp: add zapTo_epg, EVT_BACK_ZAP_COMPLETE event

Origin commit data
------------------
Commit: 322db8b591
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-08-12 (Mon, 12 Aug 2013)
This commit is contained in:
[CST] Focus
2013-08-12 13:31:20 +04:00
parent bec445b476
commit d5ec477f83
3 changed files with 24 additions and 0 deletions

View File

@@ -170,6 +170,7 @@ unsigned int CZapitClient::zapTo_record(const t_channel_id channel_id)
msg.channel_id = channel_id;
msg.record = true;
msg.pip = false;
msg.epg = false;
send(CZapitMessages::CMD_ZAPTO_SERVICEID, (const char *) & msg, sizeof(msg));
@@ -188,6 +189,26 @@ unsigned int CZapitClient::zapTo_pip(const t_channel_id channel_id)
msg.channel_id = channel_id;
msg.record = false;
msg.pip = true;
msg.epg = false;
send(CZapitMessages::CMD_ZAPTO_SERVICEID, (const char *) & msg, sizeof(msg));
CZapitMessages::responseZapComplete response;
CBasicClient::receive_data((char* )&response, sizeof(response));
close_connection();
return response.zapStatus;
}
unsigned int CZapitClient::zapTo_epg(const t_channel_id channel_id)
{
CZapitMessages::commandZaptoServiceID msg;
msg.channel_id = channel_id;
msg.record = false;
msg.pip = false;
msg.epg = true;
send(CZapitMessages::CMD_ZAPTO_SERVICEID, (const char *) & msg, sizeof(msg));