• Main Page
  • Classes
  • Files
  • File List

Swiften/Elements/Version.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 <string>
00010 #include <Swiften/Elements/Payload.h>
00011 
00012 namespace Swift {
00013   class Version : public Payload {
00014     public:
00015       Version(const std::string& name = "", const std::string& version = "", const std::string& os = "") : name_(name), version_(version), os_(os) { }
00016 
00017       const std::string& getName() const { return name_; }
00018       const std::string& getVersion() const { return version_; }
00019       const std::string& getOS() const { return os_; }
00020 
00021     private:
00022       std::string name_;
00023       std::string version_;
00024       std::string os_;
00025   };
00026 }

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