summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cpptoolsplugin.h
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2018-02-07 11:05:48 +0100
committerhjk <hjk@qt.io>2018-02-07 11:20:22 +0000
commit577bf7c08a83d0348325b5d431351f21eb2dfd40 (patch)
treef61a52a205808eaeba88e24978bb94d37e87fe90 /src/plugins/cpptools/cpptoolsplugin.h
parent5e55c1e947c316ffca5a59c59cdff49eebc8f9bc (diff)
downloadqt-creator-577bf7c08a83d0348325b5d431351f21eb2dfd40.tar.gz
CppToolsPlugin: Partially pimpl and remove use of global object pool
Change-Id: Iee09bf2fc7c945b8dcf950edfe94889d35c63735 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cpptoolsplugin.h')
-rw-r--r--src/plugins/cpptools/cpptoolsplugin.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/cpptools/cpptoolsplugin.h b/src/plugins/cpptools/cpptoolsplugin.h
index 4947fe6acc..077fddf56d 100644
--- a/src/plugins/cpptools/cpptoolsplugin.h
+++ b/src/plugins/cpptools/cpptoolsplugin.h
@@ -47,6 +47,7 @@ class CppCodeModelSettings;
namespace Internal {
struct CppFileSettings;
+class CppToolsPluginPluginPrivate;
class CppToolsPlugin : public ExtensionSystem::IPlugin
{
@@ -55,7 +56,7 @@ class CppToolsPlugin : public ExtensionSystem::IPlugin
public:
CppToolsPlugin();
- ~CppToolsPlugin();
+ ~CppToolsPlugin() final;
static CppToolsPlugin *instance();
static const QStringList &headerSearchPaths();
@@ -66,13 +67,13 @@ public:
static Utils::FileName licenseTemplatePath();
static QString licenseTemplate();
- bool initialize(const QStringList &arguments, QString *errorMessage);
- void extensionsInitialized();
- ShutdownFlag aboutToShutdown();
+ bool initialize(const QStringList &arguments, QString *errorMessage) final;
+ void extensionsInitialized() final;
QSharedPointer<CppCodeModelSettings> codeModelSettings() const;
static StringTable &stringTable();
+
public slots:
void switchHeaderSource();
void switchHeaderSourceInNextSplit();
@@ -179,10 +180,9 @@ private slots:
#endif
private:
+ friend class CppToolsPluginPluginPrivate;
+ CppToolsPluginPluginPrivate *d = nullptr;
QSharedPointer<CppFileSettings> m_fileSettings;
- QSharedPointer<CppCodeModelSettings> m_codeModelSettings;
- CppToolsSettings *m_settings = nullptr;
- StringTable m_stringTable;
};
} // namespace Internal