digiKam
|
Public Types | |
enum | Task { NewFile = 1 << 0 , Replace = 1 << 1 , SaveAndDelete = 1 << 2 , MoveToIntermediate = 1 << 3 , StoreIntermediates = 1 << 4 } |
Public Member Functions | |
QStringList | allFilePaths () const |
VersionFileOperation () | |
Public Attributes | |
VersionFileInfo | intermediateForLoadedFile |
QMap< int, VersionFileInfo > | intermediates |
VersionFileInfo | loadedFile |
VersionFileInfo | saveFile |
Tasks | tasks |
|
inlineexplicit |
This class describes an operation necessary for storing an image under version control. The loadedFile and current history is given to the VersionManager. The saveFile is the destination of the save operation. If the loadedFile shall be moved to an intermediate, the name is given in intermediateForLoadedFile. The intermediates map may contain name of intermediates to save the state after action i of the history (initialResolvedHistory.size() <= i < currentHistory.size() - 1).
QStringList Digikam::VersionFileOperation::allFilePaths | ( | ) | const |
Returns a list with all saving locations, for main result or intermediates
References Digikam::VersionFileInfo::filePath(), intermediateForLoadedFile, intermediates, Digikam::VersionFileInfo::isNull(), and saveFile.
VersionFileInfo Digikam::VersionFileOperation::intermediateForLoadedFile |
Referenced by allFilePaths(), Digikam::EditorWindow::moveFile(), and Digikam::EditorCore::Private::saveAs().
QMap<int, VersionFileInfo> Digikam::VersionFileOperation::intermediates |
Referenced by allFilePaths(), and Digikam::EditorCore::Private::saveAs().
VersionFileInfo Digikam::VersionFileOperation::loadedFile |
Referenced by Digikam::EditorWindow::moveFile().
VersionFileInfo Digikam::VersionFileOperation::saveFile |
Referenced by allFilePaths(), Digikam::EditorCore::saveAs(), and Digikam::EditorCore::Private::saveAs().
Tasks Digikam::VersionFileOperation::tasks |
Referenced by Digikam::EditorWindow::moveFile(), and Digikam::EditorCore::Private::saveAs().