File indexing completed on 2024-05-12 05:06:06
0001 /* 0002 SPDX-FileCopyrightText: 2017 Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com> 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 #ifndef DIALOGENUMS_H 0007 #define DIALOGENUMS_H 0008 0009 namespace eDialogs { 0010 /** 0011 * This enum is used to describe the bits of an account type filter mask. 0012 * Each bit is used to define a specific account class. Multiple classes 0013 * can be specified by OR'ing multiple entries. The special entry @p last 0014 * marks the left most bit in the mask and is used by scanners of this 0015 * bitmask to determine the end of processing. 0016 */ 0017 enum Category : int { 0018 none = 0x000, ///< no account class selected 0019 liability = 0x001, ///< liability accounts selected 0020 asset = 0x002, ///< asset accounts selected 0021 expense = 0x004, ///< expense accounts selected 0022 income = 0x008, ///< income accounts selected 0023 equity = 0x010, ///< equity accounts selected 0024 checking = 0x020, ///< checking accounts selected 0025 savings = 0x040, ///< savings accounts selected 0026 investment = 0x080, ///< investment accounts selected 0027 creditCard = 0x100, ///< credit card accounts selected 0028 last = 0x200, ///< the leftmost bit in the mask 0029 }; 0030 0031 enum class UpdatePrice { 0032 All = 0, 0033 Missing, 0034 Downloaded, 0035 SameSource, 0036 Ask, 0037 }; 0038 0039 enum class PriceMode { 0040 Price = 0, 0041 PricePerShare, 0042 PricePerTransaction, 0043 }; 0044 0045 enum class ScheduleResultCode { 0046 Cancel = 0, // cancel the operation 0047 Enter, // enter the schedule 0048 Skip, // skip the schedule 0049 Ignore, // ignore the schedule 0050 }; 0051 0052 } 0053 0054 #endif