diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2011-09-27 04:51:30 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2011-09-27 04:51:30 +0200 |
commit | a644a7cc6749f8dd5ca20589ee6e59acc2892b3e (patch) | |
tree | b995528dc14d1f58d9d7c958d1eaad855b2a2412 /qmafwwatchlet/qmafwwatchletplugin.cpp | |
parent | 0822b88738e00625efd27ccca9119885272924d2 (diff) | |
download | sowatch-a644a7cc6749f8dd5ca20589ee6e59acc2892b3e.tar.gz sowatch-a644a7cc6749f8dd5ca20589ee6e59acc2892b3e.zip |
new qmafw watchlet
Diffstat (limited to 'qmafwwatchlet/qmafwwatchletplugin.cpp')
-rw-r--r-- | qmafwwatchlet/qmafwwatchletplugin.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/qmafwwatchlet/qmafwwatchletplugin.cpp b/qmafwwatchlet/qmafwwatchletplugin.cpp new file mode 100644 index 0000000..09984b4 --- /dev/null +++ b/qmafwwatchlet/qmafwwatchletplugin.cpp @@ -0,0 +1,29 @@ +#include "qmafwwatchlet.h" +#include "qmafwwatchletplugin.h" + +using namespace sowatch; + +QMafwWatchletPlugin::QMafwWatchletPlugin(QObject *parent) : + QObject(parent) +{ +} + +QMafwWatchletPlugin::~QMafwWatchletPlugin() +{ +} + +QStringList QMafwWatchletPlugin::watchlets() +{ + QStringList l; + l << "com.javispedro.sowatch.qmafw"; + return l; +} + +Watchlet* QMafwWatchletPlugin::getWatchlet(const QString& driver, QSettings& settings, WatchServer *server) +{ + Q_UNUSED(driver); + Q_UNUSED(settings); + return new QMafwWatchlet(server); +} + +Q_EXPORT_PLUGIN2(qmafwwatchlet, QMafwWatchletPlugin) |