digiKam
Digikam::VersionFileOperation Class Reference

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, VersionFileInfointermediates
 
VersionFileInfo loadedFile
 
VersionFileInfo saveFile
 
Tasks tasks
 

Member Enumeration Documentation

◆ Task

Enumerator
NewFile 

saveFile is a new file. Excludes Replace.

Replace 

loadedFile and saveFile are the same - replace. Excludes NewFile.

SaveAndDelete 

Similar to Replace, but the new file name differs from the old one, which should be removed.

MoveToIntermediate 

Move loadedFile to loadedFileToIntermediate.

StoreIntermediates 

Store additional snapshots from within history.

Constructor & Destructor Documentation

◆ VersionFileOperation()

Digikam::VersionFileOperation::VersionFileOperation ( )
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).

Member Function Documentation

◆ allFilePaths()

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.

Member Data Documentation

◆ intermediateForLoadedFile

VersionFileInfo Digikam::VersionFileOperation::intermediateForLoadedFile

◆ intermediates

QMap<int, VersionFileInfo> Digikam::VersionFileOperation::intermediates

◆ loadedFile

VersionFileInfo Digikam::VersionFileOperation::loadedFile

◆ saveFile

VersionFileInfo Digikam::VersionFileOperation::saveFile

◆ tasks

Tasks Digikam::VersionFileOperation::tasks

The documentation for this class was generated from the following files: