Loading...
Searching...
No Matches
FileOperation.hpp
FileAction
What an operation decided about one file reference.
Definition FileOperation.hpp:30
@ KeptInLibrary
Resolves through the user library and was left there.
@ AlreadyThere
Already inside the project; only the reference changed.
FileReport runFileOperation(const score::DocumentContext &ctx, const FilePolicy &policy, bool dryRun, FileOperationKind kind)
Run policy over every external file reference of a document.
Definition FileOperation.cpp:96
FileUsage
Whether the process reads the file or writes to it.
Definition ExternalFiles.hpp:28
std::function< QString(const ExternalFileRef &, FileEntry &)> FilePolicy
Decides what happens to one reference.
Definition FileOperation.hpp:109
Definition FileOperation.hpp:49
QString note
Why the operation skipped or failed, shown to the user as-is.
Definition FileOperation.hpp:74
QString newStoredPath
What the reference becomes in the document.
Definition FileOperation.hpp:57
qint64 newSize
Size of what was written, when it differs from the source (trimming).
Definition FileOperation.hpp:68
QString sourcePath
Absolute path it resolves to right now (empty when unresolved).
Definition FileOperation.hpp:53
QString destinationPath
Absolute path it was / will be written to (empty when nothing is written).
Definition FileOperation.hpp:55
QString storedPath
Reference exactly as the document stores it.
Definition FileOperation.hpp:51
qint64 size
Size of the source in bytes, 0 when unknown.
Definition FileOperation.hpp:66
QString owner
Human-readable name of the object holding the reference.
Definition FileOperation.hpp:63
Definition FileOperation.hpp:78
Definition DocumentContext.hpp:18