#include <mymoneyseqaccessmgr.h>
Inheritance diagram for MyMoneySeqAccessMgr:


Public Member Functions | |
| MyMoneySeqAccessMgr () | |
| ~MyMoneySeqAccessMgr () | |
| const MyMoneyPayee | user (void) const |
| const QDate | creationDate (void) const |
| const QDate | lastModificationDate (void) const |
| unsigned int | currentFixVersion (void) const |
| unsigned int | fileFixVersion (void) const |
| void | setUser (const MyMoneyPayee &user) |
| void | setCreationDate (const QDate &val) |
| void | setLastModificationDate (const QDate &val) |
| void | setFileFixVersion (const unsigned int v) |
| MyMoneyStorageSql * | connectToDatabase (const KURL &url) |
| virtual void | fillStorage () |
| MyMoneySeqAccessMgr const * | duplicate (void) |
| const MyMoneyAccount | account (const QCString &id) const |
| bool | isStandardAccount (const QCString &id) const |
| void | setAccountName (const QCString &id, const QString &name) |
| void | addAccount (MyMoneyAccount &account) |
| void | addPayee (MyMoneyPayee &payee) |
| const MyMoneyPayee | payee (const QCString &id) const |
| const MyMoneyPayee | payeeByName (const QString &payee) const |
| void | modifyPayee (const MyMoneyPayee &payee) |
| void | removePayee (const MyMoneyPayee &payee) |
| const QValueList< MyMoneyPayee > | payeeList (void) const |
| void | addAccount (MyMoneyAccount &parent, MyMoneyAccount &account) |
| void | addInstitution (MyMoneyInstitution &institution) |
| void | addTransaction (MyMoneyTransaction &transaction, const bool skipAccountUpdate=false) |
| void | modifyAccount (const MyMoneyAccount &account, const bool skipCheck=false) |
| void | modifyInstitution (const MyMoneyInstitution &institution) |
| void | modifyTransaction (const MyMoneyTransaction &transaction) |
| void | reparentAccount (MyMoneyAccount &account, MyMoneyAccount &parent) |
| void | removeTransaction (const MyMoneyTransaction &transaction) |
| void | removeAccount (const MyMoneyAccount &account) |
| void | removeInstitution (const MyMoneyInstitution &institution) |
| const MyMoneyTransaction | transaction (const QCString &id) const |
| const MyMoneyTransaction | transaction (const QCString &account, const int idx) const |
| bool | hasActiveSplits (const QCString &id) const |
| const MyMoneyMoney | balance (const QCString &id, const QDate &date=QDate()) const |
| const MyMoneyMoney | totalBalance (const QCString &id, const QDate &date=QDate()) const |
| const MyMoneyInstitution | institution (const QCString &id) const |
| bool | dirty (void) const |
| void | setDirty (void) |
| const QValueList< MyMoneyInstitution > | institutionList (void) const |
| void | accountList (QValueList< MyMoneyAccount > &list) const |
| void | transactionList (QValueList< MyMoneyTransaction > &list, MyMoneyTransactionFilter &filter) const |
| void | transactionList (QValueList< QPair< MyMoneyTransaction, MyMoneySplit > > &list, MyMoneyTransactionFilter &filter) const |
| const QValueList< MyMoneyTransaction > | transactionList (MyMoneyTransactionFilter &filter) const |
| bool | isDuplicateTransaction (const QCString &id) const |
| unsigned int | transactionCount (const QCString &account=QCString()) const |
| const QMap< QCString, unsigned long > | transactionCountMap (void) const |
| unsigned int | institutionCount (void) const |
| unsigned int | accountCount (void) const |
| const MyMoneyAccount | liability (void) const |
| const MyMoneyAccount | asset (void) const |
| const MyMoneyAccount | expense (void) const |
| const MyMoneyAccount | income (void) const |
| const MyMoneyAccount | equity (void) const |
| virtual void | loadAccounts (const QMap< QCString, MyMoneyAccount > &acc) |
| virtual void | loadTransactions (const QMap< QCString, MyMoneyTransaction > &map) |
| virtual void | loadInstitutions (const QMap< QCString, MyMoneyInstitution > &map) |
| virtual void | loadPayees (const QMap< QCString, MyMoneyPayee > &map) |
| virtual void | loadSchedules (const QMap< QCString, MyMoneySchedule > &map) |
| virtual void | loadSecurities (const QMap< QCString, MyMoneySecurity > &map) |
| virtual void | loadCurrencies (const QMap< QCString, MyMoneySecurity > &map) |
| virtual void | loadPrices (const MyMoneyPriceList &list) |
| virtual void | loadAccountId (const unsigned long id) |
| virtual void | loadTransactionId (const unsigned long id) |
| virtual void | loadPayeeId (const unsigned long id) |
| virtual void | loadInstitutionId (const unsigned long id) |
| virtual void | loadScheduleId (const unsigned long id) |
| virtual void | loadSecurityId (const unsigned long id) |
| virtual void | loadReportId (const unsigned long id) |
| virtual void | loadBudgetId (const unsigned long id) |
| virtual unsigned long | accountId (void) const |
| virtual unsigned long | transactionId (void) const |
| virtual unsigned long | payeeId (void) const |
| virtual unsigned long | institutionId (void) const |
| virtual unsigned long | scheduleId (void) const |
| virtual unsigned long | securityId (void) const |
| virtual unsigned long | reportId (void) const |
| virtual unsigned long | budgetId (void) const |
| const QString | value (const QCString &key) const |
| void | setValue (const QCString &key, const QString &val) |
| void | deletePair (const QCString &key) |
| const QMap< QCString, QString > | pairs (void) const |
| void | setPairs (const QMap< QCString, QString > &list) |
| void | addSchedule (MyMoneySchedule &sched) |
| void | modifySchedule (const MyMoneySchedule &sched) |
| void | removeSchedule (const MyMoneySchedule &sched) |
| const MyMoneySchedule | schedule (const QCString &id) const |
| virtual void | addSecurity (MyMoneySecurity &security) |
| void | modifySecurity (const MyMoneySecurity &security) |
| void | removeSecurity (const MyMoneySecurity &security) |
| const MyMoneySecurity | security (const QCString &id) const |
| const QValueList< MyMoneySecurity > | securityList (void) const |
| void | addCurrency (const MyMoneySecurity ¤cy) |
| void | modifyCurrency (const MyMoneySecurity ¤cy) |
| void | removeCurrency (const MyMoneySecurity ¤cy) |
| const MyMoneySecurity | currency (const QCString &id) const |
| const QValueList< MyMoneySecurity > | currencyList (void) const |
| const QValueList< MyMoneySchedule > | scheduleList (const QCString &accountId=QCString(), const MyMoneySchedule::typeE type=MyMoneySchedule::TYPE_ANY, const MyMoneySchedule::occurenceE occurence=MyMoneySchedule::OCCUR_ANY, const MyMoneySchedule::paymentTypeE paymentType=MyMoneySchedule::STYPE_ANY, const QDate &startDate=QDate(), const QDate &endDate=QDate(), const bool overdue=false) const |
| const QValueList< MyMoneySchedule > | scheduleListEx (int scheduleTypes, int scheduleOcurrences, int schedulePaymentTypes, QDate startDate, const QCStringList &accounts=QCStringList()) const |
| const QValueList< MyMoneyReport > | reportList (void) const |
| void | addReport (MyMoneyReport &report) |
| void | loadReports (const QMap< QCString, MyMoneyReport > &reports) |
| void | modifyReport (const MyMoneyReport &report) |
| unsigned | countReports (void) const |
| const MyMoneyReport | report (const QCString &id) const |
| void | removeReport (const MyMoneyReport &report) |
| const QValueList< MyMoneyBudget > | budgetList (void) const |
| void | addBudget (MyMoneyBudget &budget) |
| void | loadBudgets (const QMap< QCString, MyMoneyBudget > &budgets) |
| const MyMoneyBudget | budgetByName (const QString &budget) const |
| void | modifyBudget (const MyMoneyBudget &budget) |
| unsigned | countBudgets (void) const |
| MyMoneyBudget | budget (const QCString &id) const |
| void | removeBudget (const MyMoneyBudget &budget) |
| void | addPrice (const MyMoneyPrice &price) |
| void | removePrice (const MyMoneyPrice &price) |
| const MyMoneyPrice | price (const QCString &fromId, const QCString &toId, const QDate &date, const bool exactDate) const |
| const MyMoneyPriceList | priceList (void) const |
| void | clearCache (void) |
| bool | isReferenced (const MyMoneyObject &obj, const MyMoneyFileBitArray &skipCheck=MyMoneyFileBitArray()) const |
| void | rebuildAccountBalances (void) |
| virtual void | startTransaction (void) |
| virtual bool | commitTransaction (void) |
| virtual void | rollbackTransaction (void) |
Protected Member Functions | |
| void | removeReferences (const QCString &id) |
Private Member Functions | |
| void | touch (void) |
| void | invalidateBalanceCache (const QCString &id) |
| const QCString | nextInstitutionID (void) |
| const QCString | nextAccountID (void) |
| const QCString | nextTransactionID (void) |
| const QCString | nextPayeeID (void) |
| const QCString | nextScheduleID (void) |
| const QCString | nextSecurityID (void) |
| const QCString | nextReportID (void) |
| const QCString | nextBudgetID (void) |
| void | reparentAccount (MyMoneyAccount &account, MyMoneyAccount &parent, const bool sendNotification) |
| void | close (void) |
Private Attributes | |
| MyMoneyPayee | m_user |
| unsigned long | m_nextInstitutionID |
| unsigned long | m_nextAccountID |
| unsigned long | m_nextTransactionID |
| unsigned long | m_nextPayeeID |
| unsigned long | m_nextScheduleID |
| unsigned long | m_nextSecurityID |
| unsigned long | m_nextReportID |
| unsigned long | m_nextBudgetID |
| MyMoneyMap< QCString, MyMoneyInstitution > | m_institutionList |
| MyMoneyMap< QCString, MyMoneyAccount > | m_accountList |
| QMap< QCString, MyMoneyBalanceCacheItem > | m_balanceCache |
| QDate | m_balanceCacheDate |
| MyMoneyMap< QCString, MyMoneyTransaction > | m_transactionList |
| MyMoneyMap< QCString, QCString > | m_transactionKeys |
| MyMoneyMap< QCString, MyMoneyPayee > | m_payeeList |
| MyMoneyMap< QCString, MyMoneySchedule > | m_scheduleList |
| MyMoneyMap< QCString, MyMoneySecurity > | m_securitiesList |
| MyMoneyMap< QCString, MyMoneySecurity > | m_currencyList |
| MyMoneyMap< QCString, MyMoneyReport > | m_reportList |
| MyMoneyMap< QCString, MyMoneyBudget > | m_budgetList |
| MyMoneyMap< MyMoneySecurityPair, MyMoneyPriceEntries > | m_priceList |
| bool | m_dirty |
| QDate | m_creationDate |
| QDate | m_lastModificationDate |
| unsigned int | m_currentFixVersion |
| unsigned int | m_fileFixVersion |
| bool | m_transactionListFull |
Static Private Attributes | |
| static const int | INSTITUTION_ID_SIZE = 6 |
| static const int | ACCOUNT_ID_SIZE = 6 |
| static const int | TRANSACTION_ID_SIZE = 18 |
| static const int | PAYEE_ID_SIZE = 6 |
| static const int | SCHEDULE_ID_SIZE = 6 |
| static const int | SECURITY_ID_SIZE = 6 |
| static const int | REPORT_ID_SIZE = 6 |
| static const int | BUDGET_ID_SIZE = 6 |
The MyMoneySeqAccessMgr must be loaded by an application using the IMyMoneySerialize() interface and can then be accessed through the IMyMoneyStorage() interface. All data is loaded into memory, modified and kept there. It is the subject of an outside object to store the modified data in a persistant storage area using the IMyMoneySerialize() interface. As indication, if data has been changed, the retrun value of the method dirty() can be used.
|
|
|
|
|
|
|
|
Returns the account addressed by it's id.
Implements IMyMoneyStorage. |
|
|
This method returns the number of accounts currently known to file in the range 0..MAXUINT
Implements IMyMoneyStorage. |
|
|
Implements IMyMoneySerialize. |
|
|
This method returns a list of accounts inside the storage object.
Implements IMyMoneySerialize. |
|
||||||||||||
|
This method is used to add one account as sub-ordinate to another (parent) account. The objects passed as arguments will be modified accordingly.
Implements IMyMoneySerialize. |
|
|
This method is used to create a new account An exception will be thrown upon error conditions.
Implements IMyMoneySerialize. |
|
|
This method is used to add a new budget to the engine. It must be sure, that the id of the object is not filled. When the method returns to the caller, the id will be filled with the newly created object id value. An exception will be thrown upon erronous situations.
Implements IMyMoneyStorage. |
|
|
This method is used to add a new currency object to the engine. The ID of the object is the trading symbol, so there is no need for an additional ID since the symbol is guaranteed to be unique. An exception will be thrown upon erronous situations.
Implements IMyMoneyStorage. |
|
|
Adds an institution to the storage. A respective institution-ID will be generated within this record. The ID is stored as QString in the object passed as argument. An exception will be thrown upon error conditions.
Implements IMyMoneySerialize. |
|
|
This method is used to create a new payee An exception will be thrown upon error conditions
Implements IMyMoneySerialize. |
|
|
This method adds/replaces a price to/from the price list Implements IMyMoneySerialize. |
|
|
This method is used to add a new report to the engine. It must be sure, that the id of the object is not filled. When the method returns to the caller, the id will be filled with the newly created object id value. An exception will be thrown upon erronous situations.
Implements IMyMoneyStorage. |
|
|
This method is used to add a scheduled transaction to the engine. It must be sure, that the id of the object is not filled. When the method returns to the caller, the id will be filled with the newly created object id value. An exception will be thrown upon erronous situations.
Implements IMyMoneyStorage. |
|
|
This method is used to create a new security object. The ID will be created automatically. The object passed with the parameter An exception will be thrown upon error conditions.
Implements IMyMoneyStorage. |
|
||||||||||||
|
Adds a transaction to the file-global transaction pool. A respective transaction-ID will be generated within this record. The ID is stored as QString in the transaction object. The accounts of the referenced splits will be updated to have a reference to the transaction just added.
Implements IMyMoneySerialize. |
|
|
This method is used to return the standard asset account
Implements IMyMoneySerialize. |
|
||||||||||||
|
This method is used to return the actual balance of an account without it's sub-ordinate accounts. If a
Implements IMyMoneyStorage. |
|
|
This method is used to retrieve a single MyMoneyBudget object. The id of the object must be supplied in the parameter An exception will be thrown upon erronous situations.
Implements IMyMoneyStorage. |
|
|
This method is used to retrieve the id to a corresponding name of a budget An exception will be thrown upon error conditions.
Implements IMyMoneyStorage. |
|
|
Implements IMyMoneySerialize. |
|
|
This method is used to retrieve the list of all budgets known to the engine. An exception will be thrown upon erronous situations.
Implements IMyMoneySerialize. |
|
|
Clear all internal caches (used internally for performance measurements) Implements IMyMoneyStorage. |
|
|
This method will close a database and log the use roff Implements IMyMoneyStorage. |
|
|
Implements IMyMoneyStorage. |
|
|
This method is used to get a SQL reader for subsequent database access Implements IMyMoneySerialize. |
|
|
This method returns the number of budgets currently known to file in the range 0..MAXUINT
Implements IMyMoneyStorage. |
|
|
This method returns the number of reports currently known to file in the range 0..MAXUINT
Implements IMyMoneyStorage. |
|
|
Implements IMyMoneySerialize. |
|
|
This method is used to retrieve a single MyMoneySchedule object. The id of the object must be supplied in the parameter An exception will be thrown upon erronous situations.
Implements IMyMoneyStorage. |
|
|
This method is used to retrieve the list of all currencies known to the engine. An exception will be thrown upon erronous situations.
Implements IMyMoneySerialize. |
|
|
Implements IMyMoneySerialize. |
|
|
This method is used to delete a key-value-pair from the KeyValueContainer identified by the parameter
Reimplemented from MyMoneyKeyValueContainer. |
|
|
This method returns an indicator if the storage object has been changed after it has last been saved to permanent storage.
Implements IMyMoneyStorage. |
|
|
This method is used to duplicate the MyMoneySeqAccessMgr object and return a pointer to the newly created copy. The caller of this method is the new owner of the object and must destroy it. Implements IMyMoneyStorage. |
|
|
This method is used to return the standard equity account
Implements IMyMoneySerialize. |
|
|
This method is used to return the standard expense account
Implements IMyMoneySerialize. |
|
|
Implements IMyMoneySerialize. |
|
|
This method is used when a database file is open, and the data is to be saved in a different file or format. It will ensure that all data from the database is available in memory to enable it to be written. Implements IMyMoneySerialize. |
|
|
This method is used to determince, if the account with the given ID is referenced by any split in m_transactionList.
Implements IMyMoneyStorage. |
|
|
This method is used to return the standard income account
Implements IMyMoneySerialize. |
|
|
Returns the institution of a given ID
Implements IMyMoneyStorage. |
|
|
This method returns the number of institutions currently known to file in the range 0..MAXUINT
Implements IMyMoneyStorage. |
|
|
Implements IMyMoneySerialize. |
|
|
This method returns a list of the institutions inside a MyMoneyFile object
Implements IMyMoneySerialize. |
|
|
This method is used to invalidate the cached balance for the selected account and all it's parents.
|
|
|
This method returns whether a given transaction is already in memory, to avoid reloading it from the database Implements IMyMoneySerialize. |
|
||||||||||||
|
This method checks, if the given
Implements IMyMoneyStorage. |
|
|
This method is used to check whether a given account id references one of the standard accounts or not.
Implements IMyMoneyStorage. |
|
|
Implements IMyMoneySerialize. |
|
|
This method is used to return the standard liability account
Implements IMyMoneySerialize. |
|
|
Implements IMyMoneySerialize. |
|
|
Implements IMyMoneySerialize. |
|
|
Implements IMyMoneySerialize. |
|
|
This method is used to load a set of budgets into the engine. This is used when loading from storage, and an ID is already known. An exception will be thrown upon erronous situations.
Implements IMyMoneySerialize. |
|
|
Implements IMyMoneySerialize. |
|
|
Implements IMyMoneySerialize. |
|
|
Implements IMyMoneySerialize. |
|
|
Implements IMyMoneySerialize. |
|
|
Implements IMyMoneySerialize. |
|