diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2012-04-26 01:36:20 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2012-04-26 01:36:20 +0200 |
commit | 93f3acd128d6b349efe14e97b12c2703ca4f81f3 (patch) | |
tree | 937f3de2307444f0c28d6d21f26f1580e789b074 /metawatch/metawatch.h | |
parent | 1375a26b135547fdd8e07db62acf8116a8482560 (diff) | |
download | sowatch-93f3acd128d6b349efe14e97b12c2703ca4f81f3.tar.gz sowatch-93f3acd128d6b349efe14e97b12c2703ca4f81f3.zip |
Moved the core framework to GConf & D-Bus
Diffstat (limited to 'metawatch/metawatch.h')
-rw-r--r-- | metawatch/metawatch.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/metawatch/metawatch.h b/metawatch/metawatch.h index 5a42b8d..760752b 100644 --- a/metawatch/metawatch.h +++ b/metawatch/metawatch.h @@ -7,7 +7,7 @@ #include <QtConnectivity/QBluetoothAddress> #include <QtConnectivity/QBluetoothSocket> #include <QtSystemInfo/QSystemAlignedTimer> -#include "watch.h" +#include <sowatch.h> using QTM_PREPEND_NAMESPACE(QBluetoothSocket); using QTM_PREPEND_NAMESPACE(QBluetoothAddress); @@ -23,7 +23,7 @@ class MetaWatch : public Watch Q_OBJECT public: - explicit MetaWatch(const QBluetoothAddress& address, QSettings* settings = 0, QObject *parent = 0); + explicit MetaWatch(ConfigKey *settings, QObject *parent = 0); ~MetaWatch(); static const int DelayBetweenMessages = 10; @@ -134,6 +134,8 @@ public: void ungrabButton(Mode mode, Button button); protected: + ConfigKey *_settings; + // Some configurable stuff. short _notificationTimeout; bool _24hMode : 1; @@ -229,6 +231,7 @@ protected: virtual void handleWatchConnected() = 0; private slots: + void settingChanged(const QString& key); void socketConnected(); void socketDisconnected(); void socketData(); |