/* * Copyright (c) 2013 Tobias Markmann * Licensed under the simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ /* * Copyright (c) 2014-2016 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include #include #include #include namespace Swift { class RequestInviteToMUCUIEvent : public UIEvent { public: typedef std::shared_ptr ref; enum ImpromptuMode { Impromptu, NotImpromptu }; RequestInviteToMUCUIEvent(const JID& room, const std::vector& JIDsToInvite, ImpromptuMode impromptu) : room_(room), invite_(JIDsToInvite) { isImpromptu_ = impromptu == Impromptu; } const JID& getRoom() const { return room_; } const std::vector getInvites() const { return invite_; } bool isImpromptu() const { return isImpromptu_; } private: JID room_; std::vector invite_; bool isImpromptu_; }; }