summaryrefslogtreecommitdiffstats
path: root/kppp/accounting.h
diff options
context:
space:
mode:
Diffstat (limited to 'kppp/accounting.h')
-rw-r--r--kppp/accounting.h42
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;
};