|
| virtual | ~DtSettingsBackupManager () |
| | DTOR. More...
|
| |
| virtual void | setBackupsPath (const std::string &) |
| | Sets the backups path. If it does not exist when the backup wants to be created, creates the path. More...
|
| |
| const std::string & | backupsPath () const |
| |
| virtual void | registerSettingsBackup (DtSettingsBackup *backup) |
| | Registers the settings class with the manager. More...
|
| |
| virtual void | unregisterSettingsBackup (const std::string &) |
| | Unregisters item for backup. Sends out appropriate messages if either local or factory backup changes. More...
|
| |
| virtual void | unregisterSettingsBackup (DtSettingsBackup *backup) |
| | Calls similar class name with backupClassType() of object. More...
|
| |
| virtual void | settingsObjectDestroyed (const DtSettingsBackup *) |
| | Called when a registered settings object is destroyed, unregisters it. More...
|
| |
| virtual void | settingsClearedBackup (const DtSettingsBackup *) |
| |
| virtual void | settingsRestored (const DtSettingsBackup *) |
| |
| virtual void | settingsBackedUp (const DtSettingsBackup *) |
| |
| virtual bool | setFactoryFile (const std::string &, const std::string &factoryFile) |
| | Sets the factory file to be used for restore for the specified backup. More...
|
| |
| virtual bool | setFactoryFile (const DtSettingsBackup *, const std::string &factoryFile) |
| | Calls similar class name with backupClassType() of object. More...
|
| |
| virtual bool | canBeRevertedFromStartup (const std::string &) const |
| | Returns true if the file can be restored from a local backup. More...
|
| |
| virtual bool | canBeRevertedFromStartup (const DtSettingsBackup *) const |
| | Calls similar class name with backupClassType() of object. More...
|
| |
| virtual bool | canBeRestoredFromFactory (const std::string &) const |
| | Returns true if can be restored from factory. More...
|
| |
| virtual bool | canBeRestoredFromFactory (const DtSettingsBackup *) const |
| | Calls similar class name with backupClassType() of object. More...
|
| |
| virtual bool | backup (const std::string &) |
| | Backs up the specified object and sends out signal through the shared signaller that the object has been backed=up. More...
|
| |
| virtual bool | backup (const DtSettingsBackup *) |
| | Calls similar class name with backupClassType() of object. More...
|
| |
| virtual void | clearBackup (const std::string &) |
| | Clears out any backup settings for specified object. More...
|
| |
| virtual void | clearBackup (const DtSettingsBackup *) |
| | Calls similar class name with backupClassType() of object. More...
|
| |
| virtual bool | revertToStartup (const std::string &) |
| | Restores settings for the supplied backup object by calling the restore() method on it. More...
|
| |
| virtual bool | revertToStartup (const DtSettingsBackup *) |
| | Calls similar class name with backupClassType() of object. More...
|
| |
| virtual bool | restoreFromFactory (const std::string &) |
| | Restores settings for the supplied backup object by restoring from factory file. More...
|
| |
| virtual bool | restoreFromFactory (const DtSettingsBackup *) |
| | Calls similar class name with backupClassType() of object. More...
|
| |
| virtual bool | registered (const std::string &) const |
| | Returns whether or not this class is registered. More...
|
| |
| virtual bool | registered (const DtSettingsBackup *) const |
| | Calls similar class name with backupClassType() of object. More...
|
| |
| virtual void | restoreWhenRestored (const std::string &toRestore, const std::string &whenRestored, const DtSettingsBackup::RestoreFlags &f=DtSettingsBackup::RestoreAll) |
| | Restores the specified backup setting when the host backup setting is restored. More...
|
| |
| virtual void | restoreWhenRestored (const DtSettingsBackup *toRestore, const DtSettingsBackup *whenRestored, const DtSettingsBackup::RestoreFlags &f=DtSettingsBackup::RestoreAll) |
| | Calls similar class name with backupClassType() of objects. More...
|
| |
| virtual void | cancelRestoreWhenRestored (const std::string &toRestore, const std::string &whenRestored, const DtSettingsBackup::RestoreFlags &f=DtSettingsBackup::RestoreAll) |
| | Removes the specified backup setting to be restored then the host is restored. More...
|
| |
| virtual void | cancelRestoreWhenRestored (const DtSettingsBackup *toRestore, const DtSettingsBackup *whenRestored, const DtSettingsBackup::RestoreFlags &f=DtSettingsBackup::RestoreAll) |
| | Calls similar class name with backupClassType() of objects. More...
|
| |
| virtual std::vector< std::string > | willRestoreWhenRestored (const DtSettingsBackup *toRestore, const DtSettingsBackup::RestoreFlags &f=DtSettingsBackup::RestoreAll) const |
| | Calls similar method with backupClassType() of object. More...
|
| |
| | DtVirtualBaseClass () |
| | Do nothing constructor. More...
|
| |
| virtual | ~DtVirtualBaseClass () |
| | Virtual do nothing destructor. More...
|
| |
The makVrv::DtSettingsBackupManager class is a central place to store objects that can be backed up and restored.
In order for objects to be backed up they must be of the makVrv::DtSettingsBackup class and must also implement the boost serialize method to archive and restore settings. When registering this this manager, if the object also can be restored from a factory setting, be sure to supply the factory file information either upon registration time or at a future date.
Note that this class will do it's own locking to allow multi-thread access