summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Elements/InBandRegistrationPayload.h')
-rw-r--r--Swiften/Elements/InBandRegistrationPayload.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/Swiften/Elements/InBandRegistrationPayload.h b/Swiften/Elements/InBandRegistrationPayload.h
index 6dafa04..1a293ba 100644
--- a/Swiften/Elements/InBandRegistrationPayload.h
+++ b/Swiften/Elements/InBandRegistrationPayload.h
@@ -18,7 +18,7 @@ namespace Swift {
public:
typedef boost::shared_ptr<InBandRegistrationPayload> ref;
- InBandRegistrationPayload() : registered(false) {}
+ InBandRegistrationPayload() : registered(false), remove(false) {}
Form::ref getForm() const { return form; }
void setForm(Form::ref f) { form = f; }
@@ -31,6 +31,14 @@ namespace Swift {
registered = b;
}
+ bool isRemove() const {
+ return remove;
+ }
+
+ void setRemove(bool b) {
+ remove = b;
+ }
+
const boost::optional<String>& getInstructions() const {
return instructions;
}
@@ -175,10 +183,10 @@ namespace Swift {
this->key = v;
}
-
private:
Form::ref form;
bool registered;
+ bool remove;
boost::optional<String> instructions;
boost::optional<String> username;
boost::optional<String> nick;