refs #179 sendCustomPacket slot and customPacketReceived signal

This commit is contained in:
Mathew Sutcliffe
2014-03-22 17:52:42 +00:00
parent fde307e661
commit da5a42c556
3 changed files with 69 additions and 0 deletions

View File

@@ -198,6 +198,12 @@ namespace BlackCore
*/
virtual void sendTextMessages(const BlackMisc::Network::CTextMessageList &messages) = 0;
/*!
* Send a custom packet.
* \pre Network must be connected when calling this function.
*/
virtual void sendCustomPacket(const BlackMisc::Aviation::CCallsign &callsign, const QString &packetId, const QStringList &data) = 0;
//! @}
////////////////////////////////////////////////////////////////
//! \name ATC slots
@@ -339,6 +345,11 @@ namespace BlackCore
*/
void atisLogoffTimeReplyReceived(const BlackMisc::Aviation::CCallsign &callsign, const QString &zuluTime);
/*!
* We received a custom packet. It is the slot's responsibility to decode the data.
*/
void customPacketReceived(const BlackMisc::Aviation::CCallsign &callsign, const QString &packetId, const QStringList &data);
//! @}
////////////////////////////////////////////////////////////////
//! \name Aircraft signals