diff options
author | Chris Wilson <chris+github@qwirx.com> | 2009-06-27 11:38:52 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2009-06-27 11:38:52 +0000 |
commit | cac51d0017b98ea98a16cdd2100e4fe20d3a74ac (patch) | |
tree | b33106585470584d080aa6f9b614871656ed9e63 /lib/backupstore/BackupStoreAccounts.h | |
parent | c6bab91bf0940f900a1831d4246f52d5768dd495 (diff) |
Add code for BackupStoreRefCountDatabase.
Create a refcount database when creating a new account.
Add an easier way to get the account root directory.
Diffstat (limited to 'lib/backupstore/BackupStoreAccounts.h')
-rw-r--r-- | lib/backupstore/BackupStoreAccounts.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/backupstore/BackupStoreAccounts.h b/lib/backupstore/BackupStoreAccounts.h index 0c3dd103..224d7353 100644 --- a/lib/backupstore/BackupStoreAccounts.h +++ b/lib/backupstore/BackupStoreAccounts.h @@ -12,7 +12,7 @@ #include <string> -class BackupStoreAccountDatabase; +#include "BackupStoreAccountDatabase.h" // -------------------------------------------------------------------------- // @@ -35,9 +35,14 @@ public: bool AccountExists(int32_t ID); void GetAccountRoot(int32_t ID, std::string &rRootDirOut, int &rDiscSetOut) const; + static std::string GetAccountRoot(const + BackupStoreAccountDatabase::Entry &rEntry) + { + return MakeAccountRootDir(rEntry.GetID(), rEntry.GetDiscSet()); + } private: - std::string MakeAccountRootDir(int32_t ID, int DiscSet) const; + static std::string MakeAccountRootDir(int32_t ID, int DiscSet); private: BackupStoreAccountDatabase &mrDatabase; |