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

#include <Swiften/Jingle/JingleSessionImpl.h>

#include <boost/smart_ptr/make_shared.hpp>

namespace Swift {

JingleSessionImpl::JingleSessionImpl(const JID& initiator, const std::string& id) : JingleSession(initiator, id) {
}

void JingleSessionImpl::handleIncomingAction(JinglePayload::ref) {
}

void JingleSessionImpl::terminate(JinglePayload::Reason::Type reason) {
	JinglePayload::ref payload = boost::make_shared<JinglePayload>(JinglePayload::SessionTerminate, getID());
	payload->setReason(JinglePayload::Reason(reason));
	//onAction(payload)
}

void JingleSessionImpl::acceptTransport(const JingleContentID&, JingleTransportPayload::ref) {

}

void JingleSessionImpl::rejectTransport(const JingleContentID&, JingleTransportPayload::ref) {

}

void JingleSessionImpl::accept(JingleTransportPayload::ref) {
}

void JingleSessionImpl::sendTransportInfo(const JingleContentID&, JingleTransportPayload::ref) {

}



}