• Main Page
  • Classes
  • Files
  • File List

Swiften/Queries/Responders/SoftwareVersionResponder.h

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

Generated on Fri Oct 12 2012 21:00:19 for Swiften by  doxygen 1.7.1