Changeset 2181 for box/trunk/bin/bbackupd/BackupClientDeleteList.h
- Timestamp:
- 28/05/2008 16:24:05 (4 years ago)
- File:
-
- 1 edited
-
box/trunk/bin/bbackupd/BackupClientDeleteList.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/bin/bbackupd/BackupClientDeleteList.h
r217 r2181 29 29 class BackupClientDeleteList 30 30 { 31 private: 32 class FileToDelete 33 { 34 public: 35 int64_t mDirectoryID; 36 BackupStoreFilename mFilename; 37 std::string mLocalPath; 38 FileToDelete(int64_t DirectoryID, 39 const BackupStoreFilename& rFilename, 40 const std::string& rLocalPath); 41 }; 42 43 class DirToDelete 44 { 45 public: 46 int64_t mObjectID; 47 std::string mLocalPath; 48 DirToDelete(int64_t ObjectID, const std::string& rLocalPath); 49 }; 50 31 51 public: 32 52 BackupClientDeleteList(); 33 53 ~BackupClientDeleteList(); 34 54 35 void AddDirectoryDelete(int64_t ObjectID); 36 void AddFileDelete(int64_t DirectoryID, const BackupStoreFilename &rFilename); 55 void AddDirectoryDelete(int64_t ObjectID, 56 const std::string& rLocalPath); 57 void AddFileDelete(int64_t DirectoryID, 58 const BackupStoreFilename &rFilename, 59 const std::string& rLocalPath); 37 60 38 61 void StopDirectoryDeletion(int64_t ObjectID); 39 void StopFileDeletion(int64_t DirectoryID, const BackupStoreFilename &rFilename); 62 void StopFileDeletion(int64_t DirectoryID, 63 const BackupStoreFilename &rFilename); 40 64 41 65 void PerformDeletions(BackupClientContext &rContext); 42 66 43 67 private: 44 std::vector< int64_t> mDirectoryList;68 std::vector<DirToDelete> mDirectoryList; 45 69 std::set<int64_t> mDirectoryNoDeleteList; // note: things only get in this list if they're not present in mDirectoryList when they are 'added' 46 std::vector< std::pair<int64_t, BackupStoreFilename>> mFileList;70 std::vector<FileToDelete> mFileList; 47 71 std::vector<std::pair<int64_t, BackupStoreFilename> > mFileNoDeleteList; 48 72 };
Note: See TracChangeset
for help on using the changeset viewer.
