00001
00002
00003
00004
00005
00006
00007 #pragma once
00008
00009 #include <Swiften/Base/API.h>
00010 #include <Swiften/Queries/GetResponder.h>
00011 #include <Swiften/Elements/SoftwareVersion.h>
00012
00013 namespace Swift {
00014 class IQRouter;
00015
00016 class SWIFTEN_API SoftwareVersionResponder : public GetResponder<SoftwareVersion> {
00017 public:
00018 SoftwareVersionResponder(IQRouter* router);
00019
00020 void setVersion(const std::string& client, const std::string& version, const std::string& os = "");
00021
00022 private:
00023 virtual bool handleGetRequest(const JID& from, const JID& to, const std::string& id, boost::shared_ptr<SoftwareVersion> payload);
00024
00025 private:
00026 std::string client;
00027 std::string version;
00028 std::string os;
00029 };
00030 }