diff options
Diffstat (limited to 'Swift/Controllers/UIEvents/RenameGroupUIEvent.h')
-rw-r--r-- | Swift/Controllers/UIEvents/RenameGroupUIEvent.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Swift/Controllers/UIEvents/RenameGroupUIEvent.h b/Swift/Controllers/UIEvents/RenameGroupUIEvent.h new file mode 100644 index 0000000..1825d77 --- /dev/null +++ b/Swift/Controllers/UIEvents/RenameGroupUIEvent.h @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2010 Remko Tronçon + * Licensed under the GNU General Public License v3. + * See Documentation/Licenses/GPLv3.txt for more information. + */ + +#pragma once + +#include <Swift/Controllers/UIEvents/UIEvent.h> +#include <Swiften/Base/String.h> + +namespace Swift { + class RenameGroupUIEvent : public UIEvent { + public: + RenameGroupUIEvent(const String& group, const String& newName) : group(group), newName(newName) { + } + + const String& getGroup() const { + return group; + } + + const String& getNewName() const { + return newName; + } + + private: + String group; + String newName; + }; +} |