From 403e7e2051ee3bd3e16a616cfca63b036481282b Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 13 Dec 2015 23:39:18 +0000 Subject: Move reusable code out of bin directories. Allows tests to depend on lib/bbackupd instead of bin/bbackupd, which was always a hack, and really doesn't work with CMake. --- bin/bbackupd/BackupClientDeleteList.h | 75 ----------------------------------- 1 file changed, 75 deletions(-) delete mode 100644 bin/bbackupd/BackupClientDeleteList.h (limited to 'bin/bbackupd/BackupClientDeleteList.h') diff --git a/bin/bbackupd/BackupClientDeleteList.h b/bin/bbackupd/BackupClientDeleteList.h deleted file mode 100644 index b0fbf51a..00000000 --- a/bin/bbackupd/BackupClientDeleteList.h +++ /dev/null @@ -1,75 +0,0 @@ -// -------------------------------------------------------------------------- -// -// File -// Name: BackupClientDeleteList.h -// Purpose: List of pending deletes for backup -// Created: 10/11/03 -// -// -------------------------------------------------------------------------- - -#ifndef BACKUPCLIENTDELETELIST__H -#define BACKUPCLIENTDELETELIST__H - -#include "BackupStoreFilename.h" - -class BackupClientContext; - -#include -#include -#include - -// -------------------------------------------------------------------------- -// -// Class -// Name: BackupClientDeleteList -// Purpose: List of pending deletes for backup -// Created: 10/11/03 -// -// -------------------------------------------------------------------------- -class BackupClientDeleteList -{ -private: - class FileToDelete - { - public: - int64_t mDirectoryID; - BackupStoreFilename mFilename; - std::string mLocalPath; - FileToDelete(int64_t DirectoryID, - const BackupStoreFilename& rFilename, - const std::string& rLocalPath); - }; - - class DirToDelete - { - public: - int64_t mObjectID; - std::string mLocalPath; - DirToDelete(int64_t ObjectID, const std::string& rLocalPath); - }; - -public: - BackupClientDeleteList(); - ~BackupClientDeleteList(); - - void AddDirectoryDelete(int64_t ObjectID, - const std::string& rLocalPath); - void AddFileDelete(int64_t DirectoryID, - const BackupStoreFilename &rFilename, - const std::string& rLocalPath); - - void StopDirectoryDeletion(int64_t ObjectID); - void StopFileDeletion(int64_t DirectoryID, - const BackupStoreFilename &rFilename); - - void PerformDeletions(BackupClientContext &rContext); - -private: - std::vector mDirectoryList; - std::set mDirectoryNoDeleteList; // note: things only get in this list if they're not present in mDirectoryList when they are 'added' - std::vector mFileList; - std::vector > mFileNoDeleteList; -}; - -#endif // BACKUPCLIENTDELETELIST__H - -- cgit v1.2.3