swift
Loading...
Searching...
No Matches
deletepilot.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) 2019 swift Project Community / Contributors
2// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
5
6#ifndef SWIFT_CORE_FSD_DELETEPILOT_H
7#define SWIFT_CORE_FSD_DELETEPILOT_H
8
10
11namespace swift::core::fsd
12{
16 {
17 public:
19 DeletePilot(const QString &sender, const QString &cid);
20
22 QStringList toTokens() const;
23
25 static DeletePilot fromTokens(const QStringList &tokens);
26
28 static QString pdu() { return QStringLiteral("#DP"); }
29
31
32 private:
34 DeletePilot() = default;
35 };
36
38 inline bool operator==(const DeletePilot &lhs, const DeletePilot &rhs)
39 {
40 return lhs.getSender() == rhs.getSender() && lhs.getReceiver() == rhs.getReceiver() && lhs.m_cid == rhs.m_cid;
41 }
42
44 inline bool operator!=(const DeletePilot &lhs, const DeletePilot &rhs) { return !(lhs == rhs); }
45} // namespace swift::core::fsd
46
47#endif // SWIFT_CORE_FSD_DELETEPILOT_H
bool operator!=(const AddAtc &lhs, const AddAtc &rhs)
Not equal operator.
Definition addatc.h:68
bool operator==(const AddAtc &lhs, const AddAtc &rhs)
Equal operator.
Definition addatc.h:60
Used to notify the server of the intention to close the connection. If a client receives this packet ...
Definition deletepilot.h:16
DeletePilot(const QString &sender, const QString &cid)
Constructor.
static QString pdu()
PDU identifier.
Definition deletepilot.h:28
QStringList toTokens() const
Message converted to tokens.
static DeletePilot fromTokens(const QStringList &tokens)
Construct from tokens.
MessageBase()=default
Default Constructor.
const QString & getReceiver() const
Get message receiver.
Definition messagebase.h:76
const QString & getSender() const
get message sender
Definition messagebase.h:70
#define SWIFT_CORE_EXPORT
Export a class or function from the library.