mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
refs #132 , based on RW's comment renamed method to loadFinished ( as in http://qt-project.org/doc/qt-4.8/qwebview.html )
This commit is contained in:
@@ -15,7 +15,7 @@ namespace BlackCore
|
||||
{
|
||||
this->m_networkManager = new QNetworkAccessManager(this);
|
||||
this->m_updateTimer = new QTimer(this);
|
||||
this->connect(this->m_networkManager, &QNetworkAccessManager::finished, this, &CVatsimBookingReader::readFinished);
|
||||
this->connect(this->m_networkManager, &QNetworkAccessManager::finished, this, &CVatsimBookingReader::loadFinished);
|
||||
this->connect(this->m_updateTimer, &QTimer::timeout, this, &CVatsimBookingReader::read);
|
||||
}
|
||||
|
||||
@@ -39,9 +39,8 @@ namespace BlackCore
|
||||
|
||||
/*
|
||||
* Bookings read from XML
|
||||
* TODO: encapsulate reading from WWW in some class
|
||||
*/
|
||||
void CVatsimBookingReader::readFinished(QNetworkReply *nwReply)
|
||||
void CVatsimBookingReader::loadFinished(QNetworkReply *nwReply)
|
||||
{
|
||||
if (nwReply->error() == QNetworkReply::NoError)
|
||||
{
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace BlackCore
|
||||
|
||||
private slots:
|
||||
//! \brief Bookings have been read
|
||||
void readFinished(QNetworkReply *nwReply);
|
||||
void loadFinished(QNetworkReply *nwReply);
|
||||
|
||||
private:
|
||||
QString m_serviceUrl; /*!< URL of the service */
|
||||
|
||||
Reference in New Issue
Block a user