refs #93, update network data such as ATIS or pilot frequencies from time to time,

as these data are not actively pushed from network when changing
* timer in network context
* update methods, one specific method for ATIS as this can also be manually re-read(from GUI)
This commit is contained in:
Klaus Basan
2014-02-07 21:30:04 +01:00
parent 2cbddeb5ee
commit 1a72b4b691
5 changed files with 64 additions and 2 deletions

View File

@@ -159,6 +159,12 @@ namespace BlackCore
//! \copydoc IContextNetwork::getUsersForCallsigns
virtual BlackMisc::Network::CUserList getUsersForCallsigns(const BlackMisc::Aviation::CCallsignList &callsigns) const;
//! \copydoc IContextNetwork::requestDataUpdates
virtual void requestDataUpdates();
//! \copydoc IContextNetwork::requestAtisUpdates
virtual void requestAtisUpdates();
private:
BlackMisc::Aviation::CAtcStationList m_atcStationsOnline;
BlackMisc::Aviation::CAtcStationList m_atcStationsBooked;
@@ -169,7 +175,8 @@ namespace BlackCore
// for reading XML
QNetworkAccessManager *m_networkManager;
QTimer *m_atcBookingTimer;
QTimer *m_atcBookingTimer; //!< ATC stations bookings
QTimer *m_dataUpdateTimer; //!< general updates such as ATIS, frequencies, see requestDataUpdates()
QDateTime m_atcBookingsUpdateTimestamp;
/*!
@@ -291,6 +298,7 @@ namespace BlackCore
* \todo encapsulate reading from WWW in some class
*/
void psAtcBookingsRead(QNetworkReply *nwReply);
};
}