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-2018 Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com>
0006     SPDX-License-Identifier: GPL-2.0-or-later
0007 */
0008 
0009 #ifndef KMYMONEYRECONCILECOMBO_H
0010 #define KMYMONEYRECONCILECOMBO_H
0011 
0012 // ----------------------------------------------------------------------------
0013 // QT Includes
0014 
0015 // ----------------------------------------------------------------------------
0016 // KDE Includes
0017 
0018 // ----------------------------------------------------------------------------
0019 // Project Includes
0020 
0021 #include "kmymoneymvccombo.h"
0022 
0023 namespace eMyMoney {
0024 namespace Split {
0025 enum class State;
0026 }
0027 }
0028 
0029 /**
0030   * @author Thomas Baumgart
0031   * This class implements a combo box with the possible states for
0032   * reconciliation.
0033   */
0034 
0035 class KMM_WIDGETS_EXPORT KMyMoneyReconcileCombo : public KMyMoneyMVCCombo
0036 {
0037     Q_OBJECT
0038     Q_DISABLE_COPY(KMyMoneyReconcileCombo)
0039 
0040 public:
0041     explicit KMyMoneyReconcileCombo(QWidget *w = 0);
0042     ~KMyMoneyReconcileCombo() override;
0043 
0044     void setState(eMyMoney::Split::State state);
0045     eMyMoney::Split::State state() const;
0046     void removeDontCare();
0047 
0048 protected Q_SLOTS:
0049     void slotSetState(const QString&);
0050 };
0051 
0052 #endif