summaryrefslogtreecommitdiffstats
blob: e608f241002b3019cfd2a923fe118c33b2977878 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "Swiften/Queries/Responders/SoftwareVersionResponder.h"
#include "Swiften/Queries/IQRouter.h"

namespace Swift {

SoftwareVersionResponder::SoftwareVersionResponder(
		const String& client, const String& version, IQRouter* router) : 
			GetResponder<SoftwareVersion>(router),  client_(client), version_(version) {
}

bool SoftwareVersionResponder::handleGetRequest(const JID& from, const String& id, boost::shared_ptr<SoftwareVersion>) {
	sendResponse(from, id, boost::shared_ptr<SoftwareVersion>(new SoftwareVersion(client_, version_)));
	return true;
}

}