mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 02:35:33 +08:00
Ref T490, "ps_read" replacement
This commit is contained in:
committed by
Mat Sutcliffe
parent
788f827110
commit
003ad0f0de
@@ -137,7 +137,7 @@ namespace BlackCore
|
||||
return sApp->getGlobalSetup().getDbInfoReaderUrl();
|
||||
}
|
||||
|
||||
void CInfoDataReader::read()
|
||||
void CInfoDataReader::readInfoData()
|
||||
{
|
||||
if (!this->doWorkCheck()) { return; }
|
||||
|
||||
@@ -206,17 +206,25 @@ namespace BlackCore
|
||||
CEntityFlags::EntityFlag CInfoDataReader::getEntityForMode() const
|
||||
{
|
||||
if (m_mode == CDbFlags::DbReading) return CEntityFlags::DbInfoObjectEntity;
|
||||
if (m_mode == CDbFlags::Shared) return CEntityFlags::SharedInfoObjectEntity;
|
||||
if (m_mode == CDbFlags::Shared) return CEntityFlags::SharedInfoObjectEntity;
|
||||
qFatal("Wrong mode");
|
||||
return CEntityFlags::NoEntity;
|
||||
}
|
||||
|
||||
void CInfoDataReader::read(CEntityFlags::Entity entities, CDbFlags::DataRetrievalModeFlag mode, const QDateTime &newerThan)
|
||||
{
|
||||
Q_UNUSED(entities);
|
||||
Q_UNUSED(mode);
|
||||
Q_UNUSED(newerThan);
|
||||
Q_ASSERT_X(false, Q_FUNC_INFO, "Not implemented for CInfoDataReader");
|
||||
}
|
||||
|
||||
CUrl CInfoDataReader::getInfoObjectsUrl() const
|
||||
{
|
||||
switch (m_mode)
|
||||
{
|
||||
case CDbFlags::DbReading: return getDbInfoObjectsUrl();
|
||||
case CDbFlags::Shared: return getSharedInfoObjectsUrl();
|
||||
case CDbFlags::Shared: return getSharedInfoObjectsUrl();
|
||||
default: qFatal("Wrong mode");
|
||||
}
|
||||
return CUrl();
|
||||
|
||||
Reference in New Issue
Block a user