summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Elements')
-rw-r--r--Swiften/Elements/MUCInvitationPayload.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/Swiften/Elements/MUCInvitationPayload.h b/Swiften/Elements/MUCInvitationPayload.h
index ebae61a..290c585 100644
--- a/Swiften/Elements/MUCInvitationPayload.h
+++ b/Swiften/Elements/MUCInvitationPayload.h
@@ -15,7 +15,7 @@ namespace Swift {
class MUCInvitationPayload : public Payload {
public:
typedef boost::shared_ptr<MUCInvitationPayload> ref;
- MUCInvitationPayload() : continuation_(false) {
+ MUCInvitationPayload() : continuation_(false), impromptu_(false) {
}
void setIsContinuation(bool b) {
@@ -26,6 +26,14 @@ namespace Swift {
return continuation_;
}
+ void setIsImpromptu(bool b) {
+ impromptu_ = b;
+ }
+
+ bool getIsImpromptu() const {
+ return impromptu_;
+ }
+
void setJID(const JID& jid) {
jid_ = jid;
}
@@ -60,6 +68,7 @@ namespace Swift {
private:
bool continuation_;
+ bool impromptu_;
JID jid_;
std::string password_;
std::string reason_;