Files
@ c5a8c3d1a986
Branch filter:
Location: libtransport.git/include/Swiften/Network/DummyNetworkFactories.cpp - annotation
c5a8c3d1a986
1.1 KiB
text/x-c++hdr
fixed compilation with latest swiften
75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 c5a8c3d1a986 c5a8c3d1a986 75bc454c85c2 c86358c64f5f ff27ec023352 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 c86358c64f5f 75bc454c85c2 75bc454c85c2 75bc454c85c2 | /*
* Copyright (c) 2010 Remko Tronçon
* Licensed under the GNU General Public License v3.
* See Documentation/Licenses/GPLv3.txt for more information.
*/
#include <Swiften/Network/DummyNetworkFactories.h>
#include <Swiften/Network/DummyTimerFactory.h>
#include <Swiften/Network/DummyConnectionFactory.h>
#include <Swiften/Network/PlatformDomainNameResolver.h>
#include <Swiften/Network/DummyConnectionServerFactory.h>
namespace Swift {
DummyNetworkFactories::DummyNetworkFactories(EventLoop* eventLoop) {
timerFactory = new DummyTimerFactory();
connectionFactory = new DummyConnectionFactory(eventLoop);
idnConverter = boost::shared_ptr<IDNConverter>(PlatformIDNConverter::create());
domainNameResolver = new PlatformDomainNameResolver(idnConverter.get(), eventLoop);
connectionServerFactory = new DummyConnectionServerFactory(eventLoop);
m_platformXMLParserFactory = new PlatformXMLParserFactory();
this->eventLoop = eventLoop;
}
DummyNetworkFactories::~DummyNetworkFactories() {
delete connectionServerFactory;
delete domainNameResolver;
delete connectionFactory;
delete timerFactory;
delete m_platformXMLParserFactory;
}
}
|