void RestoreOperation::undo() { removePreviewPartition(targetDevice(), restorePartition()); if (overwrittenPartition()) insertPreviewPartition(targetDevice(), *overwrittenPartition()); }
void NewOperation::preview() { insertPreviewPartition(targetDevice(), newPartition()); }
void DeleteOperation::undo() { checkAdjustLogicalNumbers(deletedPartition(), true); insertPreviewPartition(targetDevice(), deletedPartition()); }
void RestoreOperation::preview() { insertPreviewPartition(targetDevice(), restorePartition()); }