Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/mymoney/mymoneysplit_p.h
Context not available. | |||||
38 | // ---------------------------------------------------------------------------- | 38 | // ---------------------------------------------------------------------------- | ||
---|---|---|---|---|---|
39 | // Project Includes | 39 | // Project Includes | ||
40 | 40 | | |||
41 | #include "mymoneyobject_p.h" | ||||
41 | #include "mymoneymoney.h" | 42 | #include "mymoneymoney.h" | ||
42 | #include "mymoneyenums.h" | 43 | #include "mymoneyenums.h" | ||
43 | 44 | namespace eMyMoney | |||
44 | namespace Split | | |||
45 | { | 45 | { | ||
46 | enum class Element { Split = 0, | 46 | namespace Split | ||
47 | Tag, | 47 | { | ||
48 | Match, | 48 | enum class Element { Split = 0, | ||
49 | Container, | | |||
50 | KeyValuePairs | | |||
51 | }; | | |||
52 | uint qHash(const Element key, uint seed) { return ::qHash(static_cast<uint>(key), seed); } | | |||
53 | | ||||
54 | enum class Attribute { ID = 0, | | |||
55 | BankID, | | |||
56 | Account, | | |||
57 | Payee, | | |||
58 | Tag, | 49 | Tag, | ||
59 | Number, | 50 | Match, | ||
60 | Action, | 51 | Container, | ||
61 | Value, | 52 | KeyValuePairs | ||
62 | Shares, | | |||
63 | Price, | | |||
64 | Memo, | | |||
65 | CostCenter, | | |||
66 | ReconcileDate, | | |||
67 | ReconcileFlag, | | |||
68 | KMMatchedTx, | | |||
69 | // insert new entries above this line | | |||
70 | LastAttribute | | |||
71 | }; | 53 | }; | ||
72 | uint qHash(const Attribute key, uint seed) { return ::qHash(static_cast<uint>(key), seed); } | 54 | uint qHash(const Element key, uint seed) { return ::qHash(static_cast<uint>(key), seed); } | ||
55 | | ||||
56 | enum class Attribute { ID = 0, | ||||
57 | BankID, | ||||
58 | Account, | ||||
59 | Payee, | ||||
60 | Tag, | ||||
61 | Number, | ||||
62 | Action, | ||||
63 | Value, | ||||
64 | Shares, | ||||
65 | Price, | ||||
66 | Memo, | ||||
67 | CostCenter, | ||||
68 | ReconcileDate, | ||||
69 | ReconcileFlag, | ||||
70 | KMMatchedTx, | ||||
71 | // insert new entries above this line | ||||
72 | LastAttribute | ||||
73 | }; | ||||
74 | uint qHash(const Attribute key, uint seed) { return ::qHash(static_cast<uint>(key), seed); } | ||||
75 | } | ||||
73 | } | 76 | } | ||
74 | 77 | | |||
75 | class MyMoneySplitPrivate { | 78 | using namespace eMyMoney; | ||
79 | | ||||
80 | class MyMoneySplitPrivate : public MyMoneyObjectPrivate | ||||
81 | { | ||||
76 | 82 | | |||
77 | public: | 83 | public: | ||
78 | 84 | | |||
Context not available. |