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

#ifndef SWIFTEN_SoftwareVersionResponder_H
#define SWIFTEN_SoftwareVersionResponder_H

#include "Swiften/Queries/GetResponder.h"
#include "Swiften/Elements/SoftwareVersion.h"

namespace Swift {
	class IQRouter;

	class SoftwareVersionResponder : public GetResponder<SoftwareVersion> {
		public:
			SoftwareVersionResponder(const String& client, const String& version, IQRouter* router);

		private:
			virtual bool handleGetRequest(const JID& from, const String& id, boost::shared_ptr<SoftwareVersion> payload);

		private:
			String client_;
			String version_;
	};
}

#endif