diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2012-08-17 02:29:28 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2012-08-17 02:29:28 +0200 |
commit | 9c44782c5eab5635ca6adf4717409bf2ffb6c694 (patch) | |
tree | 99f774bccb6e964864168b346155bbd5a52bf3b2 /nekowatchlet/nekowatchletplugin.cpp | |
parent | f9ac9d207025fb8d40d1be753cde78beb77aa202 (diff) | |
download | sowatch-9c44782c5eab5635ca6adf4717409bf2ffb6c694.tar.gz sowatch-9c44782c5eab5635ca6adf4717409bf2ffb6c694.zip |
new nekowatchlet and minor graphics/performance changes
Diffstat (limited to 'nekowatchlet/nekowatchletplugin.cpp')
-rw-r--r-- | nekowatchlet/nekowatchletplugin.cpp | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/nekowatchlet/nekowatchletplugin.cpp b/nekowatchlet/nekowatchletplugin.cpp new file mode 100644 index 0000000..c891530 --- /dev/null +++ b/nekowatchlet/nekowatchletplugin.cpp @@ -0,0 +1,38 @@ +#include "nekowatchlet.h" +#include "nekowatchletplugin.h" + +using namespace sowatch; + +NekoWatchletPlugin::NekoWatchletPlugin(QObject *parent) : + QObject(parent) +{ +} + +NekoWatchletPlugin::~NekoWatchletPlugin() +{ +} + +QStringList NekoWatchletPlugin::watchlets() +{ + QStringList l; + l << NekoWatchlet::myId; + return l; +} + +WatchletPluginInterface::WatchletInfo NekoWatchletPlugin::describeWatchlet(const QString &id) +{ + WatchletInfo info; + if (id != NekoWatchlet::myId) return info; + info.name = "Neko"; + info.icon = QUrl::fromLocalFile(SOWATCH_QML_DIR "/nekowatchlet/icon.png"); + return info; +} + +Watchlet* NekoWatchletPlugin::getWatchlet(const QString& driver, ConfigKey *settings, WatchServer *server) +{ + Q_UNUSED(driver); + Q_UNUSED(settings); + return new NekoWatchlet(server); +} + +Q_EXPORT_PLUGIN2(notificationswatchlet, NekoWatchletPlugin) |