本文整理汇总了C++中CPVRClientPtr::GetClientCapabilities方法的典型用法代码示例。如果您正苦于以下问题:C++ CPVRClientPtr::GetClientCapabilities方法的具体用法?C++ CPVRClientPtr::GetClientCapabilities怎么用?C++ CPVRClientPtr::GetClientCapabilities使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CPVRClientPtr
的用法示例。
在下文中一共展示了CPVRClientPtr::GetClientCapabilities方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnInitWindow
void CGUIDialogPVRGuideInfo::OnInitWindow()
{
CGUIDialog::OnInitWindow();
if (!m_progItem)
{
/* no epg event selected */
return;
}
if (!m_progItem->HasRecording())
{
/* not recording. hide the play recording button */
SET_CONTROL_HIDDEN(CONTROL_BTN_PLAY_RECORDING);
}
bool bHideRecord(true);
bool bHideAddTimer(true);
if (m_progItem->HasTimer())
{
if (m_progItem->Timer()->IsRecording())
{
SET_CONTROL_LABEL(CONTROL_BTN_RECORD, 19059); /* Stop recording */
bHideRecord = false;
}
else if (m_progItem->Timer()->HasTimerType() && !m_progItem->Timer()->GetTimerType()->IsReadOnly())
{
SET_CONTROL_LABEL(CONTROL_BTN_RECORD, 19060); /* Delete timer */
bHideRecord = false;
}
}
else if (m_progItem->Channel() && m_progItem->IsRecordable())
{
const CPVRClientPtr client = CServiceBroker::GetPVRManager().GetClient(m_progItem->ClientID());
if (client && client->GetClientCapabilities().SupportsTimers())
{
SET_CONTROL_LABEL(CONTROL_BTN_RECORD, 264); /* Record */
bHideRecord = false;
bHideAddTimer = false;
}
}
if (!m_progItem->IsPlayable())
SET_CONTROL_HIDDEN(CONTROL_BTN_PLAY_EPGTAG);
if (bHideRecord)
SET_CONTROL_HIDDEN(CONTROL_BTN_RECORD);
if (bHideAddTimer)
SET_CONTROL_HIDDEN(CONTROL_BTN_ADD_TIMER);
}
示例2: CanRecord
bool CPVRChannel::CanRecord(void) const
{
const CPVRClientPtr client = CServiceBroker::GetPVRManager().GetClient(m_iClientId);
return client && client->GetClientCapabilities().SupportsRecordings();
}