summaryrefslogtreecommitdiff
path: root/notificationagent.h
blob: 1b9c9cb3eeacbe21e2c5ad995ace928a0d40bf01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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