summaryrefslogtreecommitdiff
path: root/harmaccuweather/harmaccuplugin.cpp
blob: ff7b6cfe2a740a285f8a323419517fe4e1eb6e44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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)