summaryrefslogtreecommitdiffstats
path: root/k9devices/k9dbusdispatch.h
diff options
context:
space:
mode:
Diffstat (limited to 'k9devices/k9dbusdispatch.h')
-rw-r--r--k9devices/k9dbusdispatch.h29
1 files changed, 17 insertions, 12 deletions
diff --git a/k9devices/k9dbusdispatch.h b/k9devices/k9dbusdispatch.h
index a93c2b0..d9d210e 100644
--- a/k9devices/k9dbusdispatch.h
+++ b/k9devices/k9dbusdispatch.h
@@ -3,7 +3,7 @@
//
// Description: the main goal of this class is to dispatch dbus messages so that libhal can
// detect changes on devices.
-// This code is based on QDBusConnectionPrivate from the new Qt DBus bindings
+// This code is based on TQDBusConnectionPrivate from the new TQt DBus bindings
//
//
// Author: Jean-Michel PETIT <k9copy@free.fr>, (C) 2007
@@ -15,15 +15,19 @@
#define K9DBUSDISPATCH_H
#include "k9common.h"
+#ifdef Q_MOC_RUN
+#define HAVE_HAL
+#endif // Q_MOC_RUN
+
#ifdef HAVE_HAL
-#include <qobject.h>
-#include <qtimer.h>
+#include <tqobject.h>
+#include <tqtimer.h>
#define DBUS_API_SUBJECT_TO_CHANGE
#include <dbus/dbus.h>
-#include <qsocketnotifier.h>
-#include <qvaluelist.h>
-#include <qmap.h>
+#include <tqsocketnotifier.h>
+#include <tqvaluelist.h>
+#include <tqmap.h>
/**
@author Jean-Michel PETIT <k9copy@free.fr>
@@ -33,24 +37,25 @@ class k9Watcher {
public:
k9Watcher() { read=write=0; watch=0;};
DBusWatch *watch;
- QSocketNotifier *read,*write;
+ TQSocketNotifier *read,*write;
};
-class K9DBusDispatch : public QObject
+class K9DBusDispatch : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
- K9DBusDispatch(QObject *parent = 0, const char *name = 0);
+ K9DBusDispatch(TQObject *tqparent = 0, const char *name = 0);
~K9DBusDispatch();
void setConnection(DBusConnection* _value);
- typedef QValueList<k9Watcher> WatcherList;
+ typedef TQValueList<k9Watcher> WatcherList;
WatcherList removedWatches;
- typedef QMap<int, WatcherList> WatcherHash;
+ typedef TQMap<int, WatcherList> WatcherHash;
WatcherHash watchers;
private:
- QTimer *m_dispatcher;
+ TQTimer *m_dispatcher;
DBusConnection *m_connection;
void purgeRemovedWatches();