Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/mymoney/mymoneyaccount.h
Context not available. | |||||
23 | 23 | | |||
---|---|---|---|---|---|
24 | #include <QString> | 24 | #include <QString> | ||
25 | #include <QStringList> | 25 | #include <QStringList> | ||
26 | #include <QPixmap> | | |||
27 | #include <QDate> | 26 | #include <QDate> | ||
28 | 27 | | |||
29 | // ---------------------------------------------------------------------------- | 28 | // ---------------------------------------------------------------------------- | ||
Context not available. | |||||
32 | #include "mymoneykeyvaluecontainer.h" | 31 | #include "mymoneykeyvaluecontainer.h" | ||
33 | #include "mymoneymoney.h" | 32 | #include "mymoneymoney.h" | ||
34 | #include "mymoneyobject.h" | 33 | #include "mymoneyobject.h" | ||
35 | #include "mymoneysecurity.h" | | |||
36 | #include "kmm_mymoney_export.h" | 34 | #include "kmm_mymoney_export.h" | ||
37 | #include "mymoneyunittestable.h" | 35 | #include "mymoneyunittestable.h" | ||
36 | #include "mymoneyenums.h" | ||||
38 | 37 | | |||
38 | class QPixmap; | ||||
39 | class MyMoneySecurity; | ||||
39 | class MyMoneySplit; | 40 | class MyMoneySplit; | ||
40 | class payeeIdentifier; | 41 | class payeeIdentifier; | ||
41 | namespace payeeIdentifiers { class ibanBic; } | 42 | namespace payeeIdentifiers { class ibanBic; } | ||
Context not available. | |||||
49 | * | 50 | * | ||
50 | * Currently, the following account types are known: | 51 | * Currently, the following account types are known: | ||
51 | * | 52 | * | ||
52 | * @li UnknownAccountType | 53 | * @li Unknown | ||
53 | * @li Checkings | 54 | * @li Checkings | ||
54 | * @li Savings | 55 | * @li Savings | ||
55 | * @li Cash | 56 | * @li Cash | ||
Context not available. | |||||
92 | Q_ENUM(attrNameE) | 93 | Q_ENUM(attrNameE) | ||
93 | 94 | | |||
94 | /** | 95 | /** | ||
95 | * Account types currently supported. | | |||
96 | */ | | |||
97 | typedef enum _accountTypeE { | | |||
98 | UnknownAccountType = 0, /**< For error handling */ | | |||
99 | Checkings, /**< Standard checking account */ | | |||
100 | Savings, /**< Typical savings account */ | | |||
101 | Cash, /**< Denotes a shoe-box or pillowcase stuffed | | |||
102 | with cash */ | | |||
103 | CreditCard, /**< Credit card accounts */ | | |||
104 | Loan, /**< Loan and mortgage accounts (liability) */ | | |||
105 | CertificateDep, /**< Certificates of Deposit */ | | |||
106 | Investment, /**< Investment account */ | | |||
107 | MoneyMarket, /**< Money Market Account */ | | |||
108 | Asset, /**< Denotes a generic asset account.*/ | | |||
109 | Liability, /**< Denotes a generic liability account.*/ | | |||
110 | Currency, /**< Denotes a currency trading account. */ | | |||
111 | Income, /**< Denotes an income account */ | | |||
112 | Expense, /**< Denotes an expense account */ | | |||
113 | AssetLoan, /**< Denotes a loan (asset of the owner of this object) */ | | |||
114 | Stock, /**< Denotes an security account as sub-account for an investment */ | | |||
115 | Equity, /**< Denotes an equity account e.g. opening/closeing balance */ | | |||
116 | | ||||
117 | /* insert new account types above this line */ | | |||
118 | MaxAccountTypes /**< Denotes the number of different account types */ | | |||
119 | } accountTypeE; | | |||
120 | | ||||
121 | /** | | |||
122 | * This is the constructor for a new empty account | 96 | * This is the constructor for a new empty account | ||
123 | */ | 97 | */ | ||
124 | MyMoneyAccount(); | 98 | MyMoneyAccount(); | ||
Context not available. | |||||
183 | * | 157 | * | ||
184 | * @return accountTypeE of major account type | 158 | * @return accountTypeE of major account type | ||
185 | */ | 159 | */ | ||
186 | MyMoneyAccount::accountTypeE accountGroup() const; | 160 | eMyMoney::Account accountGroup() const; | ||
187 | 161 | | |||
188 | /** | 162 | /** | ||
189 | * This method returns the id of the MyMoneyInstitution object this account | 163 | * This method returns the id of the MyMoneyInstitution object this account | ||
Context not available. | |||||
375 | * | 349 | * | ||
376 | * @param type account type | 350 | * @param type account type | ||
377 | */ | 351 | */ | ||
378 | void setAccountType(const accountTypeE type); | 352 | void setAccountType(const eMyMoney::Account type); | ||
379 | 353 | | |||
380 | /** | 354 | /** | ||
381 | * This method is used to set a new parent account id | 355 | * This method is used to set a new parent account id | ||
Context not available. | |||||
393 | /** | 367 | /** | ||
394 | * This method returns the type of the account. | 368 | * This method returns the type of the account. | ||
395 | */ | 369 | */ | ||
396 | accountTypeE accountType() const { | 370 | eMyMoney::Account accountType() const { | ||
397 | return m_accountType; | 371 | return m_accountType; | ||
398 | } | 372 | } | ||
399 | 373 | | |||
Context not available. | |||||
599 | * an account type into a human readable format | 573 | * an account type into a human readable format | ||
600 | * | 574 | * | ||
601 | * @param accountType numerical representation of the account type. | 575 | * @param accountType numerical representation of the account type. | ||
602 | * For possible values, see MyMoneyAccount::accountTypeE | 576 | * For possible values, see eMyMoney::Account | ||
603 | * @return QString representing the human readable form | 577 | * @return QString representing the human readable form | ||
604 | */ | 578 | */ | ||
605 | static QString accountTypeToString(const MyMoneyAccount::accountTypeE accountType); | 579 | static QString accountTypeToString(const eMyMoney::Account accountType); | ||
606 | 580 | | |||
607 | /** | 581 | /** | ||
608 | * keeps a history record of a reconciliation for this account on @a date | 582 | * keeps a history record of a reconciliation for this account on @a date | ||
Context not available. | |||||
628 | /** | 602 | /** | ||
629 | * This member variable identifies the type of account | 603 | * This member variable identifies the type of account | ||
630 | */ | 604 | */ | ||
631 | accountTypeE m_accountType; | 605 | eMyMoney::Account m_accountType; | ||
632 | 606 | | |||
633 | /** | 607 | /** | ||
634 | * This member variable keeps the ID of the MyMoneyInstitution object | 608 | * This member variable keeps the ID of the MyMoneyInstitution object | ||
Context not available. | |||||
798 | * @ref accountTypeE and @ref amountTypeE inside @ref QVariant objects. | 772 | * @ref accountTypeE and @ref amountTypeE inside @ref QVariant objects. | ||
799 | */ | 773 | */ | ||
800 | Q_DECLARE_METATYPE(MyMoneyAccount) | 774 | Q_DECLARE_METATYPE(MyMoneyAccount) | ||
801 | Q_DECLARE_METATYPE(MyMoneyAccount::accountTypeE) | 775 | Q_DECLARE_METATYPE(eMyMoney::Account) | ||
802 | 776 | | |||
803 | #endif | 777 | #endif | ||
Context not available. |