• Main Page
  • Classes
  • Files
  • File List

Swiften/Elements/ProtocolHeader.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 
00011 namespace Swift {
00012   class ProtocolHeader {
00013     public:
00014       ProtocolHeader() : version("1.0") {}
00015 
00016       const std::string& getTo() const { return to; }
00017       void setTo(const std::string& a)  { 
00018         to = a;
00019       }
00020 
00021       const std::string& getFrom() const { return from; }
00022       void setFrom(const std::string& a)  { 
00023         from = a;
00024       }
00025 
00026       const std::string& getVersion() const { return version; }
00027       void setVersion(const std::string& a)  { 
00028         version = a;
00029       }
00030 
00031       const std::string& getID() const { return id; }
00032       void setID(const std::string& a)  { 
00033         id = a;
00034       }
00035   
00036     private:
00037       std::string to;
00038       std::string from;
00039       std::string id;
00040       std::string version;
00041   };
00042 }

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