mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-08 03:35:35 +08:00
Doxygen
This commit is contained in:
committed by
Mat Sutcliffe
parent
2c89275ea6
commit
11ee2413b5
@@ -27,11 +27,16 @@ namespace BlackCore
|
||||
class BLACKCORE_EXPORT ClientQuery : public MessageBase
|
||||
{
|
||||
public:
|
||||
//! Constructor
|
||||
ClientQuery(const QString &sender, const QString &clientToBeQueried, ClientQueryType queryType, const QStringList &queryData = {});
|
||||
virtual ~ClientQuery() {}
|
||||
|
||||
//! Message converted to tokens
|
||||
QStringList toTokens() const;
|
||||
|
||||
//! Construct from tokens
|
||||
static ClientQuery fromTokens(const QStringList &tokens);
|
||||
|
||||
//! PDU identifier
|
||||
static QString pdu() { return "$CQ"; }
|
||||
|
||||
ClientQueryType m_queryType = ClientQueryType::Unknown;
|
||||
@@ -41,6 +46,7 @@ namespace BlackCore
|
||||
ClientQuery();
|
||||
};
|
||||
|
||||
//! Equal to operator
|
||||
inline bool operator==(const ClientQuery &lhs, const ClientQuery &rhs)
|
||||
{
|
||||
return lhs.sender() == rhs.sender() &&
|
||||
@@ -49,6 +55,7 @@ namespace BlackCore
|
||||
lhs.m_queryData == rhs.m_queryData;
|
||||
}
|
||||
|
||||
//! Not equal to operator
|
||||
inline bool operator!=(const ClientQuery &lhs, const ClientQuery &rhs)
|
||||
{
|
||||
return !(lhs == rhs);
|
||||
|
||||
Reference in New Issue
Block a user