Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/dialogs/dialogenums.h
- This file was added.
1 | /*************************************************************************** | ||||
---|---|---|---|---|---|
2 | dialogenums.h | ||||
3 | ------------------- | ||||
4 | copyright : (C) 2017 by Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com> | ||||
5 | | ||||
6 | ***************************************************************************/ | ||||
7 | | ||||
8 | /*************************************************************************** | ||||
9 | * * | ||||
10 | * This program is free software; you can redistribute it and/or modify * | ||||
11 | * it under the terms of the GNU General Public License as published by * | ||||
12 | * the Free Software Foundation; either version 2 of the License, or * | ||||
13 | * (at your option) any later version. * | ||||
14 | * * | ||||
15 | ***************************************************************************/ | ||||
16 | | ||||
17 | #ifndef DIALOGENUMS_H | ||||
18 | #define DIALOGENUMS_H | ||||
19 | | ||||
20 | namespace eDialogs { | ||||
21 | /** | ||||
22 | * This enum is used to describe the bits of an account type filter mask. | ||||
23 | * Each bit is used to define a specific account class. Multiple classes | ||||
24 | * can be specified by OR'ing multiple entries. The special entry @p last | ||||
25 | * marks the left most bit in the mask and is used by scanners of this | ||||
26 | * bitmask to determine the end of processing. | ||||
27 | */ | ||||
28 | enum Category : int { | ||||
29 | none = 0x000, ///< no account class selected | ||||
30 | liability = 0x001, ///< liability accounts selected | ||||
31 | asset = 0x002, ///< asset accounts selected | ||||
32 | expense = 0x004, ///< expense accounts selected | ||||
33 | income = 0x008, ///< income accounts selected | ||||
34 | equity = 0x010, ///< equity accounts selected | ||||
35 | checking = 0x020, ///< checking accounts selected | ||||
36 | savings = 0x040, ///< savings accounts selected | ||||
37 | investment = 0x080, ///< investment accounts selected | ||||
38 | creditCard = 0x100, ///< credit card accounts selected | ||||
39 | last = 0x200 ///< the leftmost bit in the mask | ||||
40 | }; | ||||
41 | | ||||
42 | enum class UpdatePrice { | ||||
43 | All = 0, | ||||
44 | Missing, | ||||
45 | Downloaded, | ||||
46 | SameSource, | ||||
47 | Ask | ||||
48 | }; | ||||
49 | | ||||
50 | enum class PriceMode { | ||||
51 | Price = 0, | ||||
52 | PricePerShare, | ||||
53 | PricePerTransaction | ||||
54 | }; | ||||
55 | | ||||
56 | enum class ScheduleResultCode { | ||||
57 | Cancel = 0, // cancel the operation | ||||
58 | Enter, // enter the schedule | ||||
59 | Skip, // skip the schedule | ||||
60 | Ignore // ignore the schedule | ||||
61 | }; | ||||
62 | | ||||
63 | } | ||||
64 | | ||||
65 | #endif |