refs #375 finish sending of interim positions

Airspace monitor knows all remote aircrafts and which have interim
positions enabled. It passes the list of receivers to INetwork
and INetwork sends it to FSD.
This commit is contained in:
Roland Winklmeier
2015-04-12 15:30:30 +02:00
parent 78bc9e8769
commit c77c0e484f
6 changed files with 67 additions and 23 deletions

View File

@@ -22,6 +22,7 @@
#include "blackmisc/network/textmessagelist.h"
#include "blackmisc/aviation/informationmessage.h"
#include "blackmisc/aviation/flightplan.h"
#include "blackmisc/aviation/callsignset.h"
#include <QObject>
#include <QString>
#include <QMap>
@@ -198,12 +199,6 @@ namespace BlackCore
*/
virtual void terminateConnection() = 0;
//! Is interim position sending enabled?
virtual bool isFastPositionSendingEnabled() const = 0;
//! Enable interim position sending
virtual void enableFastPositionSending(bool enable) = 0;
/*!
* Send a ping message to a user with a specific callsign.
* \pre Network must be connected when calling this function.
@@ -346,6 +341,12 @@ namespace BlackCore
*/
virtual void sendUserInfoQuery(const BlackMisc::Aviation::CCallsign &callsign) = 0;
/*!
* Send interim position directly to a set of receivers.
* \pre Network must be connected when calling this function.
*/
virtual void sendInterimPosition(const BlackMisc::Aviation::CCallsignSet &receiver) = 0;
//! @}
////////////////////////////////////////////////////////////////
//! \name Weather slots