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