summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppmodelmanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cpptools/cppmodelmanager.h')
-rw-r--r--src/plugins/cpptools/cppmodelmanager.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/plugins/cpptools/cppmodelmanager.h b/src/plugins/cpptools/cppmodelmanager.h
index e167832eb5..865421a16e 100644
--- a/src/plugins/cpptools/cppmodelmanager.h
+++ b/src/plugins/cpptools/cppmodelmanager.h
@@ -34,7 +34,8 @@
#ifndef CPPMODELMANAGER_H
#define CPPMODELMANAGER_H
-#include <cpptools/cppmodelmanagerinterface.h>
+#include "cpptools_global.h"
+#include <cplusplus/ModelManagerInterface.h>
#ifndef ICHECK_BUILD
# include <projectexplorer/project.h>
#endif
@@ -83,7 +84,7 @@ class CppPreprocessor;
class CppFindReferences;
#ifndef ICHECK_BUILD
-class CppModelManager : public CppModelManagerInterface
+class CppModelManager : public CPlusPlus::CppModelManagerInterface
{
Q_OBJECT
@@ -91,6 +92,8 @@ public:
CppModelManager(QObject *parent);
virtual ~CppModelManager();
+ static CppModelManager *instance();
+
virtual QFuture<void> updateSourceFiles(const QStringList &sourceFiles);
virtual WorkingCopy workingCopy() const;
@@ -139,6 +142,7 @@ Q_SIGNALS:
public Q_SLOTS:
void editorOpened(Core::IEditor *editor);
void editorAboutToClose(Core::IEditor *editor);
+ virtual void updateModifiedSourceFiles();
private Q_SLOTS:
// this should be executed in the GUI thread.
@@ -251,7 +255,7 @@ public:
virtual ~CppPreprocessor();
void setRevision(unsigned revision);
- void setWorkingCopy(const CppModelManagerInterface::WorkingCopy &workingCopy);
+ void setWorkingCopy(const CPlusPlus::CppModelManagerInterface::WorkingCopy &workingCopy);
void setIncludePaths(const QStringList &includePaths);
void setFrameworkPaths(const QStringList &frameworkPaths);
void addFrameworkPath(const QString &frameworkPath);
@@ -299,7 +303,7 @@ private:
CPlusPlus::Preprocessor preprocess;
QStringList m_includePaths;
QStringList m_systemIncludePaths;
- CppModelManagerInterface::WorkingCopy m_workingCopy;
+ CPlusPlus::CppModelManagerInterface::WorkingCopy m_workingCopy;
QStringList m_projectFiles;
QStringList m_frameworkPaths;
QSet<QString> m_included;