KItinerary

uic9183header.h
1 /*
2  SPDX-FileCopyrightText: 2021 Volker Krause <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "kitinerary_export.h"
10 #include "uic9183utils.h"
11 
12 #include <QByteArray>
13 #include <qobjectdefs.h>
14 
15 namespace KItinerary {
16 
17 /** Header of an UIC 918.3 ticket. */
18 class KITINERARY_EXPORT Uic9183Header
19 {
20  Q_GADGET
21  UIC_STR_PROPERTY(messageType, 0, 3)
22  UIC_NUM_PROPERTY(version, 3, 2)
23  UIC_NUM_PROPERTY(signerCompanyCodeNumeric, 5, 4)
24  UIC_STR_PROPERTY(signerCompanyCode, 5, 4)
25  UIC_STR_PROPERTY(signatureKeyId, 9, 5)
26  Q_PROPERTY(int signatureSize READ signatureSize)
27  Q_PROPERTY(int compressedMessageSize READ compressedMessageSize)
28 public:
29  Uic9183Header();
30  Uic9183Header(const QByteArray &data);
31 
32  bool isValid() const;
33  int signatureSize() const;
34  int compressedMessageSize() const;
35  int compressedMessageOffset() const;
36 private:
37  QByteArray m_data;
38 };
39 
40 }
41 
Header of an UIC 918.3 ticket.
Definition: uic9183header.h:18
Classes for reservation/travel data models, data extraction and data augmentation.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Jan 17 2022 23:06:18 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.