本文整理汇总了C++中CEpgDatabase::GetLastEpgScanTime方法的典型用法代码示例。如果您正苦于以下问题:C++ CEpgDatabase::GetLastEpgScanTime方法的具体用法?C++ CEpgDatabase::GetLastEpgScanTime怎么用?C++ CEpgDatabase::GetLastEpgScanTime使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CEpgDatabase
的用法示例。
在下文中一共展示了CEpgDatabase::GetLastEpgScanTime方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetLastScanTime
CDateTime CEpg::GetLastScanTime(void)
{
CDateTime lastScanTime;
{
CSingleLock lock(m_critSection);
if (!m_lastScanTime.IsValid())
{
if (!CSettings::GetInstance().GetBool(CSettings::SETTING_EPG_IGNOREDBFORCLIENT))
{
CEpgDatabase *database = g_EpgContainer.GetDatabase();
CDateTime dtReturn; dtReturn.SetValid(false);
if (database && database->IsOpen())
database->GetLastEpgScanTime(m_iEpgID, &m_lastScanTime);
}
if (!m_lastScanTime.IsValid())
{
m_lastScanTime.SetDateTime(1970, 1, 1, 0, 0, 0);
assert(m_lastScanTime.IsValid());
}
}
lastScanTime = m_lastScanTime;
}
return m_lastScanTime;
}
示例2: GetLastScanTime
CDateTime CEpg::GetLastScanTime(void)
{
CDateTime lastScanTime;
{
CSingleLock lock(m_critSection);
if (!m_lastScanTime.IsValid())
{
if (!CSettings::Get().GetBool("epg.ignoredbforclient"))
{
CEpgDatabase *database = g_EpgContainer.GetDatabase();
CDateTime dtReturn; dtReturn.SetValid(false);
if (database && database->IsOpen())
database->GetLastEpgScanTime(m_iEpgID, &m_lastScanTime);
}
if (!m_lastScanTime.IsValid())
{
m_lastScanTime.SetDateTime(0, 0, 0, 0, 0, 0);
m_lastScanTime.SetValid(true);
}
}
lastScanTime = m_lastScanTime;
}
return m_lastScanTime;
}