File indexing completed on 2024-05-12 16:44:03

0001 /*
0002     SPDX-FileCopyrightText: 2009-2010 Cristian Oneț <onet.cristian@gmail.com>
0003     SPDX-FileCopyrightText: 2009-2010 Alvaro Soliverez <asoliverez@gmail.com>
0004     SPDX-FileCopyrightText: 2011-2017 Thomas Baumgart <tbaumgart@kde.org>
0005     SPDX-FileCopyrightText: 2017 Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com>
0006     SPDX-License-Identifier: GPL-2.0-or-later
0007 */
0008 
0009 #ifndef KMYMONEYOCCURRENCECOMBO_H
0010 #define KMYMONEYOCCURRENCECOMBO_H
0011 
0012 // ----------------------------------------------------------------------------
0013 // QT Includes
0014 
0015 // ----------------------------------------------------------------------------
0016 // KDE Includes
0017 
0018 // ----------------------------------------------------------------------------
0019 // Project Includes
0020 
0021 #include "kmymoneygeneralcombo.h"
0022 
0023 namespace eMyMoney {
0024 namespace Schedule {
0025 enum class Occurrence;
0026 }
0027 }
0028 
0029 /**
0030  * This class implements an occurrence selector
0031  * as a parent class for both OccurrencePeriod and Frequency combos
0032  *
0033  * @author Colin Wright
0034  */
0035 class KMM_WIDGETS_EXPORT KMyMoneyOccurrenceCombo : public KMyMoneyGeneralCombo
0036 {
0037     Q_OBJECT
0038     Q_DISABLE_COPY(KMyMoneyOccurrenceCombo)
0039 
0040 public:
0041     explicit KMyMoneyOccurrenceCombo(QWidget* parent = nullptr);
0042     ~KMyMoneyOccurrenceCombo() override;
0043 
0044     eMyMoney::Schedule::Occurrence currentItem() const;
0045 };
0046 
0047 #endif