diff options
| author | Richard Maudsley <richard.maudsley@isode.com> | 2014-04-15 14:49:05 (GMT) |
|---|---|---|
| committer | Richard Maudsley <richard.maudsley@isode.com> | 2014-04-25 08:38:30 (GMT) |
| commit | b42a5c5849813fe8db3bd3889378a53238cc36f7 (patch) | |
| tree | 2c9265025c0281acfde3077d884e17c834400358 /Swift/Controllers/UIEvents | |
| parent | d5f701fdd6826421c0c83b8e299918065b6c99d1 (diff) | |
| download | swift-contrib-b42a5c5849813fe8db3bd3889378a53238cc36f7.zip swift-contrib-b42a5c5849813fe8db3bd3889378a53238cc36f7.tar.bz2 | |
Hide reason field in impromptu chat invites.
Change-Id: Icb5075f85a23fc181ff8f5ee00633bb768c4eb5f
Diffstat (limited to 'Swift/Controllers/UIEvents')
| -rw-r--r-- | Swift/Controllers/UIEvents/RequestInviteToMUCUIEvent.h | 19 |
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 @@ -5,4 +5,10 @@ */ +/* + * 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 @@ -18,5 +24,11 @@ namespace Swift { 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; } @@ -29,7 +41,12 @@ namespace Swift { } + bool isImpromptu() const { + return isImpromptu_; + } + private: JID room_; std::vector<JID> invite_; + bool isImpromptu_; }; } |
Swift