summaryrefslogtreecommitdiff
path: root/libsowatch/watchserver.h
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2011-09-19 01:51:04 +0200
committerJavier S. Pedro <maemo@javispedro.com>2011-09-19 01:51:04 +0200
commit77a98ac21c2520d9fb4bb9c8f70967a8e36dc872 (patch)
tree687d1cc8820296d56e06c8fab3eaf9ef935cba23 /libsowatch/watchserver.h
parent03af539d69d903dfb5df19b447707a35ebaa4a54 (diff)
downloadsowatch-77a98ac21c2520d9fb4bb9c8f70967a8e36dc872.tar.gz
sowatch-77a98ac21c2520d9fb4bb9c8f70967a8e36dc872.zip
adding notification provider plugins, idle screen
Diffstat (limited to 'libsowatch/watchserver.h')
-rw-r--r--libsowatch/watchserver.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/libsowatch/watchserver.h b/libsowatch/watchserver.h
index f8bed67..0ca1f4f 100644
--- a/libsowatch/watchserver.h
+++ b/libsowatch/watchserver.h
@@ -1,17 +1,19 @@
-#ifndef WATCHSERVER_H
-#define WATCHSERVER_H
+#ifndef SOWATCH_WATCHSERVER_H
+#define SOWATCH_WATCHSERVER_H
#include <QtCore/QObject>
#include <QtCore/QMap>
+#include <QtCore/QSignalMapper>
#include "sowatch_global.h"
+#include "notification.h"
namespace sowatch
{
class Watch;
class Watchlet;
-class Notification;
+class NotificationProvider;
class SOWATCH_EXPORT WatchServer : public QObject
{
@@ -23,29 +25,29 @@ public:
Watch* watch();
+ void addProvider(NotificationProvider* provider);
+
void runWatchlet(const QString& id);
void closeWatchlet();
-signals:
-
-public slots:
- void notification(const Notification& n);
-
protected:
Watch* _watch;
Watchlet* _currentWatchlet;
- QMap<QString, Watchlet*> watchlets;
+ QMap<QString, Watchlet*> _watchlets;
+ QList<NotificationProvider*> _providers;
void registerWatchlet(Watchlet *watchlet);
protected slots:
void watchConnected();
void watchDisconnected();
+ void notificationEmitted(const Notification& notification);
+ void unreadCountUpdated(Notification::Type type);
friend class Watchlet;
};
}
-#endif // WATCHSERVER_H
+#endif // SOWATCH_WATCHSERVER_H