summaryrefslogtreecommitdiff
path: root/src/watchconnector.h
diff options
context:
space:
mode:
authorJouni Roivas <jroivas@iki.fi>2014-03-02 11:19:19 +0200
committerJouni Roivas <jroivas@iki.fi>2014-03-02 11:19:19 +0200
commitc89b4e0cce457c6b96f44e23b66d6ab0254f0eac (patch)
treeb80c4c1e4d490656aacb20c2410bde68836bc817 /src/watchconnector.h
parentdb2e550807b363cb8f31fa976da361bcf90e8f2c (diff)
Try to reconnect on error
Diffstat (limited to 'src/watchconnector.h')
-rw-r--r--src/watchconnector.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/watchconnector.h b/src/watchconnector.h
index 198f703..56a0f5c 100644
--- a/src/watchconnector.h
+++ b/src/watchconnector.h
@@ -39,6 +39,9 @@
using namespace QtBluetooth;
+namespace watch
+{
+
class WatchConnector : public QObject
{
Q_OBJECT
@@ -113,13 +116,18 @@ public slots:
void readSocket();
void connected();
void disconnected();
+ void reconnect();
private:
void decodeMsg(QByteArray data);
QBluetoothSocket *socket;
bool is_connected;
+ QString _last_name;
+ QString _last_address;
};
void registerWatchConnector();
+}
+
#endif // WATCHCONNECTOR_H