/* * Copyright (c) 2012 Yoann Blein * Licensed under the simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ #include #include #include namespace Swift { ScreenSharingManagerImpl::ScreenSharingManagerImpl(const JID& ownFullJID, JingleSessionManager *jingleSessionManager, IQRouter *iqRouter, UDPSocketFactory* udpSocketFactory, TimerFactory* timerFactory) : ownJID(ownFullJID)/*, jingleSM(jingleSessionManager), iqRouter(iqRouter), udpSocketFactory(udpSocketFactory), timerFactory(timerFactory)*/ { incomingSSManager = new IncomingScreenSharingManager(jingleSessionManager, iqRouter, udpSocketFactory); outgoingSSManager = new OutgoingScreenSharingManager(jingleSessionManager, iqRouter, udpSocketFactory, timerFactory); incomingSSManager->onIncomingScreenSharing.connect(onIncomingScreenSharing); } ScreenSharingManagerImpl::~ScreenSharingManagerImpl() { } boost::shared_ptr ScreenSharingManagerImpl::createOutgoingScreenSharing(const JID &to) { JID receipient = to; if (receipient.isBare()) { //boost::optional fullJID = highestPriorityJIDSupportingFileTransfer(receipient); //if (fullJID.is_initialized()) { // receipient = fullJID.get(); //} else { return boost::shared_ptr(); //} } return outgoingSSManager->createOutgoingScreenSharing(ownJID, receipient); } }