From caeb73a2cdf6db24490bbe3657372fb1ba52b78e Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 15 Jul 2009 23:11:54 +0200 Subject: =?UTF-8?q?UserManager=20=C3=BCberarbeitet=20UserConfigBackend=20e?= =?UTF-8?q?ingef=C3=BChrt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Common/UserCache.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/Common/UserCache.h') diff --git a/src/Common/UserCache.h b/src/Common/UserCache.h index 1425908..ff70520 100644 --- a/src/Common/UserCache.h +++ b/src/Common/UserCache.h @@ -20,7 +20,7 @@ #ifndef MAD_COMMON_USERCACHE_H_ #define MAD_COMMON_USERCACHE_H_ -#include "UserBackend.h" +#include "UserDBBackend.h" #include @@ -32,13 +32,13 @@ namespace Common { class Application; class UserManager; -class UserCache : public UserBackend, private boost::noncopyable { +class UserCache : public UserDBBackend, private boost::noncopyable { private: friend class UserManager; Application *application; - boost::shared_ptr backend; + boost::shared_ptr backend; boost::recursive_mutex mutex; @@ -106,9 +106,14 @@ class UserCache : public UserBackend, private boost::noncopyable { backend->deleteUserFromGroup(uid, gid); } - UserCache(Application *application0, boost::shared_ptr backend0) : application(application0), backend(backend0), + UserCache(Application *application0, boost::shared_ptr backend0) : application(application0), backend(backend0), userTime(boost::posix_time::not_a_date_time), groupTime(boost::posix_time::not_a_date_time), userGroupTime(boost::posix_time::not_a_date_time) {} + + public: + virtual const std::string& getName() { + return backend->getName(); + } }; } -- cgit v1.2.3