summaryrefslogtreecommitdiff
path: root/qmsgwatchlet
diff options
context:
space:
mode:
Diffstat (limited to 'qmsgwatchlet')
-rw-r--r--qmsgwatchlet/qmsgwatchlet.cpp6
-rw-r--r--qmsgwatchlet/qmsgwatchlet.h4
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;
};
}