diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-04-02 20:46:42 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-04-18 19:11:41 (GMT) |
commit | 40587e704a2a8dfe7d29cc2e28e140f01c9f86bc (patch) | |
tree | 1e7b339e6d4038c34e033088469f244ff971f496 /Swift/Controllers/UIEvents | |
parent | e3d2137622cea23298f203801bc698eff08e0ea1 (diff) | |
download | swift-contrib-40587e704a2a8dfe7d29cc2e28e140f01c9f86bc.zip swift-contrib-40587e704a2a8dfe7d29cc2e28e140f01c9f86bc.tar.bz2 |
Added RFC5122 XMPP URI parsing and basic handling.
URI Handling currently only works on Mac OS X.
Diffstat (limited to 'Swift/Controllers/UIEvents')
-rw-r--r-- | Swift/Controllers/UIEvents/RequestJoinMUCUIEvent.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Swift/Controllers/UIEvents/RequestJoinMUCUIEvent.h b/Swift/Controllers/UIEvents/RequestJoinMUCUIEvent.h index dd2ff6c..2c7b105 100644 --- a/Swift/Controllers/UIEvents/RequestJoinMUCUIEvent.h +++ b/Swift/Controllers/UIEvents/RequestJoinMUCUIEvent.h @@ -6,18 +6,25 @@ #pragma once -#include <boost/optional.hpp> #include <boost/shared_ptr.hpp> - #include <string> + #include <Swift/Controllers/UIEvents/UIEvent.h> +#include <Swiften/JID/JID.h> namespace Swift { class RequestJoinMUCUIEvent : public UIEvent { public: typedef boost::shared_ptr<RequestJoinMUCUIEvent> ref; - RequestJoinMUCUIEvent() { + RequestJoinMUCUIEvent(const JID& room = JID()) : room(room) { } + + const JID& getRoom() const { + return room; + } + + private: + JID room; }; } |