diff options
Diffstat (limited to 'k9devices/k9halconnection.h')
-rw-r--r-- | k9devices/k9halconnection.h | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/k9devices/k9halconnection.h b/k9devices/k9halconnection.h index 27119a5..ac44db4 100644 --- a/k9devices/k9halconnection.h +++ b/k9devices/k9halconnection.h @@ -10,12 +10,17 @@ // // #include "k9common.h" + +#ifdef Q_MOC_RUN +#define HAVE_HAL +#endif // Q_MOC_RUN + #ifdef HAVE_HAL #ifndef K9HALCONNECTION_H #define K9HALCONNECTION_H -#include <qobject.h> -#include <qptrlist.h> +#include <tqobject.h> +#include <tqptrlist.h> #include "k9dbusdispatch.h" /** @author Jean-Michel PETIT <k9copy@free.fr> @@ -24,22 +29,23 @@ class k9HalDevice; class DBusConnection; #ifdef DBUS_QT3 -class QDBusConnection; +class TQDBusConnection; #else -namespace DBusQt { +namespace DBusTQt { class Connection; }; #endif -class k9HalConnection : public QObject +class k9HalConnection : public TQObject { Q_OBJECT + TQ_OBJECT friend class k9HalDevice; public: static k9HalConnection* getInstance(); static void end(); - QPtrList< k9HalDevice > getDevices() const { return m_devices;} + TQPtrList< k9HalDevice > getDevices() const { return m_devices;} void addDevice( const char* udi ); void removeDevice( const char* udi ); void testVolumeChanged( const char * udi); @@ -49,13 +55,13 @@ signals: void deviceAdded(k9HalDevice *); void deviceRemoved(k9HalDevice*); private: - QPtrList <k9HalDevice> m_devices; + TQPtrList <k9HalDevice> m_devices; void *m_context; DBusConnection * m_dbusConnect; K9DBusDispatch *m_dbusDispatch; private: - k9HalConnection(QObject *parent = 0, const char *name = 0); + k9HalConnection(TQObject *tqparent = 0, const char *name = 0); ~k9HalConnection(); |