void CAddonCallbacksPVR::PVRTriggerEpgUpdate(void *addonData, unsigned int iChannelUid) { // get the client CPVRClient *client = GetPVRClient(addonData); if (!client) { CLog::Log(LOGERROR, "PVR - %s - invalid handler data", __FUNCTION__); return; } // get the channel CPVRChannelPtr channel = g_PVRChannelGroups->GetByUniqueID(iChannelUid, client->GetID()); CEpg* epg(NULL); // get the EPG for the channel if (!channel || (epg = channel->GetEPG()) == NULL) { CLog::Log(LOGERROR, "PVR - %s - invalid channel or channel doesn't have an EPG", __FUNCTION__); return; } // force an update epg->ForceUpdate(); }
void EpgReply::networkError() { emit epg(QHash<QString,QList<Program> >(), true); }
void EpgReply::parseData(const QByteArray& data) { emit epg(mParser.parseProgramWeek(data), false); }