blob: fe4f6ea0bdcb97126d826ce46712cd5087dcd2ed (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/*
* Copyright (c) 2013-2017 Isode Limited.
* All rights reserved.
* See the COPYING file for more information.
*/
#pragma once
#include <Swiften/Base/API.h>
#include <Swiften/FileTransfer/FileTransferTransporterFactory.h>
namespace Swift {
class SOCKS5BytestreamRegistry;
class SOCKS5BytestreamServerManager;
class SOCKS5BytestreamProxiesManager;
class IDGenerator;
class ConnectionFactory;
class TimerFactory;
class CryptoProvider;
class IQRouter;
class SWIFTEN_API DefaultFileTransferTransporterFactory : public FileTransferTransporterFactory {
public:
DefaultFileTransferTransporterFactory(
SOCKS5BytestreamRegistry*,
SOCKS5BytestreamServerManager* s5bServerManager,
SOCKS5BytestreamProxiesManager* s5bProxy,
IDGenerator* idGenerator,
ConnectionFactory*,
TimerFactory*,
CryptoProvider*,
IQRouter*);
virtual ~DefaultFileTransferTransporterFactory() override;
virtual FileTransferTransporter* createInitiatorTransporter(
const JID& initiator, const JID& responder, const FileTransferOptions&) override;
virtual FileTransferTransporter* createResponderTransporter(
const JID& initiator, const JID& responder, const std::string& s5bSessionID, const FileTransferOptions&) override;
private:
SOCKS5BytestreamRegistry* s5bRegistry;
SOCKS5BytestreamServerManager* s5bServerManager;
SOCKS5BytestreamProxiesManager* s5bProxiesManager;
IDGenerator* idGenerator;
ConnectionFactory* connectionFactory;
TimerFactory* timerFactory;
CryptoProvider* cryptoProvider;
IQRouter* iqRouter;
};
}
|