• Main Page
  • Classes
  • Files
  • File List

Swiften/Elements/SoftwareVersion.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 <boost/shared_ptr.hpp>
00011 
00012 #include <Swiften/Base/API.h>
00013 #include <Swiften/Elements/Payload.h>
00014 
00015 namespace Swift {
00016   class SWIFTEN_API SoftwareVersion : public Payload {
00017     public:
00018       typedef boost::shared_ptr<SoftwareVersion> ref;
00019 
00020       SoftwareVersion(
00021           const std::string& name = "", 
00022           const std::string& version = "",
00023           const std::string& os = "") : 
00024             name_(name), version_(version), os_(os) {}
00025       
00026       const std::string& getName() const {
00027         return name_;
00028       }
00029 
00030       void setName(const std::string& name) {
00031         name_ = name;
00032       }
00033 
00034       const std::string& getVersion() const {
00035         return version_;
00036       }
00037 
00038       void setVersion(const std::string& version) {
00039         version_ = version;
00040       }
00041 
00042       const std::string& getOS() const {
00043         return os_;
00044       }
00045 
00046       void setOS(const std::string& os) {
00047         os_ = os;
00048       }
00049 
00050     private:
00051       std::string name_;
00052       std::string version_;
00053       std::string os_;
00054   };
00055 }

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