summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-11-16 19:32:48 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-11-16 19:32:48 (GMT)
commit2c5ef44b56d9c45254ea331a53fb6d8fe6efe7d1 (patch)
treee6e63729cbde4a894627a381af8dd6c4f7557a78 /Swiften/Elements
parent999f19158672bd6c91fa274a9f8e968b84f8a931 (diff)
downloadswift-2c5ef44b56d9c45254ea331a53fb6d8fe6efe7d1.zip
swift-2c5ef44b56d9c45254ea331a53fb6d8fe6efe7d1.tar.bz2
Added In-band-registration unsubscribe support to Swiften.
Diffstat (limited to 'Swiften/Elements')
-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;