summaryrefslogtreecommitdiff
path: root/meecastweather/meecastplugin.cpp
blob: 4530db78815d34609359be28de12da4b7a482cda (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 "meecastprovider.h"
#include "meecastplugin.h"

using namespace sowatch;

MeeCastPlugin::MeeCastPlugin(QObject *parent) :
    QObject(parent)
{
}

MeeCastPlugin::~MeeCastPlugin()
{
}

QStringList MeeCastPlugin::providers()
{
	QStringList providers;
	providers << MeeCastProvider::myId;
	return providers;
}

NotificationPluginInterface::NotificationProviderInfo MeeCastPlugin::describeProvider(const QString &driver)
{
	NotificationProviderInfo info;
	if (driver != MeeCastProvider::myId) return info;
	info.name = "MeeCast";
	return info;
}

NotificationProvider* MeeCastPlugin::getProvider(const QString& id, ConfigKey *settings, QObject *parent)
{
	Q_UNUSED(settings);
	if (id != MeeCastProvider::myId) return 0;
	return new MeeCastProvider(parent);
}

Q_EXPORT_PLUGIN2(meecastweather, MeeCastPlugin)