Some minor network context upfront fixes discovered:

* readAtcBookingsFromSource() const; to non const, it changes data in the context
* better adjusting of update time for bookings
* No updates if URL is empty, checked.
This commit is contained in:
Klaus Basan
2014-02-07 15:46:39 +01:00
parent c4b458c97c
commit 2cbddeb5ee
5 changed files with 10 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ namespace BlackCore
this->m_atcBookingTimer = new QTimer(this);
this->connect(this->m_networkManager, &QNetworkAccessManager::finished, this, &CContextNetwork::psAtcBookingsRead);
this->connect(this->m_atcBookingTimer, &QTimer::timeout, this, &CContextNetwork::readAtcBookingsFromSource);
this->m_atcBookingTimer->start(15 * 1000);
this->m_atcBookingTimer->start(10 * 1000); // will be reset in method to a longer time
// 4. connect signals and slots
this->connect(this->m_network, &INetwork::connectionStatusChanged, this, &CContextNetwork::psFsdConnectionStatusChanged);