KPkPass

boardingpass.h
1/*
2 SPDX-FileCopyrightText: 2017-2018 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "pass.h"
10
11namespace KPkPass
12{
13/** Boarding pass */
14class KPKPASS_EXPORT BoardingPass : public Pass
15{
16 Q_OBJECT
17 Q_PROPERTY(TransitType transitType READ transitType CONSTANT)
18public:
19 enum TransitType {
20 Air,
21 Boat,
22 Bus,
23 Train,
24 Generic
25 };
26 Q_ENUM(TransitType)
27
28 explicit BoardingPass(QObject *parent = nullptr);
29 ~BoardingPass() override;
30
31 [[nodiscard]] TransitType transitType() const;
32};
33
34}
Base class for a pkpass file.
Definition pass.h:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.