Example #1
0
void CPVRGUIInfo::CharInfoEncryption(std::string &strValue) const
{
  CPVRChannelPtr channel;
  if (g_PVRClients->GetPlayingChannel(channel))
    strValue = channel->EncryptionName();
  else
    strValue.clear();
}
Example #2
0
void CPVRGUIInfo::CharInfoEncryption(CStdString &strValue) const
{
  CPVRChannelPtr channel;
  if (g_PVRClients->GetPlayingChannel(channel))
    strValue.Format("%s", channel->EncryptionName().c_str());
  else
    strValue = StringUtils::EmptyString;
}
Example #3
0
void CPVRGUIInfo::CharInfoEncryption(std::string &strValue) const
{
  if (m_descrambleInfo.iCaid != PVR_DESCRAMBLE_INFO_NOT_AVAILABLE)
  {
    // prefer dynamically updated info, if available
    strValue = CPVRChannel::GetEncryptionName(m_descrambleInfo.iCaid);
    return;
  }
  else
  {
    const CPVRChannelPtr channel(CServiceBroker::GetPVRManager().GetPlayingChannel());
    if (channel)
    {
      strValue = channel->EncryptionName();
      return;
    }
  }

  strValue.clear();
}