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:
Klaus Basan
2014-02-21 18:27:07 +01:00
parent d0aef2fee1
commit 4ab59f77a5
2 changed files with 3 additions and 4 deletions

View File

@@ -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)
{ {

View File

@@ -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 */