summaryrefslogtreecommitdiffstats
path: root/k9devices/k9dbusdispatch.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2022-02-06 20:11:48 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2022-02-06 20:11:48 +0900
commitda10cdaf055bc8fe0f03702afe2b8c7bc5c5ed4f (patch)
tree7d0ebe452f7394934f737e2185cd554d7ffabe35 /k9devices/k9dbusdispatch.h
parent9f2311f262af668797db3634f174184f17cae63e (diff)
downloadk9copy-da10cdaf.tar.gz
k9copy-da10cdaf.zip
Removed HAL dependant code.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'k9devices/k9dbusdispatch.h')
-rw-r--r--k9devices/k9dbusdispatch.h71
1 files changed, 0 insertions, 71 deletions
diff --git a/k9devices/k9dbusdispatch.h b/k9devices/k9dbusdispatch.h
deleted file mode 100644
index 5ee2554..0000000
--- a/k9devices/k9dbusdispatch.h
+++ /dev/null
@@ -1,71 +0,0 @@
-//
-// C++ Interface: k9dbusdispatch
-//
-// 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 TQDBusConnectionPrivate from the new TQt DBus bindings
-//
-//
-// Author: Jean-Michel PETIT <k9copy@free.fr>, (C) 2007
-//
-// Copyright: See COPYING file that comes with this distribution
-//
-//
-#ifndef K9DBUSDISPATCH_H
-#define K9DBUSDISPATCH_H
-#include "k9common.h"
-
-#ifdef Q_MOC_RUN
-#define HAVE_HAL
-#endif // Q_MOC_RUN
-
-#ifdef HAVE_HAL
-
-#include <tqobject.h>
-#include <tqtimer.h>
-#define DBUS_API_SUBJECT_TO_CHANGE
-#include <dbus/dbus.h>
-#include <tqsocketnotifier.h>
-#include <tqvaluelist.h>
-#include <tqmap.h>
-
-/**
- @author Jean-Michel PETIT <k9copy@free.fr>
-*/
-
-class k9Watcher {
-public:
- k9Watcher() { read=write=0; watch=0;};
- DBusWatch *watch;
- TQSocketNotifier *read,*write;
-};
-
-class K9DBusDispatch : public TQObject
-{
-Q_OBJECT
-
-public:
- K9DBusDispatch(TQObject *parent = 0, const char *name = 0);
-
- ~K9DBusDispatch();
- void setConnection(DBusConnection* _value);
- typedef TQValueList<k9Watcher> WatcherList;
- WatcherList removedWatches;
- typedef TQMap<int, WatcherList> WatcherHash;
- WatcherHash watchers;
-
-private:
- TQTimer *m_dispatcher;
- DBusConnection *m_connection;
-
- void purgeRemovedWatches();
- void scheduleDispatch();
-private slots:
- void socketRead(int fd);
- void socketWrite(int fd);
- void dispatch();
-
-
-};
-#endif
-#endif