KItinerary

ssbticketreader.h
1/*
2 SPDX-FileCopyrightText: 2021 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9class QByteArray;
10class QVariant;
11
12namespace KItinerary {
13
14/** Factory function for the various ERA SSB variants. */
15namespace SSBTicketReader
16{
17/** Returns whether @p data could be an ERA SSB ticket. */
18[[nodiscard]] bool maybeSSB(const QByteArray &data);
19
20/** Attempt to read an SSB ticket.
21 * The variant is auto-detected, unless @p versionOverride is specified.
22 */
23[[nodiscard]] QVariant read(const QByteArray &data, int versionOverride = 0);
24}
25
26}
27
QVariant read(const QByteArray &data, int versionOverride=0)
Attempt to read an SSB ticket.
bool maybeSSB(const QByteArray &data)
Returns whether data could be an ERA SSB ticket.
Classes for reservation/travel data models, data extraction and data augmentation.
Definition berelement.h:17
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:14:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.