summaryrefslogtreecommitdiff
path: root/libsowatch/registry.h
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-08-09 19:21:39 +0200
committerJavier S. Pedro <maemo@javispedro.com>2012-08-09 19:21:39 +0200
commit67c0ceaa7562310a62a7d11e96f1d558950660b5 (patch)
tree74e67a28c49447db1bda1907d00c57f796703195 /libsowatch/registry.h
parent118cb64416eb3bbbfee47bd3c618fc8825d85f54 (diff)
downloadsowatch-67c0ceaa7562310a62a7d11e96f1d558950660b5.tar.gz
sowatch-67c0ceaa7562310a62a7d11e96f1d558950660b5.zip
prepare watchlet/notif lists
Diffstat (limited to 'libsowatch/registry.h')
-rw-r--r--libsowatch/registry.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libsowatch/registry.h b/libsowatch/registry.h
index 74e9388..b2e2b0e 100644
--- a/libsowatch/registry.h
+++ b/libsowatch/registry.h
@@ -3,6 +3,7 @@
#include <QtCore/QPluginLoader>
#include <QtCore/QString>
+#include <QtCore/QStringList>
#include <QtCore/QMap>
#include <QtCore/QFileSystemWatcher>
#include "sowatch_global.h"
@@ -45,6 +46,18 @@ public:
return _watchletIds.value(id, 0);
}
+ inline QStringList allWatchDrivers() const {
+ return _driverIds.keys();
+ }
+
+ inline QStringList allNotificationProviders() const {
+ return _providerIds.keys();
+ }
+
+ inline QStringList allWatchlets() const {
+ return _watchletIds.keys();
+ }
+
protected:
Registry();
~Registry();