blob: c4eea2522aaa239a440fe5c51674bdb1e3cdacf7 (
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 <sap/sappeer.h>
#include <sap/sapmanager.h>
#include <sap/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
|