summaryrefslogtreecommitdiffstats
path: root/kmymoney2/mymoney/storage/imymoneystorage.h
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/mymoney/storage/imymoneystorage.h')
-rw-r--r--kmymoney2/mymoney/storage/imymoneystorage.h170
1 files changed, 85 insertions, 85 deletions
diff --git a/kmymoney2/mymoney/storage/imymoneystorage.h b/kmymoney2/mymoney/storage/imymoneystorage.h
index a4e55dd..a4ff2af 100644
--- a/kmymoney2/mymoney/storage/imymoneystorage.h
+++ b/kmymoney2/mymoney/storage/imymoneystorage.h
@@ -26,8 +26,8 @@
// ----------------------------------------------------------------------------
// QT Includes
-#include <qstring.h>
-#include <qbitarray.h>
+#include <tqstring.h>
+#include <tqbitarray.h>
// ----------------------------------------------------------------------------
// Project Includes
@@ -48,15 +48,15 @@
/**
* @author Thomas Baumgart
*
- * A simple replacement for QBitArray that does not bark if testBit()
+ * A simple replacement for TQBitArray that does not bark if testBit()
* is called with an index out of bounds. It silently returns false
* in that case, otherwise calls the base classes implementation.
*/
-class MyMoneyFileBitArray : public QBitArray
+class MyMoneyFileBitArray : public TQBitArray
{
public:
- MyMoneyFileBitArray() : QBitArray() {}
- MyMoneyFileBitArray(int size) : QBitArray(size) {}
+ MyMoneyFileBitArray() : TQBitArray() {}
+ MyMoneyFileBitArray(int size) : TQBitArray(size) {}
bool testBit(uint index) const;
bool operator[](int index) const { return testBit(index); }
bool at(uint index) const { return testBit(index); }
@@ -96,15 +96,15 @@ public:
#define STD_ACC_ASSET "AStd::Asset"
#define STD_ACC_EXPENSE "AStd::Expense"
#define STD_ACC_INCOME "AStd::Income"
-#define STD_ACC_EQUITY "AStd::Equity"
+#define STD_ACC_ETQUITY "AStd::Equity"
IMyMoneyStorage();
virtual ~IMyMoneyStorage();
// general get functions
virtual const MyMoneyPayee user(void) const = 0;
- virtual const QDate creationDate(void) const = 0;
- virtual const QDate lastModificationDate(void) const = 0;
+ virtual const TQDate creationDate(void) const = 0;
+ virtual const TQDate lastModificationDate(void) const = 0;
virtual unsigned int currentFixVersion(void) const = 0;
virtual unsigned int fileFixVersion(void) const = 0;
@@ -113,9 +113,9 @@ public:
virtual void setFileFixVersion(const unsigned int v) = 0;
// methods provided by MyMoneyKeyValueContainer
- virtual void setValue(const QString& key, const QString& value) = 0;
- virtual const QString value(const QString& key) const = 0;
- virtual void deletePair(const QString& key) = 0;
+ virtual void setValue(const TQString& key, const TQString& value) = 0;
+ virtual const TQString value(const TQString& key) const = 0;
+ virtual void deletePair(const TQString& key) = 0;
/**
* This method is used to duplicate an IMyMoneyStorage object and return
@@ -135,15 +135,15 @@ public:
/**
* This method is used to add one account as sub-ordinate to another
- * (parent) account. The objects that are passed will be modified
+ * (tqparent) account. The objects that are passed will be modified
* accordingly.
*
* An exception will be thrown upon error conditions.
*
- * @param parent parent account the account should be added to
+ * @param tqparent tqparent account the account should be added to
* @param account the account to be added
*/
- virtual void addAccount(MyMoneyAccount& parent, MyMoneyAccount& account) = 0;
+ virtual void addAccount(MyMoneyAccount& tqparent, MyMoneyAccount& account) = 0;
/**
* This method is used to create a new payee
@@ -158,22 +158,22 @@ public:
* This method is used to retrieve information about a payee
* An exception will be thrown upon error conditions.
*
- * @param id QString reference to id of payee
+ * @param id TQString reference to id of payee
*
* @return MyMoneyPayee object of payee
*/
- virtual const MyMoneyPayee payee(const QString& id) const = 0;
+ virtual const MyMoneyPayee payee(const TQString& id) const = 0;
/**
* This method is used to retrieve the id to a corresponding
* name of a payee/receiver.
* An exception will be thrown upon error conditions.
*
- * @param payee QString reference to name of payee
+ * @param payee TQString reference to name of payee
*
* @return MyMoneyPayee object of payee
*/
- virtual const MyMoneyPayee payeeByName(const QString& payee) const = 0;
+ virtual const MyMoneyPayee payeeByName(const TQString& payee) const = 0;
/**
* This method is used to modify an existing payee
@@ -197,9 +197,9 @@ public:
* This method returns a list of the payees
* inside a MyMoneyStorage object
*
- * @return QValueList<MyMoneyPayee> containing the payee information
+ * @return TQValueList<MyMoneyPayee> containing the payee information
*/
- virtual const QValueList<MyMoneyPayee> payeeList(void) const = 0;
+ virtual const TQValueList<MyMoneyPayee> payeeList(void) const = 0;
/**
* Returns the account addressed by it's id.
@@ -210,7 +210,7 @@ public:
* @return reference to MyMoneyAccount object. An exception is thrown
* if the id is unknown
*/
- virtual const MyMoneyAccount account(const QString& id) const = 0;
+ virtual const MyMoneyAccount account(const TQString& id) const = 0;
/**
* This method is used to check whether a given
@@ -221,23 +221,23 @@ public:
* @param id account id
* @return true if account-id is one of the standards, false otherwise
*/
- virtual bool isStandardAccount(const QString& id) const = 0;
+ virtual bool isStandardAccount(const TQString& id) const = 0;
/**
* This method is used to set the name for the specified standard account
* within the storage area. An exception will be thrown, if an error
* occurs
*
- * @param id QString reference to one of the standard accounts.
- * @param name QString reference to the name to be set
+ * @param id TQString reference to one of the standard accounts.
+ * @param name TQString reference to the name to be set
*
*/
- virtual void setAccountName(const QString& id, const QString& name) = 0;
+ virtual void setAccountName(const TQString& id, const TQString& name) = 0;
/**
* 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.
+ * The ID is stored as TQString in the object passed as argument.
*
* An exception will be thrown upon error conditions.
*
@@ -249,7 +249,7 @@ public:
/**
* 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.
+ * TQString with the object.
*
* An exception will be thrown upon error conditions.
*
@@ -269,7 +269,7 @@ public:
* @param id id of the account to be checked for
* @return true if account is referenced, false otherwise
*/
- virtual bool hasActiveSplits(const QString& id) const = 0;
+ virtual bool hasActiveSplits(const TQString& id) const = 0;
/**
* This method is used to return the actual balance of an account
@@ -282,7 +282,7 @@ public:
* @param date return balance for specific date
* @return balance of the account as MyMoneyMoney object
*/
- virtual const MyMoneyMoney balance(const QString& id, const QDate& date) const= 0;
+ virtual const MyMoneyMoney balance(const TQString& id, const TQDate& date) const= 0;
/**
* This method is used to return the actual balance of an account
@@ -295,7 +295,7 @@ public:
* @param date return balance for specific date
* @return balance of the account as MyMoneyMoney object
*/
- virtual const MyMoneyMoney totalBalance(const QString& id, const QDate& date) const = 0;
+ virtual const MyMoneyMoney totalBalance(const TQString& id, const TQDate& date) const = 0;
/**
* Returns the institution of a given ID
@@ -304,7 +304,7 @@ public:
* @return MyMoneyInstitution object filled with data. If the institution
* could not be found, an exception will be thrown
*/
- virtual const MyMoneyInstitution institution(const QString& id) const = 0;
+ virtual const MyMoneyInstitution institution(const TQString& id) const = 0;
/**
* This method returns an indicator if the storage object has been
@@ -334,10 +334,10 @@ public:
* This method returns a list of the institutions
* inside a MyMoneyStorage object
*
- * @return QValueList<MyMoneyInstitution> containing the
+ * @return TQValueList<MyMoneyInstitution> containing the
* institution information
*/
- virtual const QValueList<MyMoneyInstitution> institutionList(void) const = 0;
+ virtual const TQValueList<MyMoneyInstitution> institutionList(void) const = 0;
/**
* Modifies an already existing account in the file global account pool.
@@ -370,14 +370,14 @@ public:
virtual void modifyTransaction(const MyMoneyTransaction& transaction) = 0;
/**
- * This method re-parents an existing account
+ * This method re-tqparents an existing account
*
* An exception will be thrown upon error conditions.
*
- * @param account MyMoneyAccount reference to account to be re-parented
- * @param parent MyMoneyAccount reference to new parent account
+ * @param account MyMoneyAccount reference to account to be re-tqparented
+ * @param tqparent MyMoneyAccount reference to new tqparent account
*/
- virtual void reparentAccount(MyMoneyAccount &account, MyMoneyAccount& parent) = 0;
+ virtual void reparentAccount(MyMoneyAccount &account, MyMoneyAccount& tqparent) = 0;
/**
* This method is used to remove a transaction from the transaction
@@ -393,25 +393,25 @@ public:
* This method returns the number of transactions currently known to file
* in the range 0..MAXUINT
*
- * @param account QString reference to account id. If account is empty
+ * @param account TQString reference to account id. If account is empty
+ all transactions (the journal) will be counted. If account
* is not empty it returns the number of transactions
* that have splits in this account.
*
* @return number of transactions in journal/account
*/
- virtual unsigned int transactionCount(const QString& account = QString()) const = 0;
+ virtual unsigned int transactionCount(const TQString& account = TQString()) const = 0;
/**
- * This method returns a QMap filled with the number of transactions
+ * This method returns a TQMap filled with the number of transactions
* per account. The account id serves as index into the map. If one
* needs to have all transactionCounts() for many accounts, this method
- * is faster than calling transactionCount(const QString& account) many
+ * is faster than calling transactionCount(const TQString& account) many
* times.
*
- * @return QMap with numbers of transactions per account
+ * @return TQMap with numbers of transactions per account
*/
- virtual const QMap<QString, unsigned long> transactionCountMap(void) const = 0;
+ virtual const TQMap<TQString, unsigned long> transactionCountMap(void) const = 0;
/**
* This method is used to pull a list of transactions from the file
@@ -424,13 +424,13 @@ public:
*
* @param filter MyMoneyTransactionFilter object with the match criteria
*
- * @return set of transactions in form of a QValueList<MyMoneyTransaction>
+ * @return set of transactions in form of a TQValueList<MyMoneyTransaction>
*/
- virtual const QValueList<MyMoneyTransaction> transactionList(MyMoneyTransactionFilter& filter) const = 0;
+ virtual const TQValueList<MyMoneyTransaction> transactionList(MyMoneyTransactionFilter& filter) const = 0;
- virtual void transactionList(QValueList<MyMoneyTransaction>& list, MyMoneyTransactionFilter& filter) const = 0;
+ virtual void transactionList(TQValueList<MyMoneyTransaction>& list, MyMoneyTransactionFilter& filter) const = 0;
- virtual void transactionList(QValueList<QPair<MyMoneyTransaction, MyMoneySplit> >& list, MyMoneyTransactionFilter& filter) const = 0;
+ virtual void transactionList(TQValueList<TQPair<MyMoneyTransaction, MyMoneySplit> >& list, MyMoneyTransactionFilter& filter) const = 0;
/**
* Deletes an existing account from the file global account pool
@@ -459,20 +459,20 @@ public:
* transaction pool through an id. In case of an invalid id, an
* exception will be thrown.
*
- * @param id id of transaction as QString.
+ * @param id id of transaction as TQString.
* @return reference to the requested transaction
*/
- virtual const MyMoneyTransaction transaction(const QString& id) const = 0;
+ virtual const MyMoneyTransaction transaction(const TQString& id) const = 0;
/**
* This method is used to extract a transaction from the file global
* transaction pool through an index into an account.
*
- * @param account id of the account as QString
+ * @param account id of the account as TQString
* @param idx number of transaction in this account
* @return reference to MyMoneyTransaction object
*/
- virtual const MyMoneyTransaction transaction(const QString& account, const int idx) const = 0;
+ virtual const MyMoneyTransaction transaction(const TQString& account, const int idx) const = 0;
/**
* This method returns the number of institutions currently known to file
@@ -485,11 +485,11 @@ public:
/**
* This method returns a list of accounts inside the storage object.
*
- * @param list reference to QValueList receiving the account objects
+ * @param list reference to TQValueList receiving the account objects
*
* @note The standard accounts will not be returned
*/
- virtual void accountList(QValueList<MyMoneyAccount>& list) const = 0;
+ virtual void accountList(TQValueList<MyMoneyAccount>& list) const = 0;
/**
* This method is used to return the standard liability account
@@ -558,22 +558,22 @@ public:
*
* An exception will be thrown upon erronous situations.
*
- * @param id QString containing the id of the MyMoneySecurity object
+ * @param id TQString containing the id of the MyMoneySecurity object
* @return MyMoneySecurity object
*/
- virtual const MyMoneySecurity security(const QString& id) const = 0;
+ virtual const MyMoneySecurity security(const TQString& id) const = 0;
/**
* This method returns a list of the security objects
* inside a MyMoneyStorage object
*
- * @return QValueList<MyMoneySecurity> containing objects
+ * @return TQValueList<MyMoneySecurity> containing objects
*/
- virtual const QValueList<MyMoneySecurity> securityList(void) const = 0;
+ virtual const TQValueList<MyMoneySecurity> securityList(void) const = 0;
virtual void addPrice(const MyMoneyPrice& price) = 0;
virtual void removePrice(const MyMoneyPrice& price) = 0;
- virtual const MyMoneyPrice price(const QString& fromId, const QString& toId, const QDate& date, const bool exactDate) const = 0;
+ virtual const MyMoneyPrice price(const TQString& fromId, const TQString& toId, const TQDate& date, const bool exactDate) const = 0;
/**
* This method returns a list of all prices.
@@ -620,10 +620,10 @@ public:
*
* An exception will be thrown upon erronous situations.
*
- * @param id QString containing the id of the MyMoneySchedule object
+ * @param id TQString containing the id of the MyMoneySchedule object
* @return MyMoneySchedule object
*/
- virtual const MyMoneySchedule schedule(const QString& id) const = 0;
+ virtual const MyMoneySchedule schedule(const TQString& id) const = 0;
/**
* This method is used to extract a list of scheduled transactions
@@ -631,7 +631,7 @@ public:
*
* @param accountId only search for scheduled transactions that reference
* accound @p accountId. If accountId is the empty string,
- * this filter is off. Default is @p QString().
+ * this filter is off. Default is @p TQString().
* @param type only schedules of type @p type are searched for.
* See MyMoneySchedule::typeE for details.
* Default is MyMoneySchedule::TYPE_ANY
@@ -643,27 +643,27 @@ public:
* See MyMoneySchedule::paymentTypeE for details.
* Default is MyMoneySchedule::STYPE_ANY
* @param startDate only schedules with payment dates after @p startDate
- * are searched for. Default is all dates (QDate()).
+ * are searched for. Default is all dates (TQDate()).
* @param endDate only schedules with payment dates ending prior to @p endDate
- * are searched for. Default is all dates (QDate()).
+ * are searched for. Default is all dates (TQDate()).
* @param overdue if true, only those schedules that are overdue are
* searched for. Default is false (all schedules will be returned).
*
- * @return const QValueList<MyMoneySchedule> list of schedule objects.
+ * @return const TQValueList<MyMoneySchedule> list of schedule objects.
*/
- virtual const QValueList<MyMoneySchedule> scheduleList(const QString& accountId = QString(),
+ virtual const TQValueList<MyMoneySchedule> scheduleList(const TQString& accountId = TQString(),
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 TQDate& startDate = TQDate(),
+ const TQDate& endDate = TQDate(),
const bool overdue = false) const = 0;
- virtual const QValueList<MyMoneySchedule> scheduleListEx( int scheduleTypes,
+ virtual const TQValueList<MyMoneySchedule> scheduleListEx( int scheduleTypes,
int scheduleOcurrences,
int schedulePaymentTypes,
- QDate startDate,
- const QStringList& accounts=QStringList()) const = 0;
+ TQDate startDate,
+ const TQStringList& accounts=TQStringList()) const = 0;
/**
* This method is used to add a new currency object to the engine.
@@ -702,10 +702,10 @@ public:
*
* An exception will be thrown upon erronous situations.
*
- * @param id QString containing the id of the MyMoneySecurity object
+ * @param id TQString containing the id of the MyMoneySecurity object
* @return MyMoneyCurrency object
*/
- virtual const MyMoneySecurity currency(const QString& id) const = 0;
+ virtual const MyMoneySecurity currency(const TQString& id) const = 0;
/**
* This method is used to retrieve the list of all currencies
@@ -713,9 +713,9 @@ public:
*
* An exception will be thrown upon erronous situations.
*
- * @return QValueList of all MyMoneySecurity objects representing a currency.
+ * @return TQValueList of all MyMoneySecurity objects representing a currency.
*/
- virtual const QValueList<MyMoneySecurity> currencyList(void) const = 0;
+ virtual const TQValueList<MyMoneySecurity> currencyList(void) const = 0;
/**
* This method is used to retrieve the list of all reports
@@ -723,9 +723,9 @@ public:
*
* An exception will be thrown upon erronous situations.
*
- * @return QValueList of all MyMoneyReport objects.
+ * @return TQValueList of all MyMoneyReport objects.
*/
- virtual const QValueList<MyMoneyReport> reportList( void ) const = 0;
+ virtual const TQValueList<MyMoneyReport> reportList( void ) const = 0;
/**
* This method is used to add a new report to the engine.
@@ -763,10 +763,10 @@ public:
*
* An exception will be thrown upon erronous situations.
*
- * @param id QString containing the id of the MyMoneyReport object
+ * @param id TQString containing the id of the MyMoneyReport object
* @return MyMoneyReport object
*/
- virtual const MyMoneyReport report( const QString& id ) const = 0;
+ virtual const MyMoneyReport report( const TQString& id ) const = 0;
/**
* This method is used to remove an existing MyMoneyReport object
@@ -784,9 +784,9 @@ public:
*
* An exception will be thrown upon erronous situations.
*
- * @return QValueList of all MyMoneyBudget objects.
+ * @return TQValueList of all MyMoneyBudget objects.
*/
- virtual const QValueList<MyMoneyBudget> budgetList( void ) const = 0;
+ virtual const TQValueList<MyMoneyBudget> budgetList( void ) const = 0;
/**
* This method is used to add a new budget to the engine.
@@ -805,11 +805,11 @@ public:
* name of a budget
* An exception will be thrown upon error conditions.
*
- * @param budget QString reference to name of budget
+ * @param budget TQString reference to name of budget
*
* @return MyMoneyBudget object of budget
*/
- virtual const MyMoneyBudget budgetByName(const QString& budget) const = 0;
+ virtual const MyMoneyBudget budgetByName(const TQString& budget) const = 0;
/**
* This method is used to modify an existing MyMoneyBudget
@@ -835,10 +835,10 @@ public:
*
* An exception will be thrown upon erronous situations.
*
- * @param id QString containing the id of the MyMoneyBudget object
+ * @param id TQString containing the id of the MyMoneyBudget object
* @return MyMoneyBudget object
*/
- virtual MyMoneyBudget budget( const QString& id ) const = 0;
+ virtual MyMoneyBudget budget( const TQString& id ) const = 0;
/**
* This method is used to remove an existing MyMoneyBudget object