summaryrefslogtreecommitdiffstats
path: root/wifi/kwireless/kwirelesswidget.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /wifi/kwireless/kwirelesswidget.h
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-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 '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.