summaryrefslogtreecommitdiff
path: root/meegohandsetnotification/meegohandsetplugin.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-08-10 14:02:07 +0200
committerJavier S. Pedro <maemo@javispedro.com>2012-08-10 14:02:07 +0200
commitb9082fda48bb026fc4e6148efeba9aabf608373a (patch)
treef4f2c498adc8009d082aecc7df2458c2bcf99c15 /meegohandsetnotification/meegohandsetplugin.cpp
parent3ca0764c683f8c6498b80f8d8410eca96cc9a793 (diff)
downloadsowatch-b9082fda48bb026fc4e6148efeba9aabf608373a.tar.gz
sowatch-b9082fda48bb026fc4e6148efeba9aabf608373a.zip
NotificationProviders UI
Diffstat (limited to 'meegohandsetnotification/meegohandsetplugin.cpp')
-rw-r--r--meegohandsetnotification/meegohandsetplugin.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/meegohandsetnotification/meegohandsetplugin.cpp b/meegohandsetnotification/meegohandsetplugin.cpp
index 0f50575..de0f925 100644
--- a/meegohandsetnotification/meegohandsetplugin.cpp
+++ b/meegohandsetnotification/meegohandsetplugin.cpp
@@ -18,10 +18,18 @@ QStringList MeegoHandsetPlugin::providers()
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(driver);
Q_UNUSED(settings);
+ if (driver != "meegohandset") return 0;
return new MeegoHandsetNotificationProvider(parent);
}