shared: FilesSverOptions: Rename members

This commit is contained in:
Albert S. 2023-01-08 17:37:28 +01:00
parent 8298b675aa
commit ccc4d09b36
3 changed files with 7 additions and 7 deletions

View File

@ -83,8 +83,8 @@ int CommandAdd::handle(QStringList arguments)
FileSaverOptions fileSaverOptions; FileSaverOptions fileSaverOptions;
fileSaverOptions.keepGoing = keepGoing; fileSaverOptions.keepGoing = keepGoing;
fileSaverOptions.fillPathsOnlyWithContent = fillContent; fileSaverOptions.fillExistingContentless = fillContent;
fileSaverOptions.pathsOnly = pathsOnly; fileSaverOptions.metadataOnly = pathsOnly;
fileSaverOptions.verbose = false; fileSaverOptions.verbose = false;
indexer = new Indexer(*this->dbService); indexer = new Indexer(*this->dbService);

View File

@ -127,10 +127,10 @@ SaveFileResult FileSaver::saveFile(const QFileInfo &fileInfo)
} }
} }
bool mustFillContent = this->fileSaverOptions.fillPathsOnlyWithContent; bool mustFillContent = this->fileSaverOptions.fillExistingContentless;
if(!mustFillContent) if(!mustFillContent)
{ {
mustFillContent = !this->fileSaverOptions.pathsOnly; mustFillContent = !this->fileSaverOptions.metadataOnly;
if(mustFillContent) if(mustFillContent)
{ {
auto filetype = this->dbService->queryFileType(fileInfo.absolutePath()); auto filetype = this->dbService->queryFileType(fileInfo.absolutePath());
@ -176,7 +176,7 @@ SaveFileResult FileSaver::saveFile(const QFileInfo &fileInfo)
} }
} }
} }
SaveFileResult result = this->dbService->saveFile(fileInfo, pageData, this->fileSaverOptions.pathsOnly); SaveFileResult result = this->dbService->saveFile(fileInfo, pageData, this->fileSaverOptions.metadataOnly);
if(result == OK && processorReturnCode == OK_WASEMPTY) if(result == OK && processorReturnCode == OK_WASEMPTY)
{ {
return OK_WASEMPTY; return OK_WASEMPTY;

View File

@ -6,9 +6,9 @@ class FileSaverOptions
public: public:
bool verbose = false; bool verbose = false;
bool keepGoing = false; bool keepGoing = false;
bool pathsOnly = false; bool metadataOnly = false;
/* Whether those previously explicitly without content should be filled */ /* Whether those previously explicitly without content should be filled */
bool fillPathsOnlyWithContent = false; bool fillExistingContentless = false;
}; };
#endif // FILESAVEROPTIONS_H #endif // FILESAVEROPTIONS_H