Public Member Functions |
| | DtSchemaSettingsBackup () |
| | DtSchemaSettingsBackup (const DtSchemaSettingsBackup &) |
| | DtSchemaSettingsBackup (DtDe *de, DtSchemaManager *) |
| virtual | ~DtSchemaSettingsBackup () |
| const makArchives::DtSchema & | restoredSchema () const |
| | DtSettingsBackup () |
| | CTOR.
|
| virtual | ~DtSettingsBackup () |
| | DTOR.
|
| virtual bool | createAndWriteToBackupFile (const std::ostringstream &str, const std::string &path) |
| | Creates a backup file on the specified path and writes to that backup file given the string stream which contains the stored buffer.
|
| virtual bool | createAndWriteToBackupFiles (const std::vector< std::ostringstream * > &str, const std::string &path, const std::vector< std::string > &fileNames) |
| const std::string & | backupFile () const |
| | Get the name of the backup file.
|
| virtual bool | backupFileExists () const |
| | Returns true if the file can be restored from a local backup.
|
| virtual bool | backupDirExists () const |
| | Returns true if the file can be restored from a local backup directory.
|
| virtual bool | factoryFileExists () const |
| | Returns true if can be restored from factory.
|
| virtual bool | factoryDirExists () const |
| | Returns true if can be restored from factory directory.
|
| virtual void | backup () |
| | Backs up settings to backup file.
|
| virtual void | backupByDir () |
| | Backs up settings to backup directory.
|
| virtual void | deleteBackup () |
| | If backup file exists, deletes it.
|
| virtual void | restore (bool fromFactory=false) |
| | Restore all.
|
| virtual void | getRestorableNames (NameList &names) |
| | Get the names of states restore will affect.
|
| virtual void | restore (bool fromFactory, bool selectedOnly) |
| | Restore the state, either from the backup (default) or from the factory.
|
| virtual void | restoreSelected (const DtSettingsBackup *) |
| | Called with the object that needs to be restored from.
|
| virtual void | writeDir (std::vector< std::ostringstream * > &outStreamVec, std::vector< std::string > &fileNames) |
| | Support for writing settings to files in a directory.
|
| virtual void | readIncremental (boost::archive::xml_iarchive &ar) |
| | Support for reading files from a directory by looping over files and incrementally adding their contents.
|
| void | setManagerDestroyed (bool b) |
| | If true, will not signal destroyed.
|
| virtual void | addRestoreWhenRestored (DtSettingsBackup *, const RestoreFlags &f=RestoreAll) |
| | Sets to restore the specified object when this object is restored.
|
| const RestoreWhenRestored & | restoreWhenRestored () const |
| virtual void | cancelRestoreWhenRestored (DtSettingsBackup *, const RestoreFlags &f=RestoreAll) |
| | Cancels that the specified object should be restored when this one is restored.
|
| virtual std::string | backupName () const |
| | Returns a more readable backup name (for dialogs).
|
| void | setBackupsPath (const std::string &s) |
| const std::string & | backupsPath () const |
| void | setFactoryFile (const std::string &s) |
| const std::string & | factoryFile () const |
| void | setFactoryDir (const std::string &dir) |
| const std::string & | factoryDir () const |
| void | setBackupDir (const std::string &dir) |
| const std::string & | backupDir () const |
| | DtBackupInterface () |
| | Default CTOR.
|
| virtual | ~DtBackupInterface () |
| | Default DTOR.
|
Protected Member Functions |
| virtual void | restore (const DtSettingsBackup *from) |
| | Called with the object that needs to be restored from.
|
| virtual std::string | backupClassType () const |
| | Override to return the class name of this object.
|
| virtual void | saveSchema () |
| | Called from de tick, saves schema.
|
| virtual DtSettingsBackup * | create () const |
| | Returns a new empty class of type.
|
| virtual void | write (boost::archive::xml_oarchive &ar) |
| | Override to write to given stream.
|
| virtual void | read (boost::archive::xml_iarchive &ar) |
| | Override to read from given stream.
|
| virtual bool | restore (bool fromFactory, std::vector< DtSettingsBackup * > &hasBeenRestored, bool selectedOnly) |
| | Restores from startup (false) or factory (true) file.
|
This class will be able to store and restore backups for schemas.