KPkPass

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

KDE's Doxygen guidelines are available online.