aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/modeleditor/modeleditor_plugin.h
blob: 0510a280ca4b2f98edff7d1cb066728705be4c19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright (C) 2016 Jochen Becher
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0

#pragma once

#include <extensionsystem/iplugin.h>

namespace ModelEditor {
namespace Internal {

class ModelsManager;

class ModelEditorPlugin : public ExtensionSystem::IPlugin
{
    Q_OBJECT
    Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "ModelEditor.json")

public:
    ModelEditorPlugin();
    ~ModelEditorPlugin();

    bool initialize(const QStringList &arguments, QString *errorString) override;
    void extensionsInitialized() override;
    ShutdownFlag aboutToShutdown() override;

    static ModelsManager *modelsManager();

private:
    class ModelEditorPluginPrivate *d = nullptr;
};

} // namespace Internal
} // namespace ModelEditor