Files
qt-creator/src/plugins/vcsbase/vcsplugin.h

45 lines
992 B
C
Raw Normal View History

// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
2009-12-08 14:30:47 +01:00
#pragma once
2009-12-08 14:30:47 +01:00
#include <extensionsystem/iplugin.h>
QT_BEGIN_NAMESPACE
class QStandardItemModel;
QT_END_NAMESPACE
namespace VcsBase {
class VcsBaseSubmitEditor;
2009-12-08 14:30:47 +01:00
namespace Internal {
class VcsPlugin : public ExtensionSystem::IPlugin
2009-12-08 14:30:47 +01:00
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "VcsBase.json")
2009-12-08 14:30:47 +01:00
public:
VcsPlugin();
~VcsPlugin() override;
2009-12-08 14:30:47 +01:00
void initialize() override;
2009-12-08 14:30:47 +01:00
static VcsPlugin *instance();
2009-12-08 14:30:47 +01:00
// Model of user nick names used for the submit
// editor. Stored centrally here to achieve delayed
// initialization and updating on settings change.
QStandardItemModel *nickNameModel();
signals:
void submitEditorAboutToClose(VcsBase::VcsBaseSubmitEditor *e, bool *result);
2009-12-08 14:30:47 +01:00
private:
class VcsPluginPrivate *d = nullptr;
2009-12-08 14:30:47 +01:00
};
} // namespace Internal
} // namespace VcsBase