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

0001 /*
0002     SPDX-FileCopyrightText: 2017 Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com>
0003     SPDX-FileCopyrightText: 2023 Thomas Baumgart <tbaumgart@kde.org>
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef VIEWENUMS_H
0008 #define VIEWENUMS_H
0009 
0010 #include <QHashFunctions>
0011 
0012 #include "qhashseedtype.h"
0013 
0014 enum class View {
0015     Home = 0,
0016     Institutions,
0017     Accounts,
0018     Schedules,
0019     Categories,
0020     Tags,
0021     Payees,
0022     NewLedgers,
0023     Investments,
0024     Reports,
0025     Budget,
0026     Forecast,
0027     OnlineJobOutbox,
0028     None,
0029 };
0030 
0031 inline qHashSeedType qHash(const View key, qHashSeedType seed)
0032 {
0033     return ::qHash(static_cast<uint>(key), seed);
0034 }
0035 
0036 namespace eView {
0037 enum class Tag { All = 0,
0038                  Referenced, // used tags
0039                  Unused,     // unused tags
0040                  Opened,     // not closed tags
0041                  Closed,     // closed tags
0042                };
0043 
0044 enum class Action {
0045     None,
0046     Refresh,
0047     Print,
0048     ClosePayeeIdentifierSource,
0049 };
0050 }
0051 
0052 #endif