blob: 774747afe8c355c4ca1d4c6b17a7988d17a31e55 (
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
51
|
/*
* 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/Base/Override.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() SWIFTEN_OVERRIDE;
virtual FileTransferTransporter* createInitiatorTransporter(
const JID& initiator, const JID& responder, const FileTransferOptions&) SWIFTEN_OVERRIDE;
virtual FileTransferTransporter* createResponderTransporter(
const JID& initiator, const JID& responder, const std::string& s5bSessionID, const FileTransferOptions&) SWIFTEN_OVERRIDE;
private:
SOCKS5BytestreamRegistry* s5bRegistry;
SOCKS5BytestreamServerManager* s5bServerManager;
SOCKS5BytestreamProxiesManager* s5bProxiesManager;
IDGenerator* idGenerator;
ConnectionFactory* connectionFactory;
TimerFactory* timerFactory;
CryptoProvider* cryptoProvider;
IQRouter* iqRouter;
};
}
|