本文整理汇总了C++中CLIENTMAP::find方法的典型用法代码示例。如果您正苦于以下问题:C++ CLIENTMAP::find方法的具体用法?C++ CLIENTMAP::find怎么用?C++ CLIENTMAP::find使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CLIENTMAP
的用法示例。
在下文中一共展示了CLIENTMAP::find方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DeleteFromClient
bool CPVRTimerInfoTag::DeleteFromClient(bool force) const
{
try
{
CLIENTMAP *clients = CPVRManager::Get()->Clients();
/* and write it to the backend */
PVR_ERROR err = clients->find(m_iClientID)->second->DeleteTimer(*this, force);
if (err == PVR_ERROR_RECORDING_RUNNING)
{
if (CGUIDialogYesNo::ShowAndGetInput(122,0,19122,0))
err = clients->find(m_iClientID)->second->DeleteTimer(*this, true);
}
if (err != PVR_ERROR_NO_ERROR)
throw err;
return true;
}
catch (PVR_ERROR err)
{
DisplayError(err);
}
return false;
}
示例2: RenameOnClient
bool CPVRTimerInfoTag::RenameOnClient(const CStdString &newname) const
{
try
{
CLIENTMAP *clients = CPVRManager::Get()->Clients();
/* and write it to the backend */
PVR_ERROR err = clients->find(m_iClientID)->second->RenameTimer(*this, newname);
if (err == PVR_ERROR_NOT_IMPLEMENTED)
err = clients->find(m_iClientID)->second->UpdateTimer(*this);
if (err != PVR_ERROR_NO_ERROR)
throw err;
return true;
}
catch (PVR_ERROR err)
{
DisplayError(err);
}
return false;
}
示例3: Delete
bool CPVRRecording::Delete(void) const
{
try
{
CLIENTMAP *clients = CPVRManager::Get()->Clients();
/* and write it to the backend */
PVR_ERROR err = clients->find(m_clientID)->second->DeleteRecording(*this);
if (err != PVR_ERROR_NO_ERROR)
throw err;
return true;
}
catch (PVR_ERROR err)
{
DisplayError(err);
}
return false;
}
示例4: Rename
bool CPVRRecording::Rename(const CStdString &strNewName) const
{
try
{
CLIENTMAP *clients = CPVRManager::Get()->Clients();
/* and write it to the backend */
PVR_ERROR err = clients->find(m_clientID)->second->RenameRecording(*this, strNewName);
if (err != PVR_ERROR_NO_ERROR)
throw err;
CPVRManager::GetRecordings()->Update(true); // async update
return true;
}
catch (PVR_ERROR err)
{
DisplayError(err);
}
return false;
}
示例5: UpdateOnClient
bool CPVRTimerInfoTag::UpdateOnClient() const
{
try
{
CLIENTMAP *clients = CPVRManager::Get()->Clients();
/* and write it to the backend */
PVR_ERROR err = clients->find(m_iClientID)->second->UpdateTimer(*this);
if (err != PVR_ERROR_NO_ERROR)
throw err;
if (m_StartTime < CDateTime::GetCurrentDateTime() && m_StopTime > CDateTime::GetCurrentDateTime())
CPVRManager::Get()->TriggerRecordingsUpdate();
return true;
}
catch (PVR_ERROR err)
{
DisplayError(err);
}
return false;
}