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 { Air, Boat, Bus, Train, Generic };
20 Q_ENUM(TransitType)
21
22 explicit BoardingPass(QObject *parent = nullptr);
23 ~BoardingPass() override;
24
25 [[nodiscard]] TransitType transitType() const;
26};
27
28}
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 Tue Mar 26 2024 11:12:56 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.