00001
00002
00003
00004
00005
00006
00007 #pragma once
00008
00009 #include <Swiften/Elements/Payload.h>
00010 #include <string>
00011
00012 namespace Swift {
00013 class Nickname : public Payload {
00014 public:
00015 Nickname(const std::string& nickname = "") : nickname(nickname) {
00016 }
00017
00018 void setNickname(const std::string& nickname) {
00019 this->nickname = nickname;
00020 }
00021
00022 const std::string& getNickname() const {
00023 return nickname;
00024 }
00025
00026 private:
00027 std::string nickname;
00028 };
00029 }