summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/FileTransfer/IncomingFileTransferManager.h')
-rw-r--r--Swiften/FileTransfer/IncomingFileTransferManager.h26
1 files changed, 15 insertions, 11 deletions
diff --git a/Swiften/FileTransfer/IncomingFileTransferManager.h b/Swiften/FileTransfer/IncomingFileTransferManager.h
index 2d1c07f..9570def 100644
--- a/Swiften/FileTransfer/IncomingFileTransferManager.h
+++ b/Swiften/FileTransfer/IncomingFileTransferManager.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010 Remko Tronçon
+ * Copyright (c) 2010-2013 Remko Tronçon
* Licensed under the GNU General Public License v3.
* See Documentation/Licenses/GPLv3.txt for more information.
*/
@@ -15,29 +15,33 @@
namespace Swift {
class IQRouter;
class JingleSessionManager;
- class RemoteJingleTransportCandidateSelectorFactory;
- class LocalJingleTransportCandidateGeneratorFactory;
- class SOCKS5BytestreamRegistry;
- class SOCKS5BytestreamProxy;
+ class FileTransferTransporterFactory;
class TimerFactory;
+ class CryptoProvider;
class IncomingFileTransferManager : public IncomingJingleSessionHandler {
public:
- IncomingFileTransferManager(JingleSessionManager* jingleSessionManager, IQRouter* router, RemoteJingleTransportCandidateSelectorFactory* remoteFactory, LocalJingleTransportCandidateGeneratorFactory* localFactory, SOCKS5BytestreamRegistry* bytestreamRegistry, SOCKS5BytestreamProxy* bytestreamProxy, TimerFactory* timerFactory);
+ IncomingFileTransferManager(
+ JingleSessionManager* jingleSessionManager,
+ IQRouter* router,
+ FileTransferTransporterFactory* transporterFactory,
+ TimerFactory* timerFactory,
+ CryptoProvider* crypto);
~IncomingFileTransferManager();
boost::signal<void (IncomingFileTransfer::ref)> onIncomingFileTransfer;
private:
- bool handleIncomingJingleSession(JingleSession::ref session, const std::vector<JingleContentPayload::ref>& contents, const JID& recipient);
+ bool handleIncomingJingleSession(
+ JingleSession::ref session,
+ const std::vector<JingleContentPayload::ref>& contents,
+ const JID& recipient);
private:
JingleSessionManager* jingleSessionManager;
IQRouter* router;
- RemoteJingleTransportCandidateSelectorFactory* remoteFactory;
- LocalJingleTransportCandidateGeneratorFactory* localFactory;
- SOCKS5BytestreamRegistry* bytestreamRegistry;
- SOCKS5BytestreamProxy* bytestreamProxy;
+ FileTransferTransporterFactory* transporterFactory;
TimerFactory* timerFactory;
+ CryptoProvider* crypto;
};
}