summaryrefslogtreecommitdiff
path: root/qmsgwatchlet/qmsgwatchletplugin.cpp
diff options
context:
space:
mode:
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)