#include <imymoneystorage.h>
Inheritance diagram for IMyMoneyStorage:

Public Types | |
| enum | ReferenceCheckBits { RefCheckAccount = 0, RefCheckInstitution, RefCheckPayee, RefCheckTransaction, RefCheckReport, RefCheckBudget, RefCheckSchedule, RefCheckSecurity, RefCheckCurrency, RefCheckPrice, MaxRefCheckBits } |
Public Member Functions | |
| IMyMoneyStorage () | |
| virtual | ~IMyMoneyStorage () |
| virtual const MyMoneyPayee | user (void) const =0 |
| virtual const QDate | creationDate (void) const =0 |
| virtual const QDate | lastModificationDate (void) const =0 |
| virtual unsigned int | currentFixVersion (void) const =0 |
| virtual unsigned int | fileFixVersion (void) const =0 |
| virtual void | setUser (const MyMoneyPayee &user)=0 |
| virtual void | setFileFixVersion (const unsigned int v)=0 |
| virtual void | setValue (const QCString &key, const QString &value)=0 |
| virtual const QString | value (const QCString &key) const =0 |
| virtual void | deletePair (const QCString &key)=0 |
| virtual IMyMoneyStorage const * | duplicate (void)=0 |
| virtual void | addAccount (MyMoneyAccount &account)=0 |
| virtual void | addAccount (MyMoneyAccount &parent, MyMoneyAccount &account)=0 |
| virtual void | addPayee (MyMoneyPayee &payee)=0 |
| virtual const MyMoneyPayee | payee (const QCString &id) const =0 |
| virtual const MyMoneyPayee | payeeByName (const QString &payee) const =0 |
| virtual void | modifyPayee (const MyMoneyPayee &payee)=0 |
| virtual void | removePayee (const MyMoneyPayee &payee)=0 |
| virtual const QValueList< MyMoneyPayee > | payeeList (void) const =0 |
| virtual const MyMoneyAccount | account (const QCString &id) const =0 |
| virtual bool | isStandardAccount (const QCString &id) const =0 |
| virtual void | setAccountName (const QCString &id, const QString &name)=0 |
| virtual void | addInstitution (MyMoneyInstitution &institution)=0 |
| virtual void | addTransaction (MyMoneyTransaction &transaction, const bool skipAccountUpdate=false)=0 |
| virtual bool | hasActiveSplits (const QCString &id) const =0 |
| virtual const MyMoneyMoney | balance (const QCString &id, const QDate &date) const =0 |
| virtual const MyMoneyMoney | totalBalance (const QCString &id, const QDate &date) const =0 |
| virtual const MyMoneyInstitution | institution (const QCString &id) const =0 |
| virtual bool | dirty (void) const =0 |
| virtual void | setDirty (void)=0 |
| virtual unsigned int | accountCount (void) const =0 |
| virtual const QValueList< MyMoneyInstitution > | institutionList (void) const =0 |
| virtual void | modifyAccount (const MyMoneyAccount &account, const bool skipCheck=false)=0 |
| virtual void | modifyInstitution (const MyMoneyInstitution &institution)=0 |
| virtual void | modifyTransaction (const MyMoneyTransaction &transaction)=0 |
| virtual void | reparentAccount (MyMoneyAccount &account, MyMoneyAccount &parent)=0 |
| virtual void | removeTransaction (const MyMoneyTransaction &transaction)=0 |
| virtual unsigned int | transactionCount (const QCString &account=QCString()) const =0 |
| virtual const QMap< QCString, unsigned long > | transactionCountMap (void) const =0 |
| virtual const QValueList< MyMoneyTransaction > | transactionList (MyMoneyTransactionFilter &filter) const =0 |
| virtual void | transactionList (QValueList< MyMoneyTransaction > &list, MyMoneyTransactionFilter &filter) const =0 |
| virtual void | transactionList (QValueList< QPair< MyMoneyTransaction, MyMoneySplit > > &list, MyMoneyTransactionFilter &filter) const =0 |
| virtual void | removeAccount (const MyMoneyAccount &account)=0 |
| virtual void | removeInstitution (const MyMoneyInstitution &institution)=0 |
| virtual const MyMoneyTransaction | transaction (const QCString &id) const =0 |
| virtual const MyMoneyTransaction | transaction (const QCString &account, const int idx) const =0 |
| virtual unsigned int | institutionCount (void) const =0 |
| virtual void | accountList (QValueList< MyMoneyAccount > &list) const =0 |
| virtual const MyMoneyAccount | liability (void) const =0 |
| virtual const MyMoneyAccount | asset (void) const =0 |
| virtual const MyMoneyAccount | expense (void) const =0 |
| virtual const MyMoneyAccount | income (void) const =0 |
| virtual const MyMoneyAccount | equity (void) const =0 |
| virtual void | addSecurity (MyMoneySecurity &security)=0 |
| virtual void | modifySecurity (const MyMoneySecurity &security)=0 |
| virtual void | removeSecurity (const MyMoneySecurity &security)=0 |
| virtual const MyMoneySecurity | security (const QCString &id) const =0 |
| virtual const QValueList< MyMoneySecurity > | securityList (void) const =0 |
| virtual void | addPrice (const MyMoneyPrice &price)=0 |
| virtual void | removePrice (const MyMoneyPrice &price)=0 |
| virtual const MyMoneyPrice | price (const QCString &fromId, const QCString &toId, const QDate &date, const bool exactDate) const =0 |
| virtual const MyMoneyPriceList | priceList (void) const =0 |
| virtual void | addSchedule (MyMoneySchedule &sched)=0 |
| virtual void | modifySchedule (const MyMoneySchedule &sched)=0 |
| virtual void | removeSchedule (const MyMoneySchedule &sched)=0 |
| virtual const MyMoneySchedule | schedule (const QCString &id) const =0 |
| virtual 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 =0 |
| virtual const QValueList< MyMoneySchedule > | scheduleListEx (int scheduleTypes, int scheduleOcurrences, int schedulePaymentTypes, QDate startDate, const QCStringList &accounts=QCStringList()) const =0 |
| virtual void | addCurrency (const MyMoneySecurity ¤cy)=0 |
| virtual void | modifyCurrency (const MyMoneySecurity ¤cy)=0 |
| virtual void | removeCurrency (const MyMoneySecurity ¤cy)=0 |
| virtual const MyMoneySecurity | currency (const QCString &id) const =0 |
| virtual const QValueList< MyMoneySecurity > | currencyList (void) const =0 |
| virtual const QValueList< MyMoneyReport > | reportList (void) const =0 |
| virtual void | addReport (MyMoneyReport &report)=0 |
| virtual void | modifyReport (const MyMoneyReport &report)=0 |
| virtual unsigned | countReports (void) const =0 |
| virtual const MyMoneyReport | report (const QCString &id) const =0 |
| virtual void | removeReport (const MyMoneyReport &report)=0 |
| virtual const QValueList< MyMoneyBudget > | budgetList (void) const =0 |
| virtual void | addBudget (MyMoneyBudget &budget)=0 |
| virtual const MyMoneyBudget | budgetByName (const QString &budget) const =0 |
| virtual void | modifyBudget (const MyMoneyBudget &budget)=0 |
| virtual unsigned | countBudgets (void) const =0 |
| virtual MyMoneyBudget | budget (const QCString &id) const =0 |
| virtual void | removeBudget (const MyMoneyBudget &budget)=0 |
| virtual void | clearCache (void)=0 |
| virtual bool | isReferenced (const MyMoneyObject &obj, const MyMoneyFileBitArray &skipCheck=MyMoneyFileBitArray()) const =0 |
| virtual void | close (void)=0 |
| virtual void | startTransaction (void)=0 |
| virtual bool | commitTransaction (void)=0 |
| virtual void | rollbackTransaction (void)=0 |
|
|
|
|
|
|
|
|
|
|
|
Returns the account addressed by it's id. An exception will be thrown upon error conditions.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method returns the number of accounts currently known to this storage in the range 0..MAXUINT
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method returns a list of accounts inside the storage object.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
||||||||||||
|
This method is used to add one account as sub-ordinate to another (parent) account. The objects that are passed will be modified accordingly. An exception will be thrown upon error conditions.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method is used to create a new account An exception will be thrown upon error conditions.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
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.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
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.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
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.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method is used to create a new payee An exception will be thrown upon error conditions
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
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.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
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.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
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.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
||||||||||||
|
Adds a transaction to the file-global transaction pool. A respective transaction-ID will be generated within this record. The ID is stored QString with the object. An exception will be thrown upon error conditions.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method is used to return the standard asset account
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
||||||||||||
|
This method is used to return the actual balance of an account without it's sub-ordinate accounts. If a
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
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.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method is used to retrieve the id to a corresponding name of a budget An exception will be thrown upon error conditions.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method is used to retrieve the list of all budgets known to the engine. An exception will be thrown upon erronous situations.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
Clear all internal caches (used internally for performance measurements) Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method is provided to allow closing of the database before logoff Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method returns the number of budgets currently known to file in the range 0..MAXUINT
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method returns the number of reports currently known to file in the range 0..MAXUINT
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method is used to retrieve a single MyMoneySecurity object. The id of the object must be supplied in the parameter An exception will be thrown upon erronous situations.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method is used to retrieve the list of all currencies known to the engine. An exception will be thrown upon erronous situations.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method returns an indicator if the storage object has been changed after it has last been saved to permanent storage.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method is used to duplicate an IMyMoneyStorage 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. Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method is used to return the standard equity account
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method is used to return the standard expense account
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method is used to determince, if the account with the given ID is referenced by any split in m_transactionList. An exception will be thrown upon error conditions.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method is used to return the standard income account
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
Returns the institution of a given ID
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method returns the number of institutions currently known to file in the range 0..MAXUINT
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method returns a list of the institutions inside a MyMoneyStorage object
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
||||||||||||
|
This method checks, if the given
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method is used to check whether a given account id references one of the standard accounts or not. An exception will be thrown upon error conditions.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method is used to return the standard liability account
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
||||||||||||
|
Modifies an already existing account in the file global account pool. An exception will be thrown upon error conditions.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method is used to modify an existing MyMoneyBudget object. Therefor, the id attribute of the object must be set. An exception will be thrown upon erronous situations.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method is used to modify an existing MyMoneySecurity object. An exception will be thrown upon erronous situations.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
Modifies an already existing institution in the file global institution pool. An exception will be thrown upon error conditions.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method is used to modify an existing payee An exception will be thrown upon error conditions
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method is used to modify an existing MyMoneyReport object. Therefor, the id attribute of the object must be set. An exception will be thrown upon erronous situations.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method is used to modify an existing MyMoneySchedule object. Therefor, the id attribute of the object must be set. An exception will be thrown upon erronous situations.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method is used to modify an existing MyMoneySecurity object. An exception will be thrown upon erronous situations.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method is used to update a specific transaction in the transaction pool of the MyMoneyFile object An exception will be thrown upon error conditions.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method is used to retrieve information about a payee An exception will be thrown upon error conditions.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method is used to retrieve the id to a corresponding name of a payee/receiver. An exception will be thrown upon error conditions.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method returns a list of the payees inside a MyMoneyStorage object
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
||||||||||||||||||||
|
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method returns a list of all prices.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
Deletes an existing account from the file global account pool This method only allows to remove accounts that are not referenced by any split. Use moveSplits() to move splits to another account. An exception is thrown in case of a problem.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method is used to remove an existing MyMoneyBudget object from the engine. The id attribute of the object must be set. An exception will be thrown upon erronous situations.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method is used to remove an existing MyMoneySecurity object from the engine. An exception will be thrown upon erronous situations.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
Deletes an existing institution from the file global institution pool Also modifies the accounts that reference this institution as their institution. An exception will be thrown upon error conditions.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method is used to remove an existing payee An exception will be thrown upon error conditions
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method is used to remove an existing MyMoneyReport object from the engine. The id attribute of the object must be set. An exception will be thrown upon erronous situations.
Implemented in MyMoneyDatabaseMgr, and MyMoneySeqAccessMgr. |
|
|
This method is used to remove an existing MyMoneySchedule object from the engine. The id attribute of the object must be set. An exception will be thrown upon erronous situations.
|