summaryrefslogtreecommitdiff
path: root/webproxyagent.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-12-13 03:18:09 +0100
committerJavier <dev.git@javispedro.com>2015-12-13 03:18:09 +0100
commit3340aa0ef68eb735c36185959c8dbd11178575bf (patch)
treecf424e206eb60b7ca9f99bf135ed8dae54d25259 /webproxyagent.h
parentf45294559f976258831821ada062c73965201150 (diff)
downloadsapd-3340aa0ef68eb735c36185959c8dbd11178575bf.tar.gz
sapd-3340aa0ef68eb735c36185959c8dbd11178575bf.zip
Bump min Qt requirement to 5.2, bump libwatchfish version
Diffstat (limited to 'webproxyagent.h')
-rw-r--r--webproxyagent.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/webproxyagent.h b/webproxyagent.h
new file mode 100644
index 0000000..e3e7329
--- /dev/null
+++ b/webproxyagent.h
@@ -0,0 +1,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