diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2012-08-15 15:53:09 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2012-08-15 15:53:09 +0200 |
commit | 2ecf718cc9d460ad192de196aac8d13e30a7ab4c (patch) | |
tree | 28ad0698f48e563ff0cca74c780e283ad16b7994 /meecastweather/meecastplugin.cpp | |
parent | c752ccafd8d826b3c0c9140e89ece09e90b34cb1 (diff) | |
download | sowatch-2ecf718cc9d460ad192de196aac8d13e30a7ab4c.tar.gz sowatch-2ecf718cc9d460ad192de196aac8d13e30a7ab4c.zip |
preparing meecastweather plugin
Diffstat (limited to 'meecastweather/meecastplugin.cpp')
-rw-r--r-- | meecastweather/meecastplugin.cpp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meecastweather/meecastplugin.cpp b/meecastweather/meecastplugin.cpp new file mode 100644 index 0000000..ff7b6cf --- /dev/null +++ b/meecastweather/meecastplugin.cpp @@ -0,0 +1,37 @@ +#include "harmaccuprovider.h" +#include "harmaccuplugin.h" + +using namespace sowatch; + +HarmAccuPlugin::HarmAccuPlugin(QObject *parent) : + QObject(parent) +{ +} + +HarmAccuPlugin::~HarmAccuPlugin() +{ +} + +QStringList HarmAccuPlugin::providers() +{ + QStringList providers; + providers << "harmaccu"; + return providers; +} + +NotificationPluginInterface::NotificationProviderInfo HarmAccuPlugin::describeProvider(const QString &driver) +{ + NotificationProviderInfo info; + if (driver != "harmaccu") return info; + info.name = "Accuweather"; + return info; +} + +NotificationProvider* HarmAccuPlugin::getProvider(const QString& id, ConfigKey *settings, QObject *parent) +{ + Q_UNUSED(settings); + if (id != "harmaccu") return 0; + return new HarmAccuProvider(parent); +} + +Q_EXPORT_PLUGIN2(harmaccuweather, HarmAccuPlugin) |