diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-07-15 23:11:54 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-07-15 23:11:54 +0200 |
commit | caeb73a2cdf6db24490bbe3657372fb1ba52b78e (patch) | |
tree | adf4f812f7a18fe35d8bc49cb7b1ef6e8ea513a8 /src/Common/UserCache.h | |
parent | 5c18630e1c81ac5267c9356e27c1a8f81b4ef6f7 (diff) | |
download | mad-caeb73a2cdf6db24490bbe3657372fb1ba52b78e.tar mad-caeb73a2cdf6db24490bbe3657372fb1ba52b78e.zip |
UserManager überarbeitet
UserConfigBackend eingeführt
Diffstat (limited to 'src/Common/UserCache.h')
-rw-r--r-- | src/Common/UserCache.h | 13 |
1 files changed, 9 insertions, 4 deletions
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 <limits> @@ -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<UserBackend> backend; + boost::shared_ptr<UserDBBackend> 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<UserBackend> backend0) : application(application0), backend(backend0), + UserCache(Application *application0, boost::shared_ptr<UserDBBackend> 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(); + } }; } |