diff options
author | Reinhard Tartler <siretart@tauware.de> | 2010-11-09 17:28:58 +0100 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2010-11-09 17:28:58 +0100 |
commit | 8a937bd354001a190dbe66538aacb353e7c99341 (patch) | |
tree | 9db021722d1743482e76f93d00fb97bed32a3ea7 /bin/bbstored/HousekeepStoreAccount.h | |
parent | b591c86a418e8d5a0d1c1afd319d9acdad6fd4e3 (diff) |
Import upstream version 0.11~rc8~r2714
Diffstat (limited to 'bin/bbstored/HousekeepStoreAccount.h')
-rw-r--r-- | bin/bbstored/HousekeepStoreAccount.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/bin/bbstored/HousekeepStoreAccount.h b/bin/bbstored/HousekeepStoreAccount.h index 5c2a9885..1dd6d79c 100644 --- a/bin/bbstored/HousekeepStoreAccount.h +++ b/bin/bbstored/HousekeepStoreAccount.h @@ -17,6 +17,12 @@ class BackupStoreDaemon; class BackupStoreDirectory; +class HousekeepingCallback +{ + public: + virtual ~HousekeepingCallback() {} + virtual bool CheckForInterProcessMsg(int AccountNum = 0, int MaximumWaitTime = 0) = 0; +}; // -------------------------------------------------------------------------- // @@ -29,10 +35,11 @@ class BackupStoreDirectory; class HousekeepStoreAccount { public: - HousekeepStoreAccount(int AccountID, const std::string &rStoreRoot, int StoreDiscSet, BackupStoreDaemon &rDaemon); + HousekeepStoreAccount(int AccountID, const std::string &rStoreRoot, + int StoreDiscSet, HousekeepingCallback* pHousekeepingCallback); ~HousekeepStoreAccount(); - void DoHousekeeping(); + void DoHousekeeping(bool KeepTryingForever = false); private: @@ -65,7 +72,7 @@ private: int mAccountID; std::string mStoreRoot; int mStoreDiscSet; - BackupStoreDaemon &mrDaemon; + HousekeepingCallback* mpHousekeepingCallback; int64_t mDeletionSizeTarget; @@ -91,6 +98,10 @@ private: // Deletion count int64_t mFilesDeleted; int64_t mEmptyDirectoriesDeleted; + + // New reference count list + std::vector<uint32_t> mNewRefCounts; + bool mSuppressRefCountChangeWarnings; // Poll frequency int mCountUntilNextInterprocessMsgCheck; |