summaryrefslogtreecommitdiffstats
blob: 585a689277f20d447e2e38169752262d061dcb1c (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) 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();
	}

	std::string OutgoingWhiteboardSession::getClientID() const {
		return "a";
	}
}