Changeset 2181 for box/trunk/bin/bbackupd/BackupDaemon.h
- Timestamp:
- 28/05/2008 16:24:05 (4 years ago)
- File:
-
- 1 edited
-
box/trunk/bin/bbackupd/BackupDaemon.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/bin/bbackupd/BackupDaemon.h
r2099 r2181 15 15 #include <memory> 16 16 17 #include "BackupClientDirectoryRecord.h" 17 18 #include "BoxTime.h" 18 19 #include "Daemon.h" 19 #include " BackupClientDirectoryRecord.h"20 #include "Logging.h" 20 21 #include "Socket.h" 21 22 #include "SocketListen.h" 22 23 #include "SocketStream.h" 23 #include "Logging.h" 24 #include "TLSContext.h" 25 24 26 #include "autogen_BackupProtocolClient.h" 25 27 … … 53 55 // methods below do partial (specialized) serialization of 54 56 // client state only 55 bool SerializeStoreObjectInfo( int64_t aClientStoreMarker,56 box_time_t the LastSyncTime, box_time_t theNextSyncTime) const;57 bool DeserializeStoreObjectInfo( int64_t & aClientStoreMarker,58 box_time_t & the LastSyncTime, box_time_t & theNextSyncTime);57 bool SerializeStoreObjectInfo(box_time_t theLastSyncTime, 58 box_time_t theNextSyncTime) const; 59 bool DeserializeStoreObjectInfo(box_time_t & theLastSyncTime, 60 box_time_t & theNextSyncTime); 59 61 bool DeleteStoreObjectInfo() const; 60 62 BackupDaemon(const BackupDaemon &); … … 112 114 void Run2(); 113 115 116 public: 117 void InitCrypto(); 118 void RunSyncNow(); 119 120 private: 114 121 void DeleteAllLocations(); 115 122 void SetupLocations(BackupClientContext &rClientContext, const Configuration &rLocationsConf); … … 206 213 std::vector<std::pair<int64_t,std::string> > mUnusedRootDirEntries; 207 214 215 int64_t mClientStoreMarker; 216 bool mStorageLimitExceeded; 217 bool mReadErrorsOnFilesystemObjects; 218 box_time_t mLastSyncTime; 219 TLSContext mTlsContext; 220 208 221 public: 209 222 bool StopRun() { return this->Daemon::StopRun(); } 223 bool StorageLimitExceeded() { return mStorageLimitExceeded; } 210 224 211 225 private: … … 428 442 } 429 443 } 444 virtual void NotifyDirectoryDeleted( 445 int64_t ObjectID, 446 const std::string& rRemotePath) 447 { 448 if (mLogAllFileAccess) 449 { 450 BOX_NOTICE("Deleted directory: " << rRemotePath << 451 " (ID " << BOX_FORMAT_OBJECTID(ObjectID) << 452 ")"); 453 } 454 } 455 virtual void NotifyFileDeleted( 456 int64_t ObjectID, 457 const std::string& rRemotePath) 458 { 459 if (mLogAllFileAccess) 460 { 461 BOX_NOTICE("Deleted file: " << rRemotePath << 462 " (ID " << BOX_FORMAT_OBJECTID(ObjectID) << 463 ")"); 464 } 465 } 430 466 431 467 #ifdef WIN32
Note: See TracChangeset
for help on using the changeset viewer.
