File indexing completed on 2024-04-28 05:06:07

0001 /*
0002     SPDX-FileCopyrightText: 2018 Ł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 KMYMONEYENUMS_H
0008 #define KMYMONEYENUMS_H
0009 
0010 #include <QHashFunctions>
0011 
0012 #include "qhashseedtype.h"
0013 
0014 namespace eKMyMoney {
0015 enum class FileAction {
0016     Opened,
0017     Saved,
0018     Closing,
0019     Closed,
0020     Changed,
0021 };
0022 
0023 enum class StorageType {
0024     None,
0025     XML,
0026     SQL,
0027     GNC,
0028 };
0029 
0030 inline qHashSeedType qHash(const StorageType key, qHashSeedType seed)
0031 {
0032     return ::qHash(static_cast<uint>(key), seed);
0033 }
0034 }
0035 #endif