diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
commit | 47c8a359c5276062c4bc17f0e82410f29081b502 (patch) | |
tree | 2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kppp/accounting.h | |
parent | 6f82532777a35e0e60bbd2b290b2e93e646f349b (diff) | |
download | tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kppp/accounting.h')
-rw-r--r-- | kppp/accounting.h | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/kppp/accounting.h b/kppp/accounting.h index 303d5c22..4fe65591 100644 --- a/kppp/accounting.h +++ b/kppp/accounting.h @@ -26,7 +26,7 @@ #ifndef __ACCOUNTING__H__ #define __ACCOUNTING__H__ -#include <qobject.h> +#include <tqobject.h> #include <kprocess.h> #include "ruleset.h" @@ -37,40 +37,40 @@ class PPPStats; // Accounting base class // ///////////////////////////////////////////////////////////////////////////// -class AccountingBase : public QObject { +class AccountingBase : public TQObject { Q_OBJECT public: - AccountingBase(QObject *parent); + AccountingBase(TQObject *parent); virtual ~AccountingBase(); virtual double total() const; virtual double session() const; virtual bool running() const { return false; }; - virtual bool loadRuleSet(const QString & name) = 0; + virtual bool loadRuleSet(const TQString & name) = 0; public slots: virtual void slotStart() {}; virtual void slotStop() {}; signals: - void changed(QString total, QString session); + void changed(TQString total, TQString session); protected: - void logMessage(QString, bool = FALSE); + void logMessage(TQString, bool = FALSE); bool saveCosts(); bool loadCosts(); - QString LogFileName; + TQString LogFileName; double _total, _session; - QString _name; + TQString _name; // static members public: - static void resetCosts(const QString & accountname); - static void resetVolume(const QString & accountname); - static QString getCosts(const QString & accountname); - static QString getAccountingFile(const QString &accountname); + static void resetCosts(const TQString & accountname); + static void resetVolume(const TQString & accountname); + static TQString getCosts(const TQString & accountname); + static TQString getAccountingFile(const TQString &accountname); }; @@ -82,23 +82,23 @@ public: class Accounting : public AccountingBase { Q_OBJECT public: - Accounting(QObject *parent, PPPStats *st); + Accounting(TQObject *parent, PPPStats *st); virtual double total() const; virtual double session() const; - virtual bool loadRuleSet(const QString & name); + virtual bool loadRuleSet(const TQString & name); virtual bool running() const; private: - virtual void timerEvent(QTimerEvent *t); + virtual void timerEvent(TQTimerEvent *t); public slots: virtual void slotStart(); virtual void slotStop(); signals: - void changed(QString total, QString session); + void changed(TQString total, TQString session); private: int acct_timer_id; @@ -119,9 +119,9 @@ private: class ExecutableAccounting : public AccountingBase { Q_OBJECT public: - ExecutableAccounting(PPPStats *st, QObject *parent = 0); + ExecutableAccounting(PPPStats *st, TQObject *parent = 0); - virtual bool loadRuleSet(const QString & ); + virtual bool loadRuleSet(const TQString & ); virtual bool running() const; public slots: @@ -132,12 +132,12 @@ private slots: void gotData(KProcess *proc, char *buffer, int buflen); signals: - void changed(QString total, QString session); + void changed(TQString total, TQString session); private: KProcess *proc; - QString currency; - QString provider; + TQString currency; + TQString provider; PPPStats *stats; }; |