class
ProjectLibraryDeleteOperation
Inherits:
ProjectLibraryOperation
Project library operation that deletes a file or a folder.
Public
Constructors
ProjectLibraryDeleteOperation
ProjectLibraryDeleteOperation(const ProjectLibraryOperationContext &context, const Path &relativePath)
Constructs the operation.
- context
- Project library context the operation is being executed in.
- relativePath
- Path to the file or folder to delete. relative to the project library imported resources folder.
Methods
PrepareOnMainThread
Result PrepareOnMainThread() override
Performs the first stage of the operation.
Verifies the input parameters are correct, creates library database entries (if possible) and returns success if operation will proceed to execute. Executed on the main thread.
Returns: Operation result and optional error message if failed.
RunOnWorkerThread
void RunOnWorkerThread() override
Performs the second stage of the operation.
Performs longer lasting tasks such as saving or loading a package, copying a file or generating preview icons. Executed on a worker thread.
Private
Fields
mDeleteOperationOutput
ProjectLibraryDatabase::DeleteOperationOutput mDeleteOperationOutput
mRelativePath
Path mRelativePath