mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 18:55:38 +08:00
Doxygen
This commit is contained in:
committed by
Mat Sutcliffe
parent
2c89275ea6
commit
11ee2413b5
@@ -17,15 +17,20 @@ namespace BlackCore
|
||||
{
|
||||
namespace Fsd
|
||||
{
|
||||
//! FSD Message: auth challenge
|
||||
class BLACKCORE_EXPORT AuthChallenge : public MessageBase
|
||||
{
|
||||
public:
|
||||
//! Constructor
|
||||
AuthChallenge(const QString &sender, const QString &target, const QString &challengeKey);
|
||||
|
||||
virtual ~AuthChallenge() {}
|
||||
|
||||
//! Message converted to tokens
|
||||
QStringList toTokens() const;
|
||||
|
||||
//! Construct from tokens
|
||||
static AuthChallenge fromTokens(const QStringList &tokens);
|
||||
|
||||
//! PDU identifier
|
||||
static QString pdu() { return QStringLiteral("$ZC"); }
|
||||
|
||||
QString m_challengeKey;
|
||||
@@ -34,6 +39,7 @@ namespace BlackCore
|
||||
AuthChallenge();
|
||||
};
|
||||
|
||||
//! Equal to operator
|
||||
inline bool operator==(const AuthChallenge &lhs, const AuthChallenge &rhs)
|
||||
{
|
||||
return lhs.sender() == rhs.sender() &&
|
||||
@@ -41,6 +47,7 @@ namespace BlackCore
|
||||
lhs.m_challengeKey == rhs.m_challengeKey;
|
||||
}
|
||||
|
||||
//! Not equal to operator
|
||||
inline bool operator!=(const AuthChallenge &lhs, const AuthChallenge &rhs)
|
||||
{
|
||||
return !(lhs == rhs);
|
||||
|
||||
Reference in New Issue
Block a user