summaryrefslogtreecommitdiffstats
blob: 2693fcd4c2457a73b065b33c67328899e19e9abd (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
/*
 * Copyright (c) 2012 Mateusz Piękos
 * Licensed under the simplified BSD license.
 * See Documentation/Licenses/BSD-simplified.txt for more information.
 */

#include <Swiften/Whiteboard/OutgoingWhiteboardSession.h>

#include <boost/bind.hpp>
#include <Swiften/Elements/WhiteboardPayload.h>

namespace Swift {
	OutgoingWhiteboardSession::OutgoingWhiteboardSession(const JID& jid, IQRouter* router) : WhiteboardSession(jid, router) {
	}

	OutgoingWhiteboardSession::~OutgoingWhiteboardSession() {
	}

	void OutgoingWhiteboardSession::startSession() {
		boost::shared_ptr<WhiteboardPayload> payload = boost::make_shared<WhiteboardPayload>(WhiteboardPayload::SessionRequest);
		boost::shared_ptr<GenericRequest<WhiteboardPayload> > request = boost::make_shared<GenericRequest<WhiteboardPayload> >(IQ::Set, toJID_, payload, router_);
		request->send();
	}
}