From 64662ecc6ea6b5296ea77d83eac6eb1372afac01 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Tue, 27 Sep 2011 20:22:49 +0200 Subject: new crappy map watchlet --- qmapwatchlet/qmapwatchletplugin.cpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 qmapwatchlet/qmapwatchletplugin.cpp (limited to 'qmapwatchlet/qmapwatchletplugin.cpp') diff --git a/qmapwatchlet/qmapwatchletplugin.cpp b/qmapwatchlet/qmapwatchletplugin.cpp new file mode 100644 index 0000000..5b72482 --- /dev/null +++ b/qmapwatchlet/qmapwatchletplugin.cpp @@ -0,0 +1,29 @@ +#include "qmapwatchlet.h" +#include "qmapwatchletplugin.h" + +using namespace sowatch; + +QMapWatchletPlugin::QMapWatchletPlugin(QObject *parent) : + QObject(parent) +{ +} + +QMapWatchletPlugin::~QMapWatchletPlugin() +{ +} + +QStringList QMapWatchletPlugin::watchlets() +{ + QStringList l; + l << "com.javispedro.sowatch.qmap"; + return l; +} + +Watchlet* QMapWatchletPlugin::getWatchlet(const QString& driver, QSettings& settings, WatchServer *server) +{ + Q_UNUSED(driver); + Q_UNUSED(settings); + return new QMapWatchlet(server); +} + +Q_EXPORT_PLUGIN2(qmapwatchlet, QMapWatchletPlugin) -- cgit v1.2.3