diff options
| author | Philipp Andreas <github@smurfy.de> | 2014-07-12 09:29:47 +0200 |
|---|---|---|
| committer | Philipp Andreas <github@smurfy.de> | 2014-07-12 09:30:49 +0200 |
| commit | 2101baf2911d7965c86e5308e4d8350790a6956c (patch) | |
| tree | 2acb875cabca055797620458baad26d5f8612105 /daemon/watchconnector.h | |
| parent | 959e251f2336e21d3615b1525a38773fe58ab2e7 (diff) | |
| parent | 84e775d768f0675ee733132b3762db647f1409ac (diff) | |
Merge branch 'master' into notifications
Conflicts:
daemon/manager.cpp
Diffstat (limited to 'daemon/watchconnector.h')
| -rw-r--r-- | daemon/watchconnector.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/daemon/watchconnector.h b/daemon/watchconnector.h index eaeccdc..36d0936 100644 --- a/daemon/watchconnector.h +++ b/daemon/watchconnector.h @@ -33,9 +33,11 @@ #include <QObject> #include <QPointer> #include <QStringList> +#include <QTimer> #include <QBluetoothDeviceInfo> #include <QBluetoothSocket> #include <QBluetoothServiceInfo> +#include "Logger" using namespace QtBluetooth; @@ -45,8 +47,11 @@ namespace watch class WatchConnector : public QObject { Q_OBJECT + LOG4QT_DECLARE_QCLASS_LOGGER + Q_PROPERTY(QString name READ name NOTIFY nameChanged) Q_PROPERTY(QString connected READ isConnected NOTIFY connectedChanged) + public: enum { watchTIME = 11, @@ -125,6 +130,7 @@ private: QPointer<QBluetoothSocket> socket; bool is_connected; + QTimer reconnectTimer; QString _last_name; QString _last_address; }; |
