summaryrefslogtreecommitdiff
path: root/notificationagent.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2014-11-16 16:40:06 +0100
committerJavier <dev.git@javispedro.com>2014-11-16 16:40:06 +0100
commit5244f7909e04b23fbd5706dc6bcadafba21f7600 (patch)
tree88d8730dc70b68586d2d31845dc51eead9e526cb /notificationagent.h
parentd8d8fc7a0d139e7b864eee3b573bd208f823ad4f (diff)
downloadsapd-5244f7909e04b23fbd5706dc6bcadafba21f7600.tar.gz
sapd-5244f7909e04b23fbd5706dc6bcadafba21f7600.zip
initial notification support
Diffstat (limited to 'notificationagent.h')
-rw-r--r--notificationagent.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/notificationagent.h b/notificationagent.h
new file mode 100644
index 0000000..1b9c9cb
--- /dev/null
+++ b/notificationagent.h
@@ -0,0 +1,27 @@
+#ifndef NOTIFICATIONAGENT_H
+#define NOTIFICATIONAGENT_H
+
+#include <QtCore/QObject>
+#include "sappeer.h"
+#include "sapmanager.h"
+#include "sapagent.h"
+
+class NotificationAgent : public QObject, public SAPAgent
+{
+ Q_OBJECT
+
+ explicit NotificationAgent(QObject *parent = 0);
+
+public:
+ static NotificationAgent * instance();
+ static void registerServices(SAPManager *manager);
+
+ void peerFound(SAPPeer *peer);
+ void requestConnection(SAPConnectionRequest *request);
+
+private:
+ SAPPeer *_peer;
+ SAPSocket *_socket;
+};
+
+#endif // NOTIFICATIONAGENT_H