summaryrefslogtreecommitdiff
path: root/webproxyagent.h
blob: e3e7329095eaadee8ac8a9125402d4fe5012a31a (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 WEBPROXYAGENT_H
#define WEBPROXYAGENT_H

#include <QtCore/QObject>
#include "sappeer.h"
#include "sapmanager.h"
#include "sapagent.h"

class WebProxyAgent : public QObject, public SAPAgent
{
	Q_OBJECT

	explicit WebProxyAgent(QObject *parent = 0);

public:
	static WebProxyAgent * instance();
	static void registerServices(SAPManager *manager);

	void peerFound(SAPPeer *peer);
	void requestConnection(SAPConnectionRequest *request);

private:
	SAPPeer *_peer;
	SAPSocket *_socket;
};

#endif // WEBPROXYAGENT_H