mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 18:55:38 +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_networkManager = new QNetworkAccessManager(this);
|
||||||
this->m_updateTimer = new QTimer(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);
|
this->connect(this->m_updateTimer, &QTimer::timeout, this, &CVatsimBookingReader::read);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -39,9 +39,8 @@ namespace BlackCore
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Bookings read from XML
|
* 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)
|
if (nwReply->error() == QNetworkReply::NoError)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ namespace BlackCore
|
|||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
//! \brief Bookings have been read
|
//! \brief Bookings have been read
|
||||||
void readFinished(QNetworkReply *nwReply);
|
void loadFinished(QNetworkReply *nwReply);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QString m_serviceUrl; /*!< URL of the service */
|
QString m_serviceUrl; /*!< URL of the service */
|
||||||
|
|||||||
Reference in New Issue
Block a user