summaryrefslogtreecommitdiffstats
path: root/wifi/kwireless/kwirelesswidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'wifi/kwireless/kwirelesswidget.h')
-rw-r--r--wifi/kwireless/kwirelesswidget.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/wifi/kwireless/kwirelesswidget.h b/wifi/kwireless/kwirelesswidget.h
index 5a374d07..3321b583 100644
--- a/wifi/kwireless/kwirelesswidget.h
+++ b/wifi/kwireless/kwirelesswidget.h
@@ -10,32 +10,32 @@
#ifndef KWIRELESS_WIDGET_H
#define KWIRELESS_WIDGET_H
-#include <qwidget.h>
-#include <qptrlist.h>
-#include <qmutex.h>
-#include <qstringlist.h>
+#include <tqwidget.h>
+#include <tqptrlist.h>
+#include <tqmutex.h>
+#include <tqstringlist.h>
class DeviceInfo
{
public:
- DeviceInfo(QString _device=QString::null, QString _essid=QString::null,
- QString _encr=QString::null,
+ DeviceInfo(TQString _device=TQString::null, TQString _essid=TQString::null,
+ TQString _encr=TQString::null,
float _quality=0, float _signal=0, float _noise=0,
int _bitrate=0);
- QString bitrateString();
+ TQString bitrateString();
float quality();
- QString qualityString();
+ TQString qualityString();
float signal();
- QString signalString();
+ TQString signalString();
float noise();
- QString noiseString();
- const QString& device();
- const QString& essid();
+ TQString noiseString();
+ const TQString& device();
+ const TQString& essid();
bool usesEncryption();
- QString encrString();
+ TQString encrString();
protected:
- QString m_device; // the device name (e.g., eth1)
- QString m_essid; // the network name
+ TQString m_device; // the device name (e.g., eth1)
+ TQString m_essid; // the network name
// all this values are coefficients (values between 0 and 1):
float m_quality; // link quality level
@@ -43,7 +43,7 @@ protected:
float m_signal; // the signal level
// all these values are absolut, e.g., 11000000 = 11MBit/sec:
int m_bitrate; // bit rate
- QString m_encr;
+ TQString m_encr;
};
/** This wigdet displays the information about one wireless device.
@@ -58,10 +58,10 @@ public:
Horizontal,
Vertical
};
- static KWireLessWidget* makeWireLessWidget(QWidget *parent = 0,
+ static KWireLessWidget* makeWireLessWidget(TQWidget *parent = 0,
const char *name = 0);
protected:
- KWireLessWidget(QWidget *parent=0, const char* name=0);
+ KWireLessWidget(TQWidget *parent=0, const char* name=0);
public:
~KWireLessWidget();
void setMode(Mode);
@@ -70,8 +70,8 @@ public:
int preferredWidth();
int instances();
protected:
- void paintEvent(QPaintEvent*);
- void mousePressEvent(QMouseEvent *e);
+ void paintEvent(TQPaintEvent*);
+ void mousePressEvent(TQMouseEvent *e);
protected:
Mode mode;
int frameWidth;
@@ -81,12 +81,12 @@ protected:
// some static device information
// a list of DeviceInfo objects, this needs to be filled by the
// poll method:
- static QPtrList<DeviceInfo> deviceInfo;
- static QTimer *timer; // the poll timer
- static QMutex mutex;
+ static TQPtrList<DeviceInfo> deviceInfo;
+ static TQTimer *timer; // the poll timer
+ static TQMutex mutex;
static int m_instances;
signals:
- void updateDeviceInfo(QPtrList<DeviceInfo> *);
+ void updateDeviceInfo(TQPtrList<DeviceInfo> *);
protected slots:
/** poll() is system dependent and needs to be implemented by
deriving classes.