mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-25 02:05:43 +08:00
Doxygen
This commit is contained in:
committed by
Mat Sutcliffe
parent
2c89275ea6
commit
11ee2413b5
@@ -22,14 +22,18 @@ namespace BlackCore
|
||||
class BLACKCORE_EXPORT ClientResponse : public MessageBase
|
||||
{
|
||||
public:
|
||||
//! Constructor
|
||||
ClientResponse(const QString &sender, const QString &receiver, ClientQueryType queryType, const QStringList &responseData);
|
||||
|
||||
virtual ~ClientResponse() {}
|
||||
|
||||
bool isUnknownQuery() const { return m_queryType == ClientQueryType::Unknown; }
|
||||
|
||||
//! Message converted to tokens
|
||||
QStringList toTokens() const;
|
||||
|
||||
//! Construct from tokens
|
||||
static ClientResponse fromTokens(const QStringList &tokens);
|
||||
|
||||
//! PDU identifier
|
||||
static QString pdu() { return "$CR"; }
|
||||
|
||||
ClientQueryType m_queryType;
|
||||
@@ -39,6 +43,7 @@ namespace BlackCore
|
||||
ClientResponse();
|
||||
};
|
||||
|
||||
//! Equal to operator
|
||||
inline bool operator==(const ClientResponse &lhs, const ClientResponse &rhs)
|
||||
{
|
||||
return lhs.sender() == rhs.sender() &&
|
||||
@@ -47,6 +52,7 @@ namespace BlackCore
|
||||
lhs.m_responseData == rhs.m_responseData;
|
||||
}
|
||||
|
||||
//! Not equal to operator
|
||||
inline bool operator!=(const ClientResponse &lhs, const ClientResponse &rhs)
|
||||
{
|
||||
return !(lhs == rhs);
|
||||
|
||||
Reference in New Issue
Block a user