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 /libsowatch | |
parent | 3ca0764c683f8c6498b80f8d8410eca96cc9a793 (diff) | |
download | sowatch-b9082fda48bb026fc4e6148efeba9aabf608373a.tar.gz sowatch-b9082fda48bb026fc4e6148efeba9aabf608373a.zip |
NotificationProviders UI
Diffstat (limited to 'libsowatch')
-rw-r--r-- | libsowatch/notificationplugininterface.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libsowatch/notificationplugininterface.h b/libsowatch/notificationplugininterface.h index d753afc..fa75ddd 100644 --- a/libsowatch/notificationplugininterface.h +++ b/libsowatch/notificationplugininterface.h @@ -4,6 +4,7 @@ #include <QtPlugin> #include <QtCore/QSettings> #include <QtCore/QStringList> +#include <QtGui/QIcon> #include "sowatch_global.h" namespace sowatch @@ -18,7 +19,13 @@ class SOWATCH_EXPORT NotificationPluginInterface public: virtual ~NotificationPluginInterface(); + struct NotificationProviderInfo { + QString name; + QIcon icon; + }; + virtual QStringList providers() = 0; + virtual NotificationProviderInfo describeProvider(const QString& driver) = 0; virtual NotificationProvider* getProvider(const QString& driver, ConfigKey *settings, QObject *parent = 0) = 0; }; |