swift
Public Member Functions | Static Public Member Functions | List of all members
swift::core::fsd::ClientQuery Class Reference

This packet is used to query a client’s data. More...

Inheritance diagram for swift::core::fsd::ClientQuery:
[legend]

Public Member Functions

 ClientQuery (const QString &sender, const QString &clientToBeQueried, ClientQueryType queryType, const QStringList &queryData={})
 Constructor.
 
QStringList toTokens () const
 Message converted to tokens.
 
- Public Member Functions inherited from swift::core::fsd::MessageBase
 MessageBase ()
 Default Constructor.
 
 MessageBase (const QString &sender)
 Constructor.
 
 MessageBase (const QString &sender, const QString &receiver)
 Constructor.
 
void setCallsign (const QString &sender)
 Set callsign.
 
QString sender () const
 get message sender
 
void setReceiver (const QString &receiver)
 Set message receiver.
 
QString receiver () const
 Get message receiver.
 
bool isValid () const
 Is message valid?
 
void setValid (bool isValid)
 set message valid
 

Static Public Member Functions

static ClientQuery fromTokens (const QStringList &tokens)
 Construct from tokens.
 
static QString pdu ()
 PDU identifier.
 

Public Attributes

ClientQueryType m_queryType = ClientQueryType::Unknown
 Properties.
 
QStringList m_queryData
 Properties.
 

Additional Inherited Members

- Protected Attributes inherited from swift::core::fsd::MessageBase
QString m_sender
 message sender
 
QString m_receiver
 message receiver
 
bool m_isValid = true
 is valid?
 

Detailed Description

This packet is used to query a client’s data.

Current uses include requests for flight-plans, INF responses, realname details, current server and current frequency. All requests are sent directly to the client to be queried, currently, except the flight-plan request which is sent to the server. Therefore, the only client which will return an error is SERVER. Other clients will simply not reply if the code is unrecognised or request invalid.

Definition at line 20 of file clientquery.h.


The documentation for this class was generated from the following files: