logic: added option to execute custom indexer commands in parallel

This commit is contained in:
mlangkabel
2019-01-21 13:28:51 +01:00
parent 85bd0d39c3
commit 3eb9211520
10 changed files with 289 additions and 60 deletions
+16 -2
View File
@@ -12,18 +12,32 @@ class IndexerCommandCustom
public:
static IndexerCommandType getStaticIndexerCommandType();
IndexerCommandCustom(const FilePath& sourceFilePath, const std::wstring& customCommand);
IndexerCommandCustom(
const std::wstring& customCommand,
const FilePath& projectFilePath,
const FilePath& databaseFilePath,
const std::wstring& databaseVersion,
const FilePath& sourceFilePath,
bool runInParallel);
IndexerCommandType getIndexerCommandType() const override;
size_t getByteSize(size_t stringSize) const override;
const std::wstring& getCustomCommand() const;
FilePath getDatabaseFilePath() const;
void setDatabaseFilePath(const FilePath& databaseFilePath);
std::wstring getCustomCommand() const;
bool getRunInParallel() const;
protected:
QJsonObject doSerialize() const override;
private:
std::wstring m_customCommand;
FilePath m_projectFilePath;
FilePath m_databaseFilePath;
std::wstring m_databaseVersion;
bool m_runInParallel;
};
#endif // INDEXER_COMMAND_CXXL_H