File indexing completed on 2024-05-19 05:08:34

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 #include "kmm_base_widgets_export.h"
0013 
0014 // ----------------------------------------------------------------------------
0015 // QT Includes
0016 
0017 // ----------------------------------------------------------------------------
0018 // KDE Includes
0019 
0020 // ----------------------------------------------------------------------------
0021 // Project Includes
0022 
0023 #include "kmymoneygeneralcombo.h"
0024 
0025 namespace eMyMoney {
0026 namespace Schedule {
0027 enum class Occurrence;
0028 }
0029 }
0030 
0031 /**
0032  * This class implements an occurrence selector
0033  * as a parent class for both OccurrencePeriod and Frequency combos
0034  *
0035  * @author Colin Wright
0036  */
0037 class KMM_BASE_WIDGETS_EXPORT KMyMoneyOccurrenceCombo : public KMyMoneyGeneralCombo
0038 {
0039     Q_OBJECT
0040     Q_DISABLE_COPY(KMyMoneyOccurrenceCombo)
0041 
0042 public:
0043     explicit KMyMoneyOccurrenceCombo(QWidget* parent = nullptr);
0044     ~KMyMoneyOccurrenceCombo() override;
0045 
0046     eMyMoney::Schedule::Occurrence currentItem() const;
0047 };
0048 
0049 #endif