diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-05-28 15:24:05 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-05-28 15:24:05 +0000 |
commit | 1aaa7a42e7bd65902a07f29881b68acb45255d24 (patch) | |
tree | fe8983cd01778c757dea772933ca6654c852ab3c /bin/bbackupd/BackupClientContext.h | |
parent | 441373e3cf2b6c1f4f119c4a4b0d494a6645b5c2 (diff) |
Track and log file deletions by name.
Split crypto init and file sync process into its own method, to reduce
call depth and facilitate calling in process from tests.
Differentiate between 3 uses of stat in BackupClientDirectoryRecord by
renaming the structures.
Use stat instead of lstat when checking the filesystem that's holding an
entity, in case it's a symbolic link to a different filesystem.
Diffstat (limited to 'bin/bbackupd/BackupClientContext.h')
-rw-r--r-- | bin/bbackupd/BackupClientContext.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/bbackupd/BackupClientContext.h b/bin/bbackupd/BackupClientContext.h index 1504cc72..0e82cf24 100644 --- a/bin/bbackupd/BackupClientContext.h +++ b/bin/bbackupd/BackupClientContext.h @@ -12,6 +12,7 @@ #include "BoxTime.h" #include "BackupClientDeleteList.h" +#include "BackupClientDirectoryRecord.h" #include "BackupStoreFile.h" #include "ExcludeList.h" #include "Timer.h" @@ -45,7 +46,8 @@ public: int32_t AccountNumber, bool ExtendedLogging, bool ExtendedLogToFile, - std::string ExtendedLogFile + std::string ExtendedLogFile, + ProgressNotifier &rProgressNotifier ); virtual ~BackupClientContext(); private: @@ -70,6 +72,7 @@ public: int64_t GetClientStoreMarker() const {return mClientStoreMarker;} bool StorageLimitExceeded() {return mStorageLimitExceeded;} + void SetStorageLimitExceeded() {mStorageLimitExceeded = true;} // -------------------------------------------------------------------------- // @@ -198,6 +201,11 @@ public: virtual int GetMaximumDiffingTime(); virtual bool IsManaged() { return mbIsManaged; } + ProgressNotifier& GetProgressNotifier() const + { + return mrProgressNotifier; + } + private: BackupDaemon &mrDaemon; TLSContext &mrTLSContext; @@ -221,6 +229,7 @@ private: bool mbIsManaged; int mKeepAliveTime; int mMaximumDiffingTime; + ProgressNotifier &mrProgressNotifier; }; #endif // BACKUPCLIENTCONTEXT__H |