• Main Page
  • Classes
  • Files
  • File List

Swiften/Elements/Body.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 #include <Swiften/Elements/Payload.h>
00012 
00013 namespace Swift {
00014   class Body : public Payload {
00015     public:
00016       Body(const std::string& text = "") : text_(text) {
00017       }
00018 
00019       void setText(const std::string& text) {
00020         text_ = text;
00021       }
00022 
00023       const std::string& getText() const {
00024         return text_;
00025       }
00026 
00027     private:
00028       std::string text_;
00029   };
00030 }

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