diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2012-08-10 14:02:07 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2012-08-10 14:02:07 +0200 |
commit | b9082fda48bb026fc4e6148efeba9aabf608373a (patch) | |
tree | f4f2c498adc8009d082aecc7df2458c2bcf99c15 /harmaccuweather | |
parent | 3ca0764c683f8c6498b80f8d8410eca96cc9a793 (diff) | |
download | sowatch-b9082fda48bb026fc4e6148efeba9aabf608373a.tar.gz sowatch-b9082fda48bb026fc4e6148efeba9aabf608373a.zip |
NotificationProviders UI
Diffstat (limited to 'harmaccuweather')
-rw-r--r-- | harmaccuweather/harmaccuplugin.cpp | 8 | ||||
-rw-r--r-- | harmaccuweather/harmaccuplugin.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/harmaccuweather/harmaccuplugin.cpp b/harmaccuweather/harmaccuplugin.cpp index 7414187..ff7b6cf 100644 --- a/harmaccuweather/harmaccuplugin.cpp +++ b/harmaccuweather/harmaccuplugin.cpp @@ -19,6 +19,14 @@ QStringList HarmAccuPlugin::providers() 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); diff --git a/harmaccuweather/harmaccuplugin.h b/harmaccuweather/harmaccuplugin.h index d27c796..535b4a2 100644 --- a/harmaccuweather/harmaccuplugin.h +++ b/harmaccuweather/harmaccuplugin.h @@ -16,6 +16,7 @@ public: ~HarmAccuPlugin(); QStringList providers(); + NotificationProviderInfo describeProvider(const QString &driver); NotificationProvider* getProvider(const QString& driver, ConfigKey *settings, QObject *parent = 0); }; |