diff options
author | Javier <dev.git@javispedro.com> | 2014-11-16 16:40:06 +0100 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2014-11-16 16:40:06 +0100 |
commit | 5244f7909e04b23fbd5706dc6bcadafba21f7600 (patch) | |
tree | 88d8730dc70b68586d2d31845dc51eead9e526cb /notificationagent.h | |
parent | d8d8fc7a0d139e7b864eee3b573bd208f823ad4f (diff) | |
download | sapd-5244f7909e04b23fbd5706dc6bcadafba21f7600.tar.gz sapd-5244f7909e04b23fbd5706dc6bcadafba21f7600.zip |
initial notification support
Diffstat (limited to 'notificationagent.h')
-rw-r--r-- | notificationagent.h | 27 |
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 |