File indexing completed on 2024-05-19 05:06:56

0001 /*
0002     SPDX-FileCopyrightText: 2010-2014 Cristian Oneț <onet.cristian@gmail.com>
0003     SPDX-FileCopyrightText: 2017-2018 Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com>
0004     SPDX-FileCopyrightText: 2019 Thomas Baumgart <tbaumgart@kde.org>
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #ifndef ACCOUNTSPROXYMODELPRIVATE_H
0009 #define ACCOUNTSPROXYMODELPRIVATE_H
0010 
0011 // ----------------------------------------------------------------------------
0012 // QT Includes
0013 
0014 #include <QSet>
0015 class QComboBox;
0016 
0017 // ----------------------------------------------------------------------------
0018 // KDE Includes
0019 
0020 // ----------------------------------------------------------------------------
0021 // Project Includes
0022 
0023 #include "mymoneyenums.h"
0024 
0025 class AccountsProxyModelPrivate
0026 {
0027     Q_DISABLE_COPY(AccountsProxyModelPrivate)
0028 
0029 public:
0030     AccountsProxyModelPrivate()
0031         : m_filterComboBox(nullptr)
0032         , m_hideClosedAccounts(true)
0033         , m_hideZeroBalanceAccounts(false)
0034         , m_hideEquityAccounts(true)
0035         , m_hideZeroBalanceEquityAccounts(false)
0036         , m_hideUnusedIncomeExpenseAccounts(false)
0037         , m_haveHiddenUnusedIncomeExpenseAccounts(false)
0038         , m_hideFavoriteAccounts(true)
0039         , m_hideAllEntries(false)
0040         , m_showAllEntries(false)
0041         , m_canSelectClosedAccounts(false)
0042         , m_state(AccountsProxyModel::State::Any)
0043     {
0044     }
0045 
0046     virtual ~AccountsProxyModelPrivate()
0047     {
0048     }
0049 
0050     QList<eMyMoney::Account::Type> m_typeList;
0051     QString m_notSelectableId;
0052     QComboBox* m_filterComboBox;
0053     bool m_hideClosedAccounts;
0054     bool m_hideZeroBalanceAccounts;
0055     bool m_hideEquityAccounts;
0056     bool m_hideZeroBalanceEquityAccounts;
0057     bool m_hideUnusedIncomeExpenseAccounts;
0058     bool m_haveHiddenUnusedIncomeExpenseAccounts;
0059     bool m_hideFavoriteAccounts;
0060     bool m_hideAllEntries;
0061     bool m_showAllEntries;
0062     bool m_canSelectClosedAccounts;
0063     QSet<eMyMoney::Account::Type> m_selectableAccountTypes;
0064     AccountsProxyModel::State m_state;
0065 };
0066 
0067 #endif // ACCOUNTSPROXYMODEL_P_H