summaryrefslogtreecommitdiffstats
blob: 6e47ac670a8919e4ad2876f58f3151e4e44c91ef (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
/*
 * Copyright (c) 2015-2016 Isode Limited.
 * All rights reserved.
 * See the COPYING file for more information.
 */

#include <Swiften/FileTransfer/IBBReceiveTransportSession.h>

#include <boost/bind.hpp>

namespace Swift {

IBBReceiveTransportSession::IBBReceiveTransportSession(std::shared_ptr<IBBReceiveSession> session) : session(session) {
    finishedConnection = session->onFinished.connect(boost::bind(boost::ref(onFinished), _1));
}

IBBReceiveTransportSession::~IBBReceiveTransportSession() {
}

void IBBReceiveTransportSession::start() {
    session->start();
}

void IBBReceiveTransportSession::stop() {
    session->stop();
}

}