diff --git a/APIdoc/html/CSV_8h_source.html b/APIdoc/html/CSV_8h_source.html index 04218dd90..e0c0c90c0 100644 --- a/APIdoc/html/CSV_8h_source.html +++ b/APIdoc/html/CSV_8h_source.html @@ -85,45 +85,47 @@
22
23#include "DataFileAbstract.h"
24
-
25
-
26namespace FileFormats
-
27{
-
28
-
-
34 class CSV : public DataFileAbstract
-
35 {
-
36
-
37 public:
-
44 CSV(const QString& fileName);
-
45
-
46
+
25using namespace Qt::Literals::StringLiterals;
+
26
+
27
+
28namespace FileFormats
+
29{
+
30
+
+
36 class CSV : public DataFileAbstract
+
37 {
+
38
+
39 public:
+
46 CSV(const QString& fileName);
47
-
48 //
-
49 // Getter Methods
+
48
+
49
50 //
-
51
-
56 [[nodiscard]] QVector<QStringList> lines() const { return m_lines; }
-
57
-
58
-
59 //
-
60 // Static methods
+
51 // Getter Methods
+
52 //
+
53
+
58 [[nodiscard]] QVector<QStringList> lines() const { return m_lines; }
+
59
+
60
61 //
-
62
-
67 [[nodiscard]] static QStringList mimeTypes() { return {u"text/csv"_qs, u"text/plain"_qs}; }
-
68
-
69 private:
-
70 // Private helper functions
-
71 static QStringList parseCSV(const QString& string);
-
72
-
73 QVector<QStringList> m_lines;
-
74 };
+
62 // Static methods
+
63 //
+
64
+
69 [[nodiscard]] static QStringList mimeTypes() { return {u"text/csv"_s, u"text/plain"_s}; }
+
70
+
71 private:
+
72 // Private helper functions
+
73 static QStringList parseCSV(const QString& string);
+
74
+
75 QVector<QStringList> m_lines;
+
76 };
-
75
-
76} // namespace FileFormats
-
CSV file support class.
Definition CSV.h:35
+
77
+
78} // namespace FileFormats
+
CSV file support class.
Definition CSV.h:37
CSV(const QString &fileName)
Constructor.
-
QVector< QStringList > lines() const
Waypoints specified in the CUP file.
Definition CSV.h:56
-
static QStringList mimeTypes()
Mime type for files that can be opened by this class.
Definition CSV.h:67
+
QVector< QStringList > lines() const
Waypoints specified in the CUP file.
Definition CSV.h:58
+
static QStringList mimeTypes()
Mime type for files that can be opened by this class.
Definition CSV.h:69
Base class for file reading classes.
diff --git a/APIdoc/html/CUP_8h_source.html b/APIdoc/html/CUP_8h_source.html index 9776e9375..facbbd11e 100644 --- a/APIdoc/html/CUP_8h_source.html +++ b/APIdoc/html/CUP_8h_source.html @@ -124,7 +124,7 @@
80
81 } // namespace FileFormats
-
FileFormats::CSV::mimeTypes
static QStringList mimeTypes()
Mime type for files that can be opened by this class.
Definition CSV.h:67
+
FileFormats::CSV::mimeTypes
static QStringList mimeTypes()
Mime type for files that can be opened by this class.
Definition CSV.h:69
FileFormats::CUP
CUP file support class.
Definition CUP.h:38
FileFormats::CUP::mimeTypes
static QStringList mimeTypes()
Mime type for files that can be opened by this class.
Definition CUP.h:70
FileFormats::CUP::CUP
CUP(const QString &fileName)
Constructor.
diff --git a/APIdoc/html/ConnectionInfo_8h_source.html b/APIdoc/html/ConnectionInfo_8h_source.html index e660c2703..9d20377aa 100644 --- a/APIdoc/html/ConnectionInfo_8h_source.html +++ b/APIdoc/html/ConnectionInfo_8h_source.html @@ -90,150 +90,152 @@
27#include <QSerialPortInfo>
28#endif
29
-
30
-
31namespace Traffic {
+
30using namespace Qt::Literals::StringLiterals;
+
31
32
-
-
39class ConnectionInfo {
-
40 Q_GADGET
-
41 QML_VALUE_TYPE(connectionInfo)
-
42
-
43 friend QDataStream& operator<<(QDataStream& stream, const Traffic::ConnectionInfo &connectionInfo);
-
44 friend QDataStream& operator>>(QDataStream& stream, Traffic::ConnectionInfo& connectionInfo);
-
45
-
46public:
-
-
48 enum Type {
- - - - - - - -
56 };
+
33namespace Traffic {
+
34
+
+ +
42 Q_GADGET
+
43 QML_VALUE_TYPE(connectionInfo)
+
44
+
45 friend QDataStream& operator<<(QDataStream& stream, const Traffic::ConnectionInfo &connectionInfo);
+
46 friend QDataStream& operator>>(QDataStream& stream, Traffic::ConnectionInfo& connectionInfo);
+
47
+
48public:
+ -
57 Q_ENUM(Type)
-
58
-
59
-
64 ConnectionInfo() = default;
-
65
-
76 explicit ConnectionInfo(const QBluetoothDeviceInfo& info, bool canonical=false);
-
77
-
78#if __has_include (<QSerialPortInfo>)
-
88 explicit ConnectionInfo(const QSerialPortInfo& info, bool canonical=false);
-
89#endif
-
90
-
100 explicit ConnectionInfo(quint16 port, bool canonical=false);
-
101
-
113 explicit ConnectionInfo(const QString& host, quint16 port, bool canonical=false);
-
114
-
115
+
59 Q_ENUM(Type)
+
60
+
61
+
66 ConnectionInfo() = default;
+
67
+
78 explicit ConnectionInfo(const QBluetoothDeviceInfo& info, bool canonical=false);
+
79
+
80#if __has_include (<QSerialPortInfo>)
+
90 explicit ConnectionInfo(const QSerialPortInfo& info, bool canonical=false);
+
91#endif
+
92
+
102 explicit ConnectionInfo(quint16 port, bool canonical=false);
+
103
+
115 explicit ConnectionInfo(const QString& host, quint16 port, bool canonical=false);
116
-
117 //
-
118 // Properties
+
117
+
118
119 //
-
120
-
129 Q_PROPERTY(bool canConnect READ canConnect CONSTANT)
-
130
-
131
-
138 Q_PROPERTY(bool canonical READ canonical CONSTANT)
-
139
-
146 Q_PROPERTY(QString description READ description CONSTANT)
-
147
-
154 Q_PROPERTY(QString icon READ icon CONSTANT)
-
155
-
161 Q_PROPERTY(QString name READ name CONSTANT)
-
162
-
168 Q_PROPERTY(Traffic::ConnectionInfo::Type type READ type CONSTANT)
-
169
-
170
+
120 // Properties
+
121 //
+
122
+
131 Q_PROPERTY(bool canConnect READ canConnect CONSTANT)
+
132
+
133
+
140 Q_PROPERTY(bool canonical READ canonical CONSTANT)
+
141
+
148 Q_PROPERTY(QString description READ description CONSTANT)
+
149
+
156 Q_PROPERTY(QString icon READ icon CONSTANT)
+
157
+
163 Q_PROPERTY(QString name READ name CONSTANT)
+
164
+
170 Q_PROPERTY(Traffic::ConnectionInfo::Type type READ type CONSTANT)
171
-
172 //
-
173 // Getter Methods
+
172
+
173
174 //
-
175
-
181 [[nodiscard]] bool canConnect() const { return m_canConnect; }
-
182
-
188 [[nodiscard]] bool canonical() const { return m_canonical; }
-
189
-
195 [[nodiscard]] QString description() const { return m_description; }
-
196
-
202 [[nodiscard]] QString name() const { return m_name; }
-
203
-
209 [[nodiscard]] QString icon() const { return m_icon; }
-
210
-
216 [[nodiscard]] Traffic::ConnectionInfo::Type type() const { return m_type; }
-
217
-
218
+
175 // Getter Methods
+
176 //
+
177
+
183 [[nodiscard]] bool canConnect() const { return m_canConnect; }
+
184
+
190 [[nodiscard]] bool canonical() const { return m_canonical; }
+
191
+
197 [[nodiscard]] QString description() const { return m_description; }
+
198
+
204 [[nodiscard]] QString name() const { return m_name; }
+
205
+
211 [[nodiscard]] QString icon() const { return m_icon; }
+
212
+
218 [[nodiscard]] Traffic::ConnectionInfo::Type type() const { return m_type; }
219
-
220 //
-
221 // Methods
+
220
+
221
222 //
-
223
-
232 [[nodiscard]] QBluetoothDeviceInfo bluetoothDeviceInfo() const { return m_bluetoothDeviceInfo; }
-
233
-
241 [[nodiscard]] bool operator== (const Traffic::ConnectionInfo& other) const = default;
-
242
-
249 [[nodiscard]] quint16 port() const { return m_port; }
-
250
-
264 [[nodiscard]] bool sameConnectionAs(const Traffic::ConnectionInfo& other) const;
-
265
-
276 bool operator< (const Traffic::ConnectionInfo& other) const;
-
277
-
278private:
-
279 //
-
280 // Properties
+
223 // Methods
+
224 //
+
225
+
234 [[nodiscard]] QBluetoothDeviceInfo bluetoothDeviceInfo() const { return m_bluetoothDeviceInfo; }
+
235
+
243 [[nodiscard]] bool operator== (const Traffic::ConnectionInfo& other) const = default;
+
244
+
251 [[nodiscard]] quint16 port() const { return m_port; }
+
252
+
266 [[nodiscard]] bool sameConnectionAs(const Traffic::ConnectionInfo& other) const;
+
267
+
278 bool operator< (const Traffic::ConnectionInfo& other) const;
+
279
+
280private:
281 //
-
282 bool m_canConnect { false };
-
283 bool m_canonical { false };
-
284 QString m_description;
-
285 QString m_icon{u"/icons/material/ic_delete.svg"_qs};
-
286 QString m_name { QObject::tr("Invalid Device", "Traffic::ConnectionInfo") };
- -
288
-
289 //
-
290 // Private members, depending on m_type
+
282 // Properties
+
283 //
+
284 bool m_canConnect { false };
+
285 bool m_canonical { false };
+
286 QString m_description;
+
287 QString m_icon{u"/icons/material/ic_delete.svg"_s};
+
288 QString m_name { QObject::tr("Invalid Device", "Traffic::ConnectionInfo") };
+ +
290
291 //
-
292 QBluetoothDeviceInfo m_bluetoothDeviceInfo;
-
293 quint16 m_port{0};
-
294 QString m_host;
-
295};
+
292 // Private members, depending on m_type
+
293 //
+
294 QBluetoothDeviceInfo m_bluetoothDeviceInfo;
+
295 quint16 m_port{0};
+
296 QString m_host;
+
297};
-
296
-
302QDataStream& operator<<(QDataStream& stream, const Traffic::ConnectionInfo &connectionInfo);
-
303
-
309QDataStream& operator>>(QDataStream& stream, Traffic::ConnectionInfo& connectionInfo);
-
310
-
311} // namespace Traffic
-
Connection to a traffic data receiver.
- - - - - - - - +
298
+
304QDataStream& operator<<(QDataStream& stream, const Traffic::ConnectionInfo &connectionInfo);
+
305
+
311QDataStream& operator>>(QDataStream& stream, Traffic::ConnectionInfo& connectionInfo);
+
312
+
313} // namespace Traffic
+
Connection to a traffic data receiver.
+ + + + + + + +
bool operator==(const Traffic::ConnectionInfo &other) const =default
Equality of ConnectionInfos.
-
Traffic::ConnectionInfo::Type type() const
Getter function for the property with the same name.
-
Traffic::ConnectionInfo::Type type
Type.
-
quint16 port() const
Port.
-
bool canonical() const
Getter function for the property with the same name.
-
QString name() const
Getter function for the property with the same name.
-
bool canonical
Canonicity.
+
Traffic::ConnectionInfo::Type type() const
Getter function for the property with the same name.
+
Traffic::ConnectionInfo::Type type
Type.
+
quint16 port() const
Port.
+
bool canonical() const
Getter function for the property with the same name.
+
QString name() const
Getter function for the property with the same name.
+
bool canonical
Canonicity.
ConnectionInfo()=default
Default constructor.
-
QString description() const
Getter function for the property with the same name.
+
QString description() const
Getter function for the property with the same name.
bool sameConnectionAs(const Traffic::ConnectionInfo &other) const
Equality of connection.
-
QString name
Description.
-
QString icon() const
Getter function for the property with the same name.
-
QBluetoothDeviceInfo bluetoothDeviceInfo() const
Bluetooth Device Info.
-
bool canConnect
Connectability.
+
QString name
Description.
+
QString icon() const
Getter function for the property with the same name.
+
QBluetoothDeviceInfo bluetoothDeviceInfo() const
Bluetooth Device Info.
+
bool canConnect
Connectability.
ConnectionInfo(quint16 port, bool canonical=false)
Constructor for UDP Connections.
bool operator<(const Traffic::ConnectionInfo &other) const
Comparison.
ConnectionInfo(const QString &host, quint16 port, bool canonical=false)
Constructor for TCP Connections.
-
QString description
Description.
-
QString icon
Description.
+
QString description
Description.
+
QString icon
Description.