mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
Ref T125, renaming areAllDataRead => areAllInfoObjectsRead
This commit is contained in:
committed by
Mathew Sutcliffe
parent
53189eafd5
commit
12db652ccf
@@ -44,7 +44,7 @@ namespace BlackCore
|
|||||||
return m_infoObjects.size();
|
return m_infoObjects.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CInfoDataReader::areAllDataRead() const
|
bool CInfoDataReader::areAllInfoObjectsRead() const
|
||||||
{
|
{
|
||||||
return getInfoObjectCount() > 4;
|
return getInfoObjectCount() > 4;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ namespace BlackCore
|
|||||||
|
|
||||||
//! All data read?
|
//! All data read?
|
||||||
//! \threadsafe
|
//! \threadsafe
|
||||||
bool areAllDataRead() const;
|
bool areAllInfoObjectsRead() const;
|
||||||
|
|
||||||
//! Allow to call directly, special for info objects reader
|
//! Allow to call directly, special for info objects reader
|
||||||
void read();
|
void read();
|
||||||
|
|||||||
@@ -1124,7 +1124,7 @@ namespace BlackCore
|
|||||||
{
|
{
|
||||||
// with info objects wait until info objects are loaded
|
// with info objects wait until info objects are loaded
|
||||||
Q_ASSERT_X(!entities.testFlag(CEntityFlags::DbInfoObjectEntity), Q_FUNC_INFO, "Info object must be read upfront, do not pass as entity here");
|
Q_ASSERT_X(!entities.testFlag(CEntityFlags::DbInfoObjectEntity), Q_FUNC_INFO, "Info object must be read upfront, do not pass as entity here");
|
||||||
const bool waitForDbInfoReader = m_dbInfoDataReader && !m_dbInfoDataReader->areAllDataRead() && !m_dbInfoDataReader->isMarkedAsFailed();
|
const bool waitForDbInfoReader = m_dbInfoDataReader && !m_dbInfoDataReader->areAllInfoObjectsRead() && !m_dbInfoDataReader->isMarkedAsFailed();
|
||||||
if (waitForDbInfoReader)
|
if (waitForDbInfoReader)
|
||||||
{
|
{
|
||||||
// do not read yet, will call this function again after some time
|
// do not read yet, will call this function again after some time
|
||||||
@@ -1182,7 +1182,7 @@ namespace BlackCore
|
|||||||
}
|
}
|
||||||
else if (reader->hasReceivedFirstReply())
|
else if (reader->hasReceivedFirstReply())
|
||||||
{
|
{
|
||||||
if (reader->areAllDataRead())
|
if (reader->areAllInfoObjectsRead())
|
||||||
{
|
{
|
||||||
// we have all data and carry on
|
// we have all data and carry on
|
||||||
CLogMessage(this).info("Info objects (%1) for '%2' loaded from '%3'") << info << CEntityFlags::flagToString(entities) << reader->getInfoObjectsUrl().toQString();
|
CLogMessage(this).info("Info objects (%1) for '%2' loaded from '%3'") << info << CEntityFlags::flagToString(entities) << reader->getInfoObjectsUrl().toQString();
|
||||||
|
|||||||
Reference in New Issue
Block a user