summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/Controllers/UIEvents/RequestInviteToMUCUIEvent.h')
-rw-r--r--Swift/Controllers/UIEvents/RequestInviteToMUCUIEvent.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/Swift/Controllers/UIEvents/RequestInviteToMUCUIEvent.h b/Swift/Controllers/UIEvents/RequestInviteToMUCUIEvent.h
index 69aa0cd..58f45d1 100644
--- a/Swift/Controllers/UIEvents/RequestInviteToMUCUIEvent.h
+++ b/Swift/Controllers/UIEvents/RequestInviteToMUCUIEvent.h
@@ -1,35 +1,52 @@
/*
* Copyright (c) 2013 Tobias Markmann
* Licensed under the simplified BSD license.
* See Documentation/Licenses/BSD-simplified.txt for more information.
*/
+/*
+ * Copyright (c) 2014 Kevin Smith and Remko Tronçon
+ * Licensed under the GNU General Public License v3.
+ * See Documentation/Licenses/GPLv3.txt for more information.
+ */
+
#pragma once
#include <boost/shared_ptr.hpp>
#include <vector>
#include <Swift/Controllers/UIEvents/UIEvent.h>
#include <Swiften/JID/JID.h>
namespace Swift {
class RequestInviteToMUCUIEvent : public UIEvent {
public:
typedef boost::shared_ptr<RequestInviteToMUCUIEvent> ref;
- RequestInviteToMUCUIEvent(const JID& room, const std::vector<JID>& JIDsToInvite) : room_(room), invite_(JIDsToInvite) {
+ enum ImpromptuMode {
+ Impromptu,
+ NotImpromptu
+ };
+
+ RequestInviteToMUCUIEvent(const JID& room, const std::vector<JID>& JIDsToInvite, ImpromptuMode impromptu) : room_(room), invite_(JIDsToInvite) {
+ isImpromptu_ = impromptu == Impromptu;
}
const JID& getRoom() const {
return room_;
}
const std::vector<JID> getInvites() const {
return invite_;
}
+ bool isImpromptu() const {
+ return isImpromptu_;
+ }
+
private:
JID room_;
std::vector<JID> invite_;
+ bool isImpromptu_;
};
}