summaryrefslogtreecommitdiffstats
blob: 228d92d6a611a03e035a06765441a82a58ebce33 (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
/*
 * Copyright (c) 2010-2012 Remko Tronçon
 * Licensed under the GNU General Public License v3.
 * See Documentation/Licenses/GPLv3.txt for more information.
 */

#pragma once

namespace Swift {
	class TimerFactory;
	class ConnectionFactory;
	class DomainNameResolver;
	class ConnectionServerFactory;
	class NATTraverser;
	class XMLParserFactory;
	class TLSContextFactory;
	class CertificateFactory;
	class ProxyProvider;
	class EventLoop;
	class IDNConverter;
	class NetworkEnvironment;

	/**
	 * An interface collecting network factories.
	 */
	class NetworkFactories {
		public:
			virtual ~NetworkFactories();

			virtual TimerFactory* getTimerFactory() const = 0;
			virtual ConnectionFactory* getConnectionFactory() const = 0;
			virtual DomainNameResolver* getDomainNameResolver() const = 0;
			virtual ConnectionServerFactory* getConnectionServerFactory() const = 0;
			virtual NATTraverser* getNATTraverser() const = 0;
			virtual NetworkEnvironment* getNetworkEnvironment() const = 0;
			virtual XMLParserFactory* getXMLParserFactory() const = 0;
			virtual TLSContextFactory* getTLSContextFactory() const = 0;
			virtual ProxyProvider* getProxyProvider() const = 0;
			virtual EventLoop* getEventLoop() const = 0;
			virtual IDNConverter* getIDNConverter() const = 0;
	};
}