diff options
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(); + } }; } |