File indexing completed on 2024-05-12 05:21:34
0001 /* 0002 SPDX-FileCopyrightText: 2017-2018 Volker Krause <vkrause@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "pass.h" 0010 0011 namespace KPkPass 0012 { 0013 /** Boarding pass */ 0014 class KPKPASS_EXPORT BoardingPass : public Pass 0015 { 0016 Q_OBJECT 0017 Q_PROPERTY(TransitType transitType READ transitType CONSTANT) 0018 public: 0019 enum TransitType { Air, Boat, Bus, Train, Generic }; 0020 Q_ENUM(TransitType) 0021 0022 explicit BoardingPass(QObject *parent = nullptr); 0023 ~BoardingPass() override; 0024 0025 [[nodiscard]] TransitType transitType() const; 0026 }; 0027 0028 }