mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 12:55:31 +08:00
Doxygen
This commit is contained in:
committed by
Klaus Basan
parent
84248fc1b0
commit
5fc173786d
@@ -21,20 +21,36 @@ namespace BlackCore
|
|||||||
{
|
{
|
||||||
namespace Fsd
|
namespace Fsd
|
||||||
{
|
{
|
||||||
|
//! Add ATC message
|
||||||
class BLACKCORE_EXPORT AddAtc : public MessageBase
|
class BLACKCORE_EXPORT AddAtc : public MessageBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
//! Constructor
|
||||||
AddAtc(const QString &callsign, const QString &realName, const QString &cid,
|
AddAtc(const QString &callsign, const QString &realName, const QString &cid,
|
||||||
const QString &password, AtcRating rating, int protocolRevision);
|
const QString &password, AtcRating rating, int protocolRevision);
|
||||||
|
|
||||||
|
//! Message converted to tokens
|
||||||
QStringList toTokens() const;
|
QStringList toTokens() const;
|
||||||
|
|
||||||
|
//! Construct from tokens
|
||||||
static AddAtc fromTokens(const QStringList &tokens);
|
static AddAtc fromTokens(const QStringList &tokens);
|
||||||
|
|
||||||
|
//! PDU identifier
|
||||||
static QString pdu() { return QStringLiteral("#AA"); }
|
static QString pdu() { return QStringLiteral("#AA"); }
|
||||||
|
|
||||||
|
//! Get user cid
|
||||||
QString cid() const { return m_cid; }
|
QString cid() const { return m_cid; }
|
||||||
|
|
||||||
|
//! Get user password
|
||||||
QString password() const { return m_password; }
|
QString password() const { return m_password; }
|
||||||
|
|
||||||
|
//! Get ATC rating
|
||||||
AtcRating rating() const { return m_rating; }
|
AtcRating rating() const { return m_rating; }
|
||||||
|
|
||||||
|
//! Get protocol version
|
||||||
int protocolRevision() const { return m_protocolRevision; }
|
int protocolRevision() const { return m_protocolRevision; }
|
||||||
|
|
||||||
|
//! Get real name
|
||||||
QString realName() const { return m_realName; }
|
QString realName() const { return m_realName; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@@ -47,6 +63,7 @@ namespace BlackCore
|
|||||||
QString m_realName;
|
QString m_realName;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//! Equal operator
|
||||||
inline bool operator==(const AddAtc &lhs, const AddAtc &rhs)
|
inline bool operator==(const AddAtc &lhs, const AddAtc &rhs)
|
||||||
{
|
{
|
||||||
return lhs.sender() == rhs.sender() &&
|
return lhs.sender() == rhs.sender() &&
|
||||||
@@ -58,6 +75,7 @@ namespace BlackCore
|
|||||||
lhs.realName() == rhs.realName();
|
lhs.realName() == rhs.realName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//! Not equal operator
|
||||||
inline bool operator!=(const AddAtc &lhs, const AddAtc &rhs)
|
inline bool operator!=(const AddAtc &lhs, const AddAtc &rhs)
|
||||||
{
|
{
|
||||||
return !(lhs == rhs);
|
return !(lhs == rhs);
|
||||||
|
|||||||
Reference in New Issue
Block a user