/* * Copyright (c) 2012 Yoann Blein * Licensed under the simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ #include #include #include #include namespace Swift { OutgoingScreenSharingManager::OutgoingScreenSharingManager(JingleSessionManager* jingleSessionManager,IQRouter* router, UDPSocketFactory *udpSocketFactory, TimerFactory* timerFactory) : jsManager(jingleSessionManager), iqRouter(router), udpSocketFactory(udpSocketFactory), timerFactory(timerFactory) { } boost::shared_ptr OutgoingScreenSharingManager::createOutgoingScreenSharing(const JID& from, const JID& to) { JingleSessionImpl::ref jingleSession = boost::make_shared(from, to, idGenerator.generateID(), iqRouter); assert(jingleSession); jsManager->registerOutgoingSession(from, jingleSession); return boost::make_shared(jingleSession, udpSocketFactory, timerFactory); } }