diff options
Diffstat (limited to 'Swiften/Jingle/FakeJingleSession.cpp')
-rw-r--r-- | Swiften/Jingle/FakeJingleSession.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/Swiften/Jingle/FakeJingleSession.cpp b/Swiften/Jingle/FakeJingleSession.cpp index 3b94da7..864dd53 100644 --- a/Swiften/Jingle/FakeJingleSession.cpp +++ b/Swiften/Jingle/FakeJingleSession.cpp @@ -2,13 +2,13 @@ * Copyright (c) 2011 Tobias Markmann * Licensed under the simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ /* - * Copyright (c) 2014 Isode Limited. + * Copyright (c) 2014-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #include <Swiften/Jingle/FakeJingleSession.h> #include <Swiften/Jingle/JingleSessionListener.h> @@ -58,7 +58,23 @@ void FakeJingleSession::sendTransportReplace(const JingleContentID& id, JingleTr } void FakeJingleSession::handleTransportReplaceReceived(const JingleContentID& contentID, JingleTransportPayload::ref transport) { notifyListeners(&JingleSessionListener::handleTransportReplaceReceived, contentID, transport); } +void FakeJingleSession::handleTransportAcceptReceived(const JingleContentID& contentID, JingleTransportPayload::ref transport) { + notifyListeners(&JingleSessionListener::handleTransportAcceptReceived, contentID, transport); +} + +void FakeJingleSession::handleTransportInfoReceived(const JingleContentID& contentID, JingleTransportPayload::ref transport) { + notifyListeners(&JingleSessionListener::handleTransportInfoReceived, contentID, transport); +} + +void FakeJingleSession::handleSessionTerminateReceived(boost::optional<JinglePayload::Reason> reason) { + notifyListeners(&JingleSessionListener::handleSessionTerminateReceived, reason); +} + +void FakeJingleSession::handleSessionAcceptReceived(const JingleContentID& contentID, boost::shared_ptr<JingleDescription> desc, boost::shared_ptr<JingleTransportPayload> payload) { + notifyListeners(&JingleSessionListener::handleSessionAcceptReceived, contentID, desc, payload); +} + } |