summaryrefslogtreecommitdiff
path: root/qmsgwatchlet/qmsgwatchletplugin.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-01-30 19:54:44 +0100
committerJavier S. Pedro <maemo@javispedro.com>2012-01-30 19:54:44 +0100
commit1375a26b135547fdd8e07db62acf8116a8482560 (patch)
tree96cb70c28d7c3cb05947caa39dde9d360e4903dc /qmsgwatchlet/qmsgwatchletplugin.cpp
parentc916a1e3cb9440737a9414d6f28505b67209e3cb (diff)
downloadsowatch-1375a26b135547fdd8e07db62acf8116a8482560.tar.gz
sowatch-1375a26b135547fdd8e07db62acf8116a8482560.zip
add a qt mobility messaging based watchlet
Diffstat (limited to 'qmsgwatchlet/qmsgwatchletplugin.cpp')
-rw-r--r--qmsgwatchlet/qmsgwatchletplugin.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/qmsgwatchlet/qmsgwatchletplugin.cpp b/qmsgwatchlet/qmsgwatchletplugin.cpp
new file mode 100644
index 0000000..64a4157
--- /dev/null
+++ b/qmsgwatchlet/qmsgwatchletplugin.cpp
@@ -0,0 +1,29 @@
+#include "qmsgwatchlet.h"
+#include "qmsgwatchletplugin.h"
+
+using namespace sowatch;
+
+QMsgWatchletPlugin::QMsgWatchletPlugin(QObject *parent) :
+ QObject(parent)
+{
+}
+
+QMsgWatchletPlugin::~QMsgWatchletPlugin()
+{
+}
+
+QStringList QMsgWatchletPlugin::watchlets()
+{
+ QStringList l;
+ l << "com.javispedro.sowatch.qmsg";
+ return l;
+}
+
+Watchlet* QMsgWatchletPlugin::getWatchlet(const QString& driver, QSettings& settings, WatchServer *server)
+{
+ Q_UNUSED(driver);
+ Q_UNUSED(settings);
+ return new QMsgWatchlet(server);
+}
+
+Q_EXPORT_PLUGIN2(qmsgwatchlet, QMsgWatchletPlugin)