File indexing completed on 2024-05-12 05:06:35

0001 /*
0002     SPDX-FileCopyrightText: 2006 Ace Jones <acejones@users.sourceforge.net>
0003     SPDX-FileCopyrightText: 2006 Darren Gould <darren_gould@gmx.de>
0004     SPDX-FileCopyrightText: 2017 Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com>
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #ifndef MYMONEYBUDGET_P_H
0009 #define MYMONEYBUDGET_P_H
0010 
0011 // ----------------------------------------------------------------------------
0012 // QT Includes
0013 
0014 #include <QDate>
0015 #include <QHash>
0016 #include <QMap>
0017 
0018 // ----------------------------------------------------------------------------
0019 // KDE Includes
0020 
0021 // ----------------------------------------------------------------------------
0022 // Project Includes
0023 
0024 #include "mymoneyobject_p.h"
0025 #include "mymoneymoney.h"
0026 #include "mymoneyenums.h"
0027 
0028 class MyMoneyBudgetPrivate : public MyMoneyObjectPrivate
0029 {
0030 public:
0031     void collectReferencedObjects() override
0032     {
0033         const auto keys = m_accounts.keys();
0034         m_referencedObjects = QSet<QString>(keys.constBegin(), keys.constEnd());
0035     }
0036 
0037     /**
0038       * The user-assigned name of the Budget
0039       */
0040     QString m_name;
0041 
0042     /**
0043       * The user-assigned year of the Budget
0044       */
0045     QDate m_start;
0046 
0047     /**
0048       * Map the budgeted accounts
0049       *
0050       * Each account Id is stored against the AccountGroup information
0051       */
0052     QMap<QString, MyMoneyBudget::AccountGroup> m_accounts;
0053 };
0054 
0055 #endif