shared: FilesSverOptions: Rename members
This commit is contained in:
		| @@ -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); | ||||||
|   | |||||||
| @@ -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; | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
		Viittaa uudesa ongelmassa
	
	Block a user