diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kplato/kptaccount.h | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kplato/kptaccount.h')
-rw-r--r-- | kplato/kptaccount.h | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/kplato/kptaccount.h b/kplato/kptaccount.h index 845f70d6..9e23b8e7 100644 --- a/kplato/kptaccount.h +++ b/kplato/kptaccount.h @@ -20,18 +20,18 @@ #ifndef KPTACCOUNT_H #define KPTACCOUNT_H -#include <qdatetime.h> -#include <qdict.h> -#include <qptrlist.h> -#include <qstringlist.h> +#include <tqdatetime.h> +#include <tqdict.h> +#include <tqptrlist.h> +#include <tqstringlist.h> #include "kpteffortcostmap.h" #include "kptnode.h" #include <kdebug.h> -class QDomElement; -class QString; +class TQDomElement; +class TQString; namespace KPlato { @@ -57,7 +57,7 @@ public: /** * */ - Account(QString name, QString description=QString::null); + Account(TQString name, TQString description=TQString()); /** * Destructor. @@ -65,32 +65,32 @@ public: ~Account(); - QString name() const { return m_name; } - void setName(QString name); + TQString name() const { return m_name; } + void setName(TQString name); - QString description() const { return m_description; } - void setDescription(QString desc) { m_description = desc; } + TQString description() const { return m_description; } + void setDescription(TQString desc) { m_description = desc; } bool isElement() const { return m_accountList.isEmpty(); } Accounts *list() const { return m_list; } void setList(Accounts *list) { m_list = list; } - Account *parent() const { return m_parent; } - void setParent(Account *parent) { m_parent = parent; } + Account *tqparent() const { return m_parent; } + void setParent(Account *tqparent) { m_parent = tqparent; } void clear() { m_accountList.clear(); } void append(Account *account); void take(Account *account); void insertChildren(); - bool load(QDomElement &element, const Project &project); - void save(QDomElement &element) const; + bool load(TQDomElement &element, const Project &project); + void save(TQDomElement &element) const; - const QPtrList<Account> &accountList() const { return m_accountList; } + const TQPtrList<Account> &accountList() const { return m_accountList; } Account *findAccount() const { return findAccount(m_name); } - Account *findAccount(const QString &id) const; + Account *findAccount(const TQString &id) const; bool removeId() { return removeId(m_name); } - bool removeId(const QString &id); + bool removeId(const TQString &id); bool insertId(); bool insertId(const Account *account); @@ -130,12 +130,12 @@ public: bool shutdown() const { return m_shutdown; } void setShutdown(bool on); - bool load(QDomElement &element, const Project &project); - void save(QDomElement &element) const; + bool load(TQDomElement &element, const Project &project); + void save(TQDomElement &element) const; private: Account *m_account; - QString m_nodeId; + TQString m_nodeId; Node *m_node; bool m_running; bool m_startup; @@ -143,7 +143,7 @@ public: }; void append(const CostPlace *cp) { m_costPlaces.append(cp); } - const QPtrList<CostPlace> &costPlaces() const {return m_costPlaces; } + const TQPtrList<CostPlace> &costPlaces() const {return m_costPlaces; } Account::CostPlace *findCostPlace(const Node &node) const; CostPlace *findRunning(const Node &node) const; void removeRunning(const Node &node); @@ -156,21 +156,21 @@ public: void addShutdown(Node &node); private: - QString m_name; - QString m_description; + TQString m_name; + TQString m_description; Accounts *m_list; Account *m_parent; - QPtrList<Account> m_accountList; - QPtrList<CostPlace> m_costPlaces; + TQPtrList<Account> m_accountList; + TQPtrList<CostPlace> m_costPlaces; #ifndef NDEBUG public: - void printDebug(QString indent); + void printDebug(TQString indent); #endif }; -typedef QPtrList<Account> AccountList; -typedef QPtrListIterator<Account> AccountListIterator; +typedef TQPtrList<Account> AccountList; +typedef TQPtrListIterator<Account> AccountListIterator; /** * Accounts administrates all accounts. @@ -185,39 +185,39 @@ public: Account *defaultAccount() const { return m_defaultAccount; } void setDefaultAccount(Account *account) { m_defaultAccount = account; } - EffortCostMap plannedCost(const Account &account, const QDate &start, const QDate &end); + EffortCostMap plannedCost(const Account &account, const TQDate &start, const TQDate &end); void clear() { m_accountList.clear(); m_idDict.clear(); } void append(Account *account); void take(Account *account); - bool load(QDomElement &element, const Project &project); - void save(QDomElement &element) const; + bool load(TQDomElement &element, const Project &project); + void save(TQDomElement &element) const; - QStringList costElements() const; - QStringList nameList() const; + TQStringList costElements() const; + TQStringList nameList() const; const AccountList &accountList() const { return m_accountList; } Account *findRunningAccount(const Node &node) const; Account *findStartupAccount(const Node &node) const; Account *findShutdownAccount(const Node &node) const; - Account *findAccount(const QString &id) const; + Account *findAccount(const TQString &id) const; bool insertId(const Account *account); - bool removeId(const QString &id); + bool removeId(const TQString &id); void accountDeleted(Account *account) { if (account == m_defaultAccount) m_defaultAccount = 0; } private: Project &m_project; AccountList m_accountList; - QDict<Account> m_idDict; + TQDict<Account> m_idDict; Account *m_defaultAccount; #ifndef NDEBUG public: - void printDebug(QString indent); + void printDebug(TQString indent); #endif }; |