summaryrefslogtreecommitdiff
path: root/meecastweather/meecastplugin.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-08-15 16:24:46 +0200
committerJavier S. Pedro <maemo@javispedro.com>2012-08-15 16:24:46 +0200
commitcf54773b561c324596b25739888b8ab5b4b45bd1 (patch)
tree40f210f39cbb296a51473fcaa6e5b1f61f3ab998 /meecastweather/meecastplugin.cpp
parent2ecf718cc9d460ad192de196aac8d13e30a7ab4c (diff)
downloadsowatch-cf54773b561c324596b25739888b8ab5b4b45bd1.tar.gz
sowatch-cf54773b561c324596b25739888b8ab5b4b45bd1.zip
preparing meecastplugin
Diffstat (limited to 'meecastweather/meecastplugin.cpp')
-rw-r--r--meecastweather/meecastplugin.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/meecastweather/meecastplugin.cpp b/meecastweather/meecastplugin.cpp
index ff7b6cf..4530db7 100644
--- a/meecastweather/meecastplugin.cpp
+++ b/meecastweather/meecastplugin.cpp
@@ -1,37 +1,37 @@
-#include "harmaccuprovider.h"
-#include "harmaccuplugin.h"
+#include "meecastprovider.h"
+#include "meecastplugin.h"
using namespace sowatch;
-HarmAccuPlugin::HarmAccuPlugin(QObject *parent) :
+MeeCastPlugin::MeeCastPlugin(QObject *parent) :
QObject(parent)
{
}
-HarmAccuPlugin::~HarmAccuPlugin()
+MeeCastPlugin::~MeeCastPlugin()
{
}
-QStringList HarmAccuPlugin::providers()
+QStringList MeeCastPlugin::providers()
{
QStringList providers;
- providers << "harmaccu";
+ providers << MeeCastProvider::myId;
return providers;
}
-NotificationPluginInterface::NotificationProviderInfo HarmAccuPlugin::describeProvider(const QString &driver)
+NotificationPluginInterface::NotificationProviderInfo MeeCastPlugin::describeProvider(const QString &driver)
{
NotificationProviderInfo info;
- if (driver != "harmaccu") return info;
- info.name = "Accuweather";
+ if (driver != MeeCastProvider::myId) return info;
+ info.name = "MeeCast";
return info;
}
-NotificationProvider* HarmAccuPlugin::getProvider(const QString& id, ConfigKey *settings, QObject *parent)
+NotificationProvider* MeeCastPlugin::getProvider(const QString& id, ConfigKey *settings, QObject *parent)
{
Q_UNUSED(settings);
- if (id != "harmaccu") return 0;
- return new HarmAccuProvider(parent);
+ if (id != MeeCastProvider::myId) return 0;
+ return new MeeCastProvider(parent);
}
-Q_EXPORT_PLUGIN2(harmaccuweather, HarmAccuPlugin)
+Q_EXPORT_PLUGIN2(meecastweather, MeeCastPlugin)