diff options
author | Remko Tronçon <git@el-tramo.be> | 2014-01-22 20:20:55 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2014-01-22 21:25:50 (GMT) |
commit | fe460ca46bff4f9e735db86ca072eafb3a5c8f2d (patch) | |
tree | 82ac0b3c1c29ec13dd66a7f328a93d0b14db895a /Sluift/ElementConvertors/SecurityLabelConvertor.h | |
parent | 4c83aa02da939ee3dc59b6febf70cab87e85f758 (diff) | |
download | swift-fe460ca46bff4f9e735db86ca072eafb3a5c8f2d.zip swift-fe460ca46bff4f9e735db86ca072eafb3a5c8f2d.tar.bz2 |
Sluift: Add SecurityLabel convertor
Change-Id: I59357bda2cbfcb044b5c27b41fe0c91c194e7381
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; + }; +} |