From a69e97943539a8abc4d2762638c169dc19c88516 Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 7 Jun 2015 21:22:45 +0200 Subject: initial import --- smartpenmanager.h | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 smartpenmanager.h (limited to 'smartpenmanager.h') diff --git a/smartpenmanager.h b/smartpenmanager.h new file mode 100644 index 0000000..d1b4800 --- /dev/null +++ b/smartpenmanager.h @@ -0,0 +1,42 @@ +#ifndef SMARTPENMANAGER_H +#define SMARTPENMANAGER_H + +#include +#include +#include +#include +#include "smartpensyncer.h" + +struct udev; +struct udev_monitor; +struct udev_device; + +class SmartpenManager : public QObject +{ + Q_OBJECT + +public: + explicit SmartpenManager(QObject *parent = 0); + ~SmartpenManager(); + +signals: + void syncComplete(const QString &penName); + +public slots: + +private slots: + void handleMonitorActivity(); + void handleSyncerFinished(); + +private: + void processDevice(udev_device *dev); + +private: + udev *_udev; + udev_monitor *_monitor; + QSocketNotifier *_notifier; + QMap, SmartpenSyncer*> _syncers; + +}; + +#endif // SMARTPENMANAGER_H -- cgit v1.2.3