本文整理汇总了C++中CPVRRecording::IsDeleted方法的典型用法代码示例。如果您正苦于以下问题:C++ CPVRRecording::IsDeleted方法的具体用法?C++ CPVRRecording::IsDeleted怎么用?C++ CPVRRecording::IsDeleted使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CPVRRecording
的用法示例。
在下文中一共展示了CPVRRecording::IsDeleted方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: WriteClientRecordingInfo
/*!
* @brief Copy over recording info from xbmcRecording to addonRecording.
* @param xbmcRecording The recording on XBMC's side.
* @param addonRecording The recording on the addon's side.
*/
void CPVRClient::WriteClientRecordingInfo(const CPVRRecording &xbmcRecording, PVR_RECORDING &addonRecording)
{
time_t recTime;
xbmcRecording.RecordingTimeAsUTC().GetAsTime(recTime);
memset(&addonRecording, 0, sizeof(addonRecording));
addonRecording.recordingTime = recTime - g_advancedSettings.m_iPVRTimeCorrection;
strncpy(addonRecording.strRecordingId, xbmcRecording.m_strRecordingId.c_str(), sizeof(addonRecording.strRecordingId) - 1);
strncpy(addonRecording.strTitle, xbmcRecording.m_strTitle.c_str(), sizeof(addonRecording.strTitle) - 1);
strncpy(addonRecording.strPlotOutline, xbmcRecording.m_strPlotOutline.c_str(), sizeof(addonRecording.strPlotOutline) - 1);
strncpy(addonRecording.strPlot, xbmcRecording.m_strPlot.c_str(), sizeof(addonRecording.strPlot) - 1);
strncpy(addonRecording.strChannelName, xbmcRecording.m_strChannelName.c_str(), sizeof(addonRecording.strChannelName) - 1);
addonRecording.iDuration = xbmcRecording.GetDuration();
addonRecording.iPriority = xbmcRecording.m_iPriority;
addonRecording.iLifetime = xbmcRecording.m_iLifetime;
addonRecording.iPlayCount = xbmcRecording.m_playCount;
addonRecording.iLastPlayedPosition = (int)xbmcRecording.m_resumePoint.timeInSeconds;
addonRecording.bIsDeleted = xbmcRecording.IsDeleted();
strncpy(addonRecording.strDirectory, xbmcRecording.m_strDirectory.c_str(), sizeof(addonRecording.strDirectory) - 1);
strncpy(addonRecording.strStreamURL, xbmcRecording.m_strStreamURL.c_str(), sizeof(addonRecording.strStreamURL) - 1);
strncpy(addonRecording.strIconPath, xbmcRecording.m_strIconPath.c_str(), sizeof(addonRecording.strIconPath) - 1);
strncpy(addonRecording.strThumbnailPath, xbmcRecording.m_strThumbnailPath.c_str(), sizeof(addonRecording.strThumbnailPath) - 1);
strncpy(addonRecording.strFanartPath, xbmcRecording.m_strFanartPath.c_str(), sizeof(addonRecording.strFanartPath) - 1);
}
示例2: UndeleteRecording
PVR_ERROR CPVRClients::UndeleteRecording(const CPVRRecording &recording)
{
PVR_ERROR error(PVR_ERROR_UNKNOWN);
if (!recording.IsDeleted())
return error;
PVR_CLIENT client;
if (GetConnectedClient(recording.m_iClientId, client))
error = client->UndeleteRecording(recording);
if (error != PVR_ERROR_NO_ERROR)
CLog::Log(LOGERROR, "PVR - %s - cannot undelete recording from client '%d': %s",__FUNCTION__, recording.m_iClientId, CPVRClient::ToString(error));
return error;
}