blob: de0f925054de3e64b039b4030aa1635e4400f93c (
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
|
#include "meegohandsetplugin.h"
#include "meegohandsetnotificationprovider.h"
using namespace sowatch;
MeegoHandsetPlugin::MeegoHandsetPlugin()
{
}
MeegoHandsetPlugin::~MeegoHandsetPlugin()
{
}
QStringList MeegoHandsetPlugin::providers()
{
QStringList providers;
providers << "meegohandset";
return providers;
}
NotificationPluginInterface::NotificationProviderInfo MeegoHandsetPlugin::describeProvider(const QString &driver)
{
NotificationProviderInfo info;
if (driver != "meegohandset") return info;
info.name = "MeeGo Notifications";
return info;
}
NotificationProvider* MeegoHandsetPlugin::getProvider(const QString& driver, ConfigKey* settings, QObject *parent)
{
Q_UNUSED(settings);
if (driver != "meegohandset") return 0;
return new MeegoHandsetNotificationProvider(parent);
}
Q_EXPORT_PLUGIN2(meegohandsetnotification, MeegoHandsetPlugin)
|