当前位置: 首页>>代码示例>>C++>>正文


C++ CLIENTMAP::find方法代码示例

本文整理汇总了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;
}
开发者ID:rdaoc,项目名称:xbmc,代码行数:26,代码来源:PVRTimerInfoTag.cpp

示例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;
}
开发者ID:rdaoc,项目名称:xbmc,代码行数:24,代码来源:PVRTimerInfoTag.cpp

示例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;
}
开发者ID:vanegithub,项目名称:xbmc,代码行数:20,代码来源:PVRRecording.cpp

示例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;
}
开发者ID:vanegithub,项目名称:xbmc,代码行数:21,代码来源:PVRRecording.cpp

示例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;
}
开发者ID:rdaoc,项目名称:xbmc,代码行数:22,代码来源:PVRTimerInfoTag.cpp


注:本文中的CLIENTMAP::find方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。