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-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 #include "kmm_base_widgets_export.h"
0013 
0014 // ----------------------------------------------------------------------------
0015 // QT Includes
0016 
0017 // ----------------------------------------------------------------------------
0018 // KDE Includes
0019 
0020 // ----------------------------------------------------------------------------
0021 // Project Includes
0022 
0023 #include "kmymoneymvccombo.h"
0024 
0025 namespace eMyMoney {
0026 namespace Split {
0027 enum class State;
0028 }
0029 }
0030 
0031 /**
0032   * @author Thomas Baumgart
0033   * This class implements a combo box with the possible states for
0034   * reconciliation.
0035   */
0036 
0037 class KMM_BASE_WIDGETS_EXPORT KMyMoneyReconcileCombo : public KMyMoneyMVCCombo
0038 {
0039     Q_OBJECT
0040     Q_DISABLE_COPY(KMyMoneyReconcileCombo)
0041 
0042 public:
0043     explicit KMyMoneyReconcileCombo(QWidget *w = 0);
0044     ~KMyMoneyReconcileCombo() override;
0045 
0046     void setState(eMyMoney::Split::State state);
0047     eMyMoney::Split::State state() const;
0048     void removeDontCare();
0049 
0050 protected Q_SLOTS:
0051     void slotSetState(const QString&);
0052 };
0053 
0054 #endif