Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/mymoney/mymoneytransaction_p.h
Context not available. | |||||
29 | // ---------------------------------------------------------------------------- | 29 | // ---------------------------------------------------------------------------- | ||
---|---|---|---|---|---|
30 | // Project Includes | 30 | // Project Includes | ||
31 | 31 | | |||
32 | #include "mymoneyobject_p.h" | ||||
32 | #include "mymoneysplit.h" | 33 | #include "mymoneysplit.h" | ||
33 | 34 | namespace eMyMoney | |||
34 | namespace Transaction | | |||
35 | { | 35 | { | ||
36 | enum class Element { Split = 0, | 36 | namespace Transaction | ||
37 | Splits }; | 37 | { | ||
38 | uint qHash(const Element key, uint seed) { return ::qHash(static_cast<uint>(key), seed); } | 38 | enum class Element { Split = 0, | ||
39 | 39 | Splits }; | |||
40 | enum class Attribute { Name = 0, | 40 | uint qHash(const Element key, uint seed) { return ::qHash(static_cast<uint>(key), seed); } | ||
41 | Type, | 41 | | ||
42 | PostDate, | 42 | enum class Attribute { Name = 0, | ||
43 | Memo, | 43 | Type, | ||
44 | EntryDate, | 44 | PostDate, | ||
45 | Commodity, | 45 | Memo, | ||
46 | BankID, | 46 | EntryDate, | ||
47 | // insert new entries above this line | 47 | Commodity, | ||
48 | LastAttribute | 48 | BankID, | ||
49 | }; | 49 | // insert new entries above this line | ||
50 | 50 | LastAttribute | |||
51 | uint qHash(const Attribute key, uint seed) { return ::qHash(static_cast<uint>(key), seed); } | 51 | }; | ||
52 | | ||||
53 | uint qHash(const Attribute key, uint seed) { return ::qHash(static_cast<uint>(key), seed); } | ||||
54 | } | ||||
52 | } | 55 | } | ||
53 | 56 | | |||
54 | class MyMoneyTransactionPrivate { | 57 | using namespace eMyMoney; | ||
55 | 58 | | |||
59 | class MyMoneyTransactionPrivate : public MyMoneyObjectPrivate | ||||
60 | { | ||||
56 | public: | 61 | public: | ||
57 | static QString getElName(const Transaction::Element el) | 62 | static QString getElName(const Transaction::Element el) | ||
58 | { | 63 | { | ||
Context not available. |