diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2012-08-11 01:10:25 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2012-08-11 01:10:25 +0200 |
commit | f0564ad9d210cc68bfb1bfc6e56b86fa941ad830 (patch) | |
tree | 0401716e7af8be4318be1b9e88eca1cc8ad28d39 /qmsgwatchlet | |
parent | 1b8f2a0e2e63b1f881b6ba7b18982353b9c27b19 (diff) | |
download | sowatch-f0564ad9d210cc68bfb1bfc6e56b86fa941ad830.tar.gz sowatch-f0564ad9d210cc68bfb1bfc6e56b86fa941ad830.zip |
more fixes
Diffstat (limited to 'qmsgwatchlet')
-rw-r--r-- | qmsgwatchlet/qmsgwatchlet.cpp | 6 | ||||
-rw-r--r-- | qmsgwatchlet/qmsgwatchlet.h | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/qmsgwatchlet/qmsgwatchlet.cpp b/qmsgwatchlet/qmsgwatchlet.cpp index 5a95937..35a99d8 100644 --- a/qmsgwatchlet/qmsgwatchlet.cpp +++ b/qmsgwatchlet/qmsgwatchlet.cpp @@ -1,11 +1,11 @@ #include "qmsgwatchlet.h" +QTM_USE_NAMESPACE using namespace sowatch; QMsgWatchlet::QMsgWatchlet(WatchServer* server) : - DeclarativeWatchlet(server, "com.javispedro.sowatch.qmsg") + DeclarativeWatchlet(server, "com.javispedro.sowatch.qmsg"), + _qms(new QMessageService(this)) { - setSource(QUrl(SOWATCH_QML_DIR "/qmsgwatchlet/" + server->watch()->model() + ".qml")); } - diff --git a/qmsgwatchlet/qmsgwatchlet.h b/qmsgwatchlet/qmsgwatchlet.h index b731637..c2de7ec 100644 --- a/qmsgwatchlet/qmsgwatchlet.h +++ b/qmsgwatchlet/qmsgwatchlet.h @@ -1,6 +1,7 @@ #ifndef QMSGWATCHLET_H #define QMSGWATCHLET_H +#include <QtMessaging/QMessageService> #include <sowatch.h> namespace sowatch @@ -11,6 +12,9 @@ class QMsgWatchlet : public DeclarativeWatchlet Q_OBJECT public: explicit QMsgWatchlet(WatchServer* server); + +private: + QTM_PREPEND_NAMESPACE(QMessageService) _qms; }; } |