diff options
Diffstat (limited to 'Sluift/ElementConvertors/SecurityLabelConvertor.h')
-rw-r--r-- | Sluift/ElementConvertors/SecurityLabelConvertor.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Sluift/ElementConvertors/SecurityLabelConvertor.h b/Sluift/ElementConvertors/SecurityLabelConvertor.h new file mode 100644 index 0000000..ac95429 --- /dev/null +++ b/Sluift/ElementConvertors/SecurityLabelConvertor.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2010-2014 Remko Tronçon + * Licensed under the GNU General Public License. + * See the COPYING file for more information. + */ + +#pragma once + +#include <Swiften/Base/Override.h> + +#include <Sluift/GenericLuaElementConvertor.h> +#include <Swiften/Elements/SecurityLabel.h> + +namespace Swift { + class LuaElementConvertors; + + class SecurityLabelConvertor : public GenericLuaElementConvertor<SecurityLabel> { + public: + SecurityLabelConvertor(LuaElementConvertors* convertors); + virtual ~SecurityLabelConvertor(); + + virtual boost::shared_ptr<SecurityLabel> doConvertFromLua(lua_State*) SWIFTEN_OVERRIDE; + virtual void doConvertToLua(lua_State*, boost::shared_ptr<SecurityLabel>) SWIFTEN_OVERRIDE; + virtual boost::optional<Documentation> getDocumentation() const SWIFTEN_OVERRIDE; + + private: + LuaElementConvertors* convertors; + }; +} |