/* * Copyright (c) 2010 Remko Tronçon * Licensed under the GNU General Public License v3. * See Documentation/Licenses/GPLv3.txt for more information. */ #pragma once #include #include #include "Swiften/Elements/Payload.h" #include "Swiften/Elements/Form.h" #include "Swiften/Base/String.h" namespace Swift { class InBandRegistrationPayload : public Payload { public: typedef boost::shared_ptr ref; InBandRegistrationPayload() : registered(false), remove(false) {} Form::ref getForm() const { return form; } void setForm(Form::ref f) { form = f; } bool isRegistered() const { return registered; } void setRegistered(bool b) { registered = b; } bool isRemove() const { return remove; } void setRemove(bool b) { remove = b; } const boost::optional& getInstructions() const { return instructions; } const boost::optional& getUsername() const { return username; } const boost::optional& getNick() const { return nick; } const boost::optional& getPassword() const { return password; } const boost::optional& getName() const { return name; } const boost::optional& getFirst() const { return first; } const boost::optional& getLast() const { return last; } const boost::optional& getEMail() const { return email; } const boost::optional& getAddress() const { return address; } const boost::optional& getCity() const { return city; } const boost::optional& getState() const { return state; } const boost::optional& getZip() const { return zip; } const boost::optional& getPhone() const { return phone; } const boost::optional& getURL() const { return url; } const boost::optional& getDate() const { return date; } const boost::optional& getMisc() const { return misc; } const boost::optional& getText() const { return text; } const boost::optional& getKey() const { return key; } void setInstructions(const String& v) { this->instructions = v; } void setUsername(const String& v) { this->username = v; } void setNick(const String& v) { this->nick = v; } void setPassword(const String& v) { this->password = v; } void setName(const String& v) { this->name = v; } void setFirst(const String& v) { this->first = v; } void setLast(const String& v) { this->last = v; } void setEMail(const String& v) { this->email = v; } void setAddress(const String& v) { this->address = v; } void setCity(const String& v) { this->city = v; } void setState(const String& v) { this->state = v; } void setZip(const String& v) { this->zip = v; } void setPhone(const String& v) { this->phone = v; } void setURL(const String& v) { this->url = v; } void setDate(const String& v) { this->date = v; } void setMisc(const String& v) { this->misc = v; } void setText(const String& v) { this->text = v; } void setKey(const String& v) { this->key = v; } private: Form::ref form; bool registered; bool remove; boost::optional instructions; boost::optional username; boost::optional nick; boost::optional password; boost::optional name; boost::optional first; boost::optional last; boost::optional email; boost::optional address; boost::optional city; boost::optional state; boost::optional zip; boost::optional phone; boost::optional url; boost::optional date; boost::optional misc; boost::optional text; boost::optional key; }; }