KItinerary

iatabcbpparser.h
1/*
2 SPDX-FileCopyrightText: 2018 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "kitinerary_export.h"
10
11#include <QDateTime>
12#include <QList>
13
14#include <memory>
15
16class QString;
17class QVariant;
18
19namespace KItinerary {
20
21class IataBcbp;
22
23/**
24 * Parser for IATA Bar Coded Boarding Pass messages.
25 * @see https://www.iata.org/whatwedo/stb/Documents/BCBP-Implementation-Guide-5th-Edition-June-2016.pdf
26 */
27namespace IataBcbpParser
28{
29/** Parses the bar coded boarding pass message @p message into
30 * a list of FlightReservation instances.
31 * @param message The message.
32 * @param externalIssueDate The date the boarding pass was issued (or a sufficiently close approximation).
33 * This is necessary as by default the BCBP data only contains day and month of the flight, not the year.
34 */
35[[nodiscard]] QList<QVariant> parse(const QString &message, const QDateTime &externalIssueDateTime = QDateTime());
36[[nodiscard]] KITINERARY_EXPORT QList<QVariant> parse(const IataBcbp &bcbp, const QDateTime &contextDate);
37}
38
39}
40
A IATA BarCoded Boarding Pass (BCBP)
Definition iatabcbp.h:21
QList< QVariant > parse(const QString &message, const QDateTime &externalIssueDateTime=QDateTime())
Parses the bar coded boarding pass message message into a list of FlightReservation instances.
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 Mon Nov 18 2024 12:09:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.