summaryrefslogtreecommitdiff
path: root/meecastweather/meecastplugin.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-08-15 15:53:09 +0200
committerJavier S. Pedro <maemo@javispedro.com>2012-08-15 15:53:09 +0200
commit2ecf718cc9d460ad192de196aac8d13e30a7ab4c (patch)
tree28ad0698f48e563ff0cca74c780e283ad16b7994 /meecastweather/meecastplugin.cpp
parentc752ccafd8d826b3c0c9140e89ece09e90b34cb1 (diff)
downloadsowatch-2ecf718cc9d460ad192de196aac8d13e30a7ab4c.tar.gz
sowatch-2ecf718cc9d460ad192de196aac8d13e30a7ab4c.zip
preparing meecastweather plugin
Diffstat (limited to 'meecastweather/meecastplugin.cpp')
-rw-r--r--meecastweather/meecastplugin.cpp37
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)