mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-30 22:29:13 +08:00
Ref T490, "ps_read" replacement
This commit is contained in:
committed by
Mat Sutcliffe
parent
788f827110
commit
003ad0f0de
@@ -47,7 +47,7 @@ namespace BlackCore
|
||||
|
||||
void CVatsimStatusFileReader::readInBackgroundThread()
|
||||
{
|
||||
const bool s = QMetaObject::invokeMethod(this, &CVatsimStatusFileReader::ps_read);
|
||||
const bool s = QMetaObject::invokeMethod(this, &CVatsimStatusFileReader::read);
|
||||
Q_ASSERT_X(s, Q_FUNC_INFO, "Invoke failed");
|
||||
Q_UNUSED(s);
|
||||
}
|
||||
@@ -62,7 +62,7 @@ namespace BlackCore
|
||||
return m_lastGoodSetup.get().getDataFileUrls();
|
||||
}
|
||||
|
||||
void CVatsimStatusFileReader::ps_read()
|
||||
void CVatsimStatusFileReader::read()
|
||||
{
|
||||
this->threadAssertCheck();
|
||||
if (!this->doWorkCheck()) { return; }
|
||||
|
||||
@@ -45,7 +45,6 @@ namespace BlackCore
|
||||
//! \threadsafe
|
||||
BlackMisc::Network::CUrlList getDataFileUrls() const;
|
||||
|
||||
public slots:
|
||||
//! Start reading in own thread
|
||||
void readInBackgroundThread();
|
||||
|
||||
@@ -56,11 +55,10 @@ namespace BlackCore
|
||||
//! Data have been read
|
||||
void dataRead(BlackMisc::Network::CEntityFlags::Entity entity, BlackMisc::Network::CEntityFlags::ReadState state, int number);
|
||||
|
||||
private slots:
|
||||
//! Read / re-read data file
|
||||
void ps_read();
|
||||
|
||||
private:
|
||||
//! Read / re-read data file
|
||||
void read();
|
||||
|
||||
//! Data have been read, parse VATSIM file
|
||||
void parseVatsimFile(QNetworkReply *nwReply);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user