forked from qt-creator/qt-creator
ProjectExplorer: Promote CppProjectUpdaterInterface
... to ProjectExplorer::ProjectUpdaterInterface and generalize it regarding language, but create a convience function for the C++ case, as that's the only user right now. Also add the self-registering factory boilerplate and adapt all buildsystems. Change-Id: If928512609d41c25fad2aa58633c8bffabc4c48f Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -15,12 +15,15 @@
|
||||
|
||||
#include <QFutureWatcher>
|
||||
|
||||
namespace CppEditor { class CppProjectUpdater; }
|
||||
namespace ProjectExplorer { class Kit; }
|
||||
namespace ProjectExplorer {
|
||||
class Kit;
|
||||
class ProjectUpdater;
|
||||
} // ProjectExplorer
|
||||
|
||||
namespace Utils { class FileSystemWatcher; }
|
||||
|
||||
namespace CompilationDatabaseProjectManager {
|
||||
namespace Internal {
|
||||
namespace CompilationDatabaseProjectManager::Internal {
|
||||
|
||||
class CompilationDbParser;
|
||||
|
||||
class CompilationDatabaseProject : public ProjectExplorer::Project
|
||||
@@ -49,7 +52,7 @@ public:
|
||||
void buildTreeAndProjectParts();
|
||||
|
||||
QFutureWatcher<void> m_parserWatcher;
|
||||
std::unique_ptr<CppEditor::CppProjectUpdater> m_cppCodeModelUpdater;
|
||||
std::unique_ptr<ProjectExplorer::ProjectUpdater> m_cppCodeModelUpdater;
|
||||
MimeBinaryCache m_mimeBinaryCache;
|
||||
QByteArray m_projectFileHash;
|
||||
CompilationDbParser *m_parser = nullptr;
|
||||
@@ -68,5 +71,4 @@ public:
|
||||
CompilationDatabaseBuildConfigurationFactory();
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace CompilationDatabaseProjectManager
|
||||
} // CompilationDatabaseProjectManager::Internal
|
||||
|
||||
Reference in New Issue
Block a user