diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-08-15 15:07:41 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-08-15 15:07:41 +0200 |
commit | c1cb92bc30256171bfafb22cf8512142afee97cf (patch) | |
tree | a7ed702b1f260b928a91c1a2852bb2aaf7382c92 /src/modules/UserConfigBackendKrb5/Module.h | |
parent | d7edb4799b63b9bbde25a0d04603476aaf8acd50 (diff) | |
download | mad-c1cb92bc30256171bfafb22cf8512142afee97cf.tar mad-c1cb92bc30256171bfafb22cf8512142afee97cf.zip |
UserConfigBackendKrb5 hinzugefügt
Diffstat (limited to 'src/modules/UserConfigBackendKrb5/Module.h')
-rw-r--r-- | src/modules/UserConfigBackendKrb5/Module.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/modules/UserConfigBackendKrb5/Module.h b/src/modules/UserConfigBackendKrb5/Module.h new file mode 100644 index 0000000..b3d29a6 --- /dev/null +++ b/src/modules/UserConfigBackendKrb5/Module.h @@ -0,0 +1,52 @@ +/* + * Module.h + * + * Copyright (C) 2009 Matthias Schiffer <matthias@gamezock.de> + * + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as published by the + * Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License along + * with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef MAD_MODULES_USERCONFIGBACKENDKRB5_MODULE_H_ +#define MAD_MODULES_USERCONFIGBACKENDKRB5_MODULE_H_ + +#include "UserConfigBackendKrb5.h" + +#include <Common/Module.h> +#include <Common/UserManager.h> + +namespace Mad { +namespace Modules { +namespace UserConfigBackendKrb5 { + +class Module : public Common::Module { + private: + Common::Application *application; + + boost::shared_ptr<UserConfigBackendKrb5> backend; + + public: + Module(Common::Application *application0) : application(application0), backend(new UserConfigBackendKrb5(application)) { + application->getUserManager()->registerBackend(backend); + } + + virtual ~Module() { + application->getUserManager()->unregisterBackend(backend); + } +}; + +} +} +} + +#endif /* MAD_MODULES_USERCONFIGBACKENDKRB5_MODULE_H_ */ |