diff options
Diffstat (limited to 'Swift/Controllers/UIEvents/RequestAddUserDialogUIEvent.h')
-rw-r--r-- | Swift/Controllers/UIEvents/RequestAddUserDialogUIEvent.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Swift/Controllers/UIEvents/RequestAddUserDialogUIEvent.h b/Swift/Controllers/UIEvents/RequestAddUserDialogUIEvent.h index bfa4a8b..26f48cb 100644 --- a/Swift/Controllers/UIEvents/RequestAddUserDialogUIEvent.h +++ b/Swift/Controllers/UIEvents/RequestAddUserDialogUIEvent.h @@ -7,9 +7,23 @@ #pragma once #include "Swift/Controllers/UIEvents/UIEvent.h" +#include <string> +#include <Swiften/JID/JID.h> + namespace Swift { class RequestAddUserDialogUIEvent : public UIEvent { + public: + RequestAddUserDialogUIEvent(const JID& predefinedJID, const std::string& predefinedName) : preJID_(predefinedJID), preName_(predefinedName) {}; + RequestAddUserDialogUIEvent() : preJID_(JID()), preName_(std::string()) {}; + + const JID& getPredefinedJID() const { return preJID_; }; + const std::string& getPredefinedName() const { return preName_; }; + + private: + const JID& preJID_; + const std::string& preName_; + }; } |