![]() |
VR-Forces Development_Version Class Documentation
|
Backup for Keymap Settings. More...

Public Member Functions | |
| DtKeyMapSettingsBackup (DtKeyMapManager &man, const std::string &keyMap) | |
| CTOR. | |
| virtual | ~DtKeyMapSettingsBackup () |
| DTOR. | |
| virtual void | restore (const DtSettingsBackup *from) |
| Restore key map from backup. | |
| virtual std::string | backupClassType () const |
| Returns the key map name. | |
| virtual std::string | backupName () const |
| Returns the key map name. | |
| virtual DtSettingsBackup * | create () const |
| Create the keymap backup. | |
| virtual void | write (boost::archive::xml_oarchive &ar) |
| Write the key map backup. | |
| virtual void | read (boost::archive::xml_iarchive &ar) |
| Read the keymap backup. | |
| const makArchives::DtKeyMapRecord & | restoredRecord () const |
| Return the backup's restored record. | |
Public Member Functions inherited from makVrv::DtSettingsBackup | |
| 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. | |
| const std::string & | backupFile () const |
| Get the name of the backup file. | |
| virtual bool | backupExists () const |
| Returns true if the file can be restored from a local backup. | |
| virtual bool | factoryExists () const |
| Returns true if can be restored from factory. | |
| virtual void | backup () |
| Backs up settings to backup file. | |
| 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. | |
| 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. | |
| void | setBackupsPath (const std::string &s) |
| const std::string & | backupsPath () const |
| void | setFactoryFile (const std::string &s) |
| const std::string & | factoryFile () const |
Public Member Functions inherited from makVrv::DtBackupInterface | |
| DtBackupInterface () | |
| Default CTOR. | |
| virtual | ~DtBackupInterface () |
| Default DTOR. | |
Protected Attributes | |
| std::string | myKeyMap |
| makArchives::DtKeyMapRecord | myRestoredRecord |
| DtKeyMapManager & | myKeyMapManager |
Protected Attributes inherited from makVrv::DtSettingsBackup | |
| bool | myManagerDestroyed |
| RestoreWhenRestored | myRestoreWhenRestored |
| std::string | myBackupFile |
| std::string | myFactoryFile |
| std::string | myBackupsPath |
Additional Inherited Members | |
Public Types inherited from makVrv::DtSettingsBackup | |
| enum | RestoreFlags { RestoreFromFactory = 0x00000001, RestoreFromLocal = 0x00000002, KeepRestoreFromLocal = 0x80000000, RestoreAll = RestoreFromFactory | RestoreFromLocal } |
| typedef std::map < DtSettingsBackup *, int > | RestoreWhenRestored |
Public Attributes inherited from makVrv::DtSettingsBackup | |
| boost::signal< void(const DtSettingsBackup *)> | signal_destructing |
| Called when destructing. | |
| boost::signal< void(const DtSettingsBackup *)> | signal_backupCleared |
| boost::signal< void(const DtSettingsBackup *)> | signal_backedUp |
| boost::signal< void(const DtSettingsBackup *)> | signal_restored |
Protected Member Functions inherited from makVrv::DtSettingsBackup | |
| virtual bool | restore (bool fromFactory, std::vector< DtSettingsBackup * > &hasBeenRestored, bool selectedOnly) |
| Restores from startup (false) or factory (true) file. | |
Backup for Keymap Settings.
| makVrv::DtKeyMapSettingsBackup::DtKeyMapSettingsBackup | ( | DtKeyMapManager & | man, |
| const std::string & | keyMap | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Restore key map from backup.
Implements makVrv::DtSettingsBackup.
|
inlinevirtual |
Returns the key map name.
Implements makVrv::DtSettingsBackup.
|
inlinevirtual |
Returns the key map name.
Reimplemented from makVrv::DtSettingsBackup.
|
virtual |
Create the keymap backup.
Implements makVrv::DtSettingsBackup.
|
virtual |
Write the key map backup.
Implements makVrv::DtSettingsBackup.
|
virtual |
Read the keymap backup.
Implements makVrv::DtSettingsBackup.
|
inline |
Return the backup's restored record.
|
protected |
|
protected |
|
protected |