swift
fsdidentification.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_FSDIDENTIFICATION_H
7 #define SWIFT_CORE_FSD_FSDIDENTIFICATION_H
8 
9 #include "core/fsd/messagebase.h"
10 
11 namespace swift::core::fsd
12 {
15  {
16  public:
18  FSDIdentification(const QString &callsign, const QString &receiver, const QString &serverVersion,
19  const QString &initialChallenge);
20 
22  QStringList toTokens() const;
23 
25  static FSDIdentification fromTokens(const QStringList &tokens);
26 
28  static QString pdu() { return "$DI"; }
29 
32  QString m_serverVersion;
35 
36  private:
38  };
39 } // namespace swift::core::fsd
40 
41 #endif // SWIFT_CORE_FSD_FSDIDENTIFICATION_H
This packet is sent by the server immediately after a new client connection is made.
static QString pdu()
PDU identifier.
FSD message base class.
Definition: messagebase.h:58
#define SWIFT_CORE_EXPORT
Export a class or function from the library.