本文整理汇总了C++中RecordingInfo::GetLastModifiedTime方法的典型用法代码示例。如果您正苦于以下问题:C++ RecordingInfo::GetLastModifiedTime方法的具体用法?C++ RecordingInfo::GetLastModifiedTime怎么用?C++ RecordingInfo::GetLastModifiedTime使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RecordingInfo
的用法示例。
在下文中一共展示了RecordingInfo::GetLastModifiedTime方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: FillProgramInfo
void FillProgramInfo( DTC::Program *pProgram,
ProgramInfo *pInfo,
bool bIncChannel /* = true */,
bool bDetails /* = true */,
bool bIncCast /* = true */)
{
if ((pProgram == NULL) || (pInfo == NULL))
return;
pProgram->setStartTime ( pInfo->GetScheduledStartTime());
pProgram->setEndTime ( pInfo->GetScheduledEndTime ());
pProgram->setTitle ( pInfo->GetTitle() );
pProgram->setSubTitle ( pInfo->GetSubtitle() );
pProgram->setCategory ( pInfo->GetCategory() );
pProgram->setCatType ( pInfo->GetCategoryTypeString());
pProgram->setRepeat ( pInfo->IsRepeat() );
pProgram->setVideoProps( pInfo->GetVideoProperties() );
pProgram->setAudioProps( pInfo->GetAudioProperties() );
pProgram->setSubProps ( pInfo->GetSubtitleType() );
pProgram->setSerializeDetails( bDetails );
if (bDetails)
{
pProgram->setSeriesId ( pInfo->GetSeriesID() );
pProgram->setProgramId ( pInfo->GetProgramID() );
pProgram->setStars ( pInfo->GetStars() );
pProgram->setLastModified( pInfo->GetLastModifiedTime() );
pProgram->setProgramFlags( pInfo->GetProgramFlags() );
// ----
// DEPRECATED - See RecordingInfo instead
pProgram->setFileName ( pInfo->GetPathname() );
pProgram->setFileSize ( pInfo->GetFilesize() );
pProgram->setHostName ( pInfo->GetHostname() );
// ----
if (pInfo->GetOriginalAirDate().isValid())
pProgram->setAirdate( pInfo->GetOriginalAirDate() );
else if (pInfo->GetYearOfInitialRelease() > 0)
{
QDate year;
year.setDate(pInfo->GetYearOfInitialRelease(), 1, 1);
pProgram->setAirdate( year );
}
pProgram->setDescription( pInfo->GetDescription() );
pProgram->setInetref ( pInfo->GetInetRef() );
pProgram->setSeason ( pInfo->GetSeason() );
pProgram->setEpisode ( pInfo->GetEpisode() );
pProgram->setTotalEpisodes( pInfo->GetEpisodeTotal() );
}
pProgram->setSerializeCast(bIncCast);
if (bIncCast)
{
FillCastMemberList( pProgram->Cast(), pInfo );
}
pProgram->setSerializeChannel( bIncChannel );
if ( bIncChannel )
{
// Build Channel Child Element
if (!FillChannelInfo( pProgram->Channel(), pInfo->GetChanID(), bDetails ))
{
// The channel associated with a given recording may no longer exist
// however the ChanID is one half of the unique identifier for the
// recording and therefore MUST be included in the return data
pProgram->Channel()->setChanId(pInfo->GetChanID());
}
}
// Build Recording Child Element
if ( pInfo->GetRecordingStatus() != RecStatus::Unknown )
{
pProgram->setSerializeRecording( true );
DTC::RecordingInfo *pRecording = pProgram->Recording();
const RecordingInfo pRecInfo(*pInfo);
pRecording->setRecordedId ( pRecInfo.GetRecordingID() );
pRecording->setStatus ( pRecInfo.GetRecordingStatus() );
pRecording->setPriority( pRecInfo.GetRecordingPriority() );
pRecording->setStartTs ( pRecInfo.GetRecordingStartTime() );
pRecording->setEndTs ( pRecInfo.GetRecordingEndTime() );
pRecording->setSerializeDetails( bDetails );
if (bDetails)
{
pRecording->setFileName ( pRecInfo.GetPathname() );
pRecording->setFileSize ( pRecInfo.GetFilesize() );
pRecording->setHostName ( pRecInfo.GetHostname() );
pRecording->setLastModified( pRecInfo.GetLastModifiedTime() );
pRecording->setRecordId ( pRecInfo.GetRecordingRuleID() );
pRecording->setRecGroup ( pRecInfo.GetRecordingGroup() );
//.........这里部分代码省略.........