summaryrefslogtreecommitdiffstats
path: root/kmymoney2/mymoney/mymoneyaccount.h
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/mymoney/mymoneyaccount.h')
-rw-r--r--kmymoney2/mymoney/mymoneyaccount.h150
1 files changed, 75 insertions, 75 deletions
diff --git a/kmymoney2/mymoney/mymoneyaccount.h b/kmymoney2/mymoney/mymoneyaccount.h
index 333c500..30e1185 100644
--- a/kmymoney2/mymoney/mymoneyaccount.h
+++ b/kmymoney2/mymoney/mymoneyaccount.h
@@ -24,12 +24,12 @@
// ----------------------------------------------------------------------------
// QT Includes
-#include <qstring.h>
-#include <qdatetime.h>
-#include <qvaluelist.h>
-#include <qstringlist.h>
-#include <qdom.h>
-#include <qpixmap.h>
+#include <tqstring.h>
+#include <tqdatetime.h>
+#include <tqvaluelist.h>
+#include <tqstringlist.h>
+#include <tqdom.h>
+#include <tqpixmap.h>
// ----------------------------------------------------------------------------
// Project Includes
@@ -122,16 +122,16 @@ public:
* @param id id assigned to the account
* @param right account definition
*/
- MyMoneyAccount(const QString& id, const MyMoneyAccount& right);
+ MyMoneyAccount(const TQString& id, const MyMoneyAccount& right);
/**
* This is the constructor for an account that is described by a
- * QDomElement (e.g. from a file).
+ * TQDomElement (e.g. from a file).
*
- * @param el const reference to the QDomElement from which to
+ * @param el const reference to the TQDomElement from which to
* create the object
*/
- MyMoneyAccount(const QDomElement& el);
+ MyMoneyAccount(const TQDomElement& el);
/**
* This is the destructor for any MyMoneyAccount object
@@ -182,66 +182,66 @@ public:
/**
* This method returns the id of the MyMoneyInstitution object this account
* belongs to.
- * @return id of MyMoneyInstitution object. QString() if it is
+ * @return id of MyMoneyInstitution object. TQString() if it is
* an internal account
* @see setInstitution
*/
- const QString& institutionId(void) const { return m_institution; }
+ const TQString& institutionId(void) const { return m_institution; }
/**
* This method returns the name of the account
* @return name of account
* @see setName()
*/
- const QString& name(void) const { return m_name; }
+ const TQString& name(void) const { return m_name; }
/**
* This method returns the number of the account at the institution
* @return number of account at the institution
* @see setNumber
*/
- const QString& number(void) const { return m_number; }
+ const TQString& number(void) const { return m_number; }
/**
* This method returns the descriptive text of the account.
* @return description of account
* @see setDescription
*/
- const QString& description(void) const { return m_description; }
+ const TQString& description(void) const { return m_description; }
/**
* This method returns the opening date of this account
- * @return date of opening of this account as const QDate value
+ * @return date of opening of this account as const TQDate value
* @see setOpeningDate()
*/
- const QDate& openingDate(void) const { return m_openingDate; }
+ const TQDate& openingDate(void) const { return m_openingDate; }
/**
* This method returns the date of the last reconciliation of this account
- * @return date of last reconciliation as const QDate value
+ * @return date of last reconciliation as const TQDate value
* @see setLastReconciliationDate
*/
- const QDate& lastReconciliationDate(void) const { return m_lastReconciliationDate; }
+ const TQDate& lastReconciliationDate(void) const { return m_lastReconciliationDate; }
/**
* This method returns the date the account was last modified
- * @return date of last modification as const QDate value
+ * @return date of last modification as const TQDate value
* @see setLastModified
*/
- const QDate& lastModified(void) const { return m_lastModified; }
+ const TQDate& lastModified(void) const { return m_lastModified; }
/**
- * This method is used to return the ID of the parent account
- * @return QString with the ID of the parent of this account
+ * This method is used to return the ID of the tqparent account
+ * @return TQString with the ID of the tqparent of this account
*/
- const QString& parentAccountId(void) const { return m_parentAccount; };
+ const TQString& tqparentAccountId(void) const { return m_parentAccount; };
/**
* This method returns the list of the account id's of
* subordinate accounts
- * @return QStringList account ids
+ * @return TQStringList account ids
*/
- const QStringList& accountList(void) const { return m_accountList; };
+ const TQStringList& accountList(void) const { return m_accountList; };
/**
* This method returns the number of entries in the m_accountList
@@ -251,16 +251,16 @@ public:
/**
* This method is used to add an account id as sub-ordinate account
- * @param account const QString reference to account ID
+ * @param account const TQString reference to account ID
*/
- void addAccountId(const QString& account);
+ void addAccountId(const TQString& account);
/**
* This method is used to remove an account from the list of
* sub-ordinate accounts.
- * @param account const QString reference to account ID to be removed
+ * @param account const TQString reference to account ID to be removed
*/
- void removeAccountId(const QString& account);
+ void removeAccountId(const TQString& account);
/**
* This method is used to remove all accounts from the list of
@@ -274,21 +274,21 @@ public:
* @param date date of last modification
* @see lastModified
*/
- void setLastModified(const QDate& date);
+ void setLastModified(const TQDate& date);
/**
* This method is used to set the name of the account
* @param name name of the account
* @see name
*/
- void setName(const QString& name);
+ void setName(const TQString& name);
/**
* This method is used to set the number of the account at the institution
* @param number number of the account
* @see number
*/
- void setNumber(const QString& number);
+ void setNumber(const TQString& number);
/**
* This method is used to set the descriptive text of the account
@@ -296,7 +296,7 @@ public:
* @param desc text that serves as description
* @see setDescription
*/
- void setDescription(const QString& desc);
+ void setDescription(const TQString& desc);
/**
* This method is used to set the id of the institution this account
@@ -305,24 +305,24 @@ public:
* @param id id of the institution this account belongs to
* @see institution
*/
- void setInstitutionId(const QString& id);
+ void setInstitutionId(const TQString& id);
/**
* This method is used to set the opening date information of an
* account.
*
- * @param date QDate of opening date
+ * @param date TQDate of opening date
* @see openingDate
*/
- void setOpeningDate(const QDate& date);
+ void setOpeningDate(const TQDate& date);
/**
* This method is used to set the date of the last reconciliation
* of an account.
- * @param date QDate of last reconciliation
+ * @param date TQDate of last reconciliation
* @see lastReconciliationDate
*/
- void setLastReconciliationDate(const QDate& date);
+ void setLastReconciliationDate(const TQDate& date);
/**
* This method is used to change the account type
@@ -332,15 +332,15 @@ public:
void setAccountType(const accountTypeE type);
/**
- * This method is used to set a new parent account id
- * @param parent QString reference to new parent account
+ * This method is used to set a new tqparent account id
+ * @param tqparent TQString reference to new tqparent account
*/
- void setParentAccountId(const QString& parent);
+ void setParentAccountId(const TQString& tqparent);
/**
* This method is used to update m_lastModified to the current date
*/
- void touch(void) { setLastModified(QDate::currentDate()); }
+ void touch(void) { setLastModified(TQDate::tqcurrentDate()); }
/**
* This method returns the type of the account.
@@ -353,16 +353,16 @@ public:
*
* @return id of currency
*/
- const QString& currencyId(void) const { return m_currencyId; };
+ const TQString& currencyId(void) const { return m_currencyId; };
/**
* This method sets the id of the currency used with this account.
*
* @param id ID of currency to be associated with this account.
*/
- void setCurrencyId(const QString& id);
+ void setCurrencyId(const TQString& id);
- void writeXML(QDomDocument& document, QDomElement& parent) const;
+ void writeXML(TQDomDocument& document, TQDomElement& tqparent) const;
/**
* This method checks if a reference to the given object exists. It returns,
@@ -373,7 +373,7 @@ public:
* @retval true This object references object with id @p id.
* @retval false This object does not reference the object with id @p id.
*/
- virtual bool hasReferenceTo(const QString& id) const;
+ virtual bool hasReferenceTo(const TQString& id) const;
/**
* This member returns the balance of this account based on
@@ -514,13 +514,13 @@ public:
* the current name. It only works on investment accounts and
* returns the name for all other cases.
*/
- QString brokerageName(void) const;
+ TQString brokerageName(void) const;
/**
* @param size is a hint for the size of the icon
* @return a pixmap using DesktopIcon for the account type
*/
- QPixmap accountPixmap(bool reconcileFlag = false, int size = 0) const;
+ TQPixmap accountPixmap(bool reconcileFlag = false, int size = 0) const;
/**
* This method is used to convert the internal representation of
@@ -528,12 +528,12 @@ public:
*
* @param accountType numerical representation of the account type.
* For possible values, see MyMoneyAccount::accountTypeE
- * @return QString representing the human readable form
+ * @return TQString representing the human readable form
*/
- static QString accountTypeToString(const MyMoneyAccount::accountTypeE accountType);
+ static TQString accountTypeToString(const MyMoneyAccount::accountTypeE accountType);
- KMYMONEY_EXPORT QDataStream &operator<<( const MyMoneyAccount & );
- KMYMONEY_EXPORT QDataStream &operator>>( MyMoneyAccount & );
+ KMYMONEY_EXPORT TQDataStream &operator<<( const MyMoneyAccount & );
+ KMYMONEY_EXPORT TQDataStream &operator>>( MyMoneyAccount & );
private:
/**
@@ -545,61 +545,61 @@ private:
* This member variable keeps the ID of the MyMoneyInstitution object
* that this object belongs to.
*/
- QString m_institution;
+ TQString m_institution;
/**
* This member variable keeps the name of the account
* It is solely for documentation purposes and it's contents is not
* used otherwise by the mymoney-engine.
*/
- QString m_name;
+ TQString m_name;
/**
* This member variable keeps the account number at the institution
* It is solely for documentation purposes and it's contents is not
* used otherwise by the mymoney-engine.
*/
- QString m_number;
+ TQString m_number;
/**
* This member variable is a description of the account.
* It is solely for documentation purposes and it's contents is not
* used otherwise by the mymoney-engine.
*/
- QString m_description;
+ TQString m_description;
/**
* This member variable keeps the date when the account
* was last modified.
*/
- QDate m_lastModified;
+ TQDate m_lastModified;
/**
* This member variable keeps the date when the
* account was created as an object in a MyMoneyFile
*/
- QDate m_openingDate;
+ TQDate m_openingDate;
/**
* This member variable keeps the date of the last
* reconciliation of this account
*/
- QDate m_lastReconciliationDate;
+ TQDate m_lastReconciliationDate;
/**
* This member holds the ID's of all sub-ordinate accounts
*/
- QStringList m_accountList;
+ TQStringList m_accountList;
/**
- * This member contains the ID of the parent account
+ * This member contains the ID of the tqparent account
*/
- QString m_parentAccount;
+ TQString m_parentAccount;
/**
* This member contains the ID of the currency associated with this account
*/
- QString m_currencyId;
+ TQString m_currencyId;
/**
* This member holds the balance of all transactions stored in the journal
@@ -649,14 +649,14 @@ public:
const MyMoneyMoney loanAmount(void) const;
void setLoanAmount(const MyMoneyMoney& amount);
- const MyMoneyMoney interestRate(const QDate& date) const;
- void setInterestRate(const QDate& date, const MyMoneyMoney& rate);
+ const MyMoneyMoney interestRate(const TQDate& date) const;
+ void setInterestRate(const TQDate& date, const MyMoneyMoney& rate);
interestDueE interestCalculation(void) const;
void setInterestCalculation(const interestDueE onReception);
- const QDate nextInterestChange(void) const;
- void setNextInterestChange(const QDate& date);
- const QString schedule(void) const;
- void setSchedule(const QString& sched);
+ const TQDate nextInterestChange(void) const;
+ void setNextInterestChange(const TQDate& date);
+ const TQString schedule(void) const;
+ void setSchedule(const TQString& sched);
bool fixedInterestRate(void) const;
void setFixedInterestRate(const bool fixed);
const MyMoneyMoney finalPayment(void) const;
@@ -669,10 +669,10 @@ public:
void setPeriodicPayment(const MyMoneyMoney& payment);
int interestCompounding(void) const;
void setInterestCompounding(int frequency);
- const QString payee(void) const;
- void setPayee(const QString& payee);
- const QString interestAccountId(void) const;
- void setInterestAccountId(const QString& id);
+ const TQString payee(void) const;
+ void setPayee(const TQString& payee);
+ const TQString interestAccountId(void) const;
+ void setInterestAccountId(const TQString& id);
/**
* This method checks if a reference to the given object exists. It returns,
@@ -683,7 +683,7 @@ public:
* @retval true This object references object with id @p id.
* @retval false This object does not reference the object with id @p id.
*/
- virtual bool hasReferenceTo(const QString& id) const;
+ virtual bool hasReferenceTo(const TQString& id) const;
};