|
Developer Documentation
|
Class that encapsulates simultaneous backups on multiple objects. More...
#include <Plugin-Backup/GroupBackup.hh>
Public Member Functions | |
| GroupBackup (IdList _objectIDs, const QString &_name) | |
| void | apply () |
| Revert this backup. | |
| const IdList & | objectIDs () const |
| bool | contains (int _objectid) const |
Public Member Functions inherited from BaseBackup | |
| BaseBackup (const QString &_name) | |
| BaseBackup (BaseObjectData *_object, const QString &_name, UpdateType _type) | |
| constructor | |
| QString | name () |
| Get the backups name) | |
| void | setLinks (IdList _objectIDs) |
| Set links to corresponding backups. | |
| int | id () |
| get id of this backup | |
| bool | blocked () |
| Returns if this backup is blocked. | |
Private Attributes | |
| IdList | objectIDs_ |
| IdList | backupIDs_ |
Additional Inherited Members | |
Protected Attributes inherited from BaseBackup | |
| std::vector< std::pair< QString, PerObjectData * > > | objectDatas_ |
| Backup of the perObjectData objects. | |
| BaseObjectData * | object_ |
| QString | name_ |
| IdList | links_ |
| int | id_ |
Class that encapsulates simultaneous backups on multiple objects.
Definition at line 52 of file GroupBackup.hh.
| GroupBackup::GroupBackup | ( | IdList | _objectIDs, |
| const QString & | _name | ||
| ) |
Definition at line 51 of file GroupBackup.cc.
| GroupBackup::~GroupBackup | ( | ) |
Definition at line 83 of file GroupBackup.cc.
|
virtual |
Revert this backup.
This function has to be implemented. It will be called when the backup should be restored.
You have to restore your backup to the corresponding object when this function gets called.
Reimplemented from BaseBackup.
Definition at line 89 of file GroupBackup.cc.
| bool GroupBackup::contains | ( | int | _objectid | ) | const |
Definition at line 101 of file GroupBackup.cc.
| const IdList & GroupBackup::objectIDs | ( | ) | const |
Definition at line 95 of file GroupBackup.cc.
|
private |
Definition at line 67 of file GroupBackup.hh.
|
private |
Definition at line 66 of file GroupBackup.hh.