summaryrefslogtreecommitdiff
path: root/agents/notificationagent.h
diff options
context:
space:
mode:
Diffstat (limited to 'agents/notificationagent.h')
-rw-r--r--agents/notificationagent.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/agents/notificationagent.h b/agents/notificationagent.h
new file mode 100644
index 0000000..1b9c9cb
--- /dev/null
+++ b/agents/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