From b9082fda48bb026fc4e6148efeba9aabf608373a Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Fri, 10 Aug 2012 14:02:07 +0200 Subject: NotificationProviders UI --- meegohandsetnotification/meegohandsetplugin.cpp | 10 +++++++++- meegohandsetnotification/meegohandsetplugin.h | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'meegohandsetnotification') 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); } diff --git a/meegohandsetnotification/meegohandsetplugin.h b/meegohandsetnotification/meegohandsetplugin.h index 4d826dc..d6f285f 100644 --- a/meegohandsetnotification/meegohandsetplugin.h +++ b/meegohandsetnotification/meegohandsetplugin.h @@ -16,6 +16,7 @@ public: ~MeegoHandsetPlugin(); QStringList providers(); + NotificationProviderInfo describeProvider(const QString& driver); NotificationProvider* getProvider(const QString& driver, ConfigKey *settings, QObject *parent = 0); }; -- cgit v1.2.3