diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 23:37:00 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 23:37:00 +0000 |
commit | b0e912c8b3d02a518fedda28c3180eb4794a7520 (patch) | |
tree | 07d344862562fab58cbe2df39d13d16f2e4d2bea /k9devices/k9cddrive.h | |
parent | 4d695ec81fe4d4335ee82c7a9346ad9c9e144ecc (diff) | |
download | k9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.tar.gz k9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.zip |
TQt4 convert k9copy
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1233843 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'k9devices/k9cddrive.h')
-rw-r--r-- | k9devices/k9cddrive.h | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/k9devices/k9cddrive.h b/k9devices/k9cddrive.h index e64bc0f..9a4a374 100644 --- a/k9devices/k9cddrive.h +++ b/k9devices/k9cddrive.h @@ -13,11 +13,11 @@ #define K9CDDRIVE_H #include "k9common.h" -#include <qobject.h> +#include <tqobject.h> -#include <qstring.h> -#include <qstringlist.h> -#include <qvaluelist.h> +#include <tqstring.h> +#include <tqstringlist.h> +#include <tqvaluelist.h> #ifndef HAVE_HAL #include <k3bdevice.h> #include <k3bdevicemanager.h> @@ -30,20 +30,21 @@ class k9HalDevice; class k9HalConnection; -class k9CdDrive : public QObject { +class k9CdDrive : public TQObject { Q_OBJECT + TQ_OBJECT public: k9CdDrive(); ~k9CdDrive(); int num; - QString name; - QString device; + TQString name; + TQString device; bool canWriteCDR; bool canReadDVD; bool canWriteDVD; - void setWriteSpeeds(const QValueList< int >& _value); - QValueList< int > getWriteSpeeds() const; + void setWriteSpeeds(const TQValueList< int >& _value); + TQValueList< int > getWriteSpeeds() const; #ifdef HAVE_HAL void setDevice(k9HalDevice* _value) { m_Device = _value;} @@ -51,14 +52,15 @@ public: k9HalDevice* getDevice() { return m_Device;} #endif private: - QValueList <int> writeSpeeds; + TQValueList <int> writeSpeeds; #ifdef HAVE_HAL k9HalDevice *m_Device; #endif }; -class k9CdDrives : public QObject { +class k9CdDrives : public TQObject { Q_OBJECT + TQ_OBJECT public: k9CdDrives(); ~k9CdDrives(); @@ -66,7 +68,7 @@ public: int count(); /** No descriptions */ k9CdDrive * getDrive(int num); - void eject(const QString & device); + void eject(const TQString & device); void scanDrives(); public slots: void deviceAdded(k9HalDevice *device); @@ -82,6 +84,6 @@ private: // Private methods K3bDevice::DeviceManager *m_devMgr; #endif void readConfig(); - QPtrList <k9CdDrive> drives; + TQPtrList <k9CdDrive> drives; }; #endif |