2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// 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
|
|
|
|
2016-02-03 12:15:21 +01:00
|
|
|
#pragma once
|
2009-12-08 14:30:47 +01:00
|
|
|
|
|
|
|
|
#include <extensionsystem/iplugin.h>
|
|
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
class QStandardItemModel;
|
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
2012-01-07 12:31:48 +01:00
|
|
|
namespace VcsBase {
|
2015-08-26 14:39:15 +02:00
|
|
|
|
|
|
|
|
class VcsBaseSubmitEditor;
|
|
|
|
|
|
2009-12-08 14:30:47 +01:00
|
|
|
namespace Internal {
|
|
|
|
|
|
2012-01-07 12:31:48 +01:00
|
|
|
class VcsPlugin : public ExtensionSystem::IPlugin
|
2009-12-08 14:30:47 +01:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
2012-02-21 16:52:28 +01:00
|
|
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "VcsBase.json")
|
2009-12-08 14:30:47 +01:00
|
|
|
|
|
|
|
|
public:
|
2012-01-07 12:31:48 +01:00
|
|
|
VcsPlugin();
|
2016-02-03 12:15:21 +01:00
|
|
|
~VcsPlugin() override;
|
2009-12-08 14:30:47 +01:00
|
|
|
|
2023-01-20 12:28:36 +01:00
|
|
|
void initialize() override;
|
2009-12-08 14:30:47 +01:00
|
|
|
|
2012-01-07 12:31:48 +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:
|
2015-08-26 14:39:15 +02:00
|
|
|
void submitEditorAboutToClose(VcsBase::VcsBaseSubmitEditor *e, bool *result);
|
2009-12-08 14:30:47 +01:00
|
|
|
|
2016-02-03 12:15:21 +01:00
|
|
|
private:
|
2018-02-19 14:15:05 +01:00
|
|
|
class VcsPluginPrivate *d = nullptr;
|
2009-12-08 14:30:47 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
2012-01-07 12:31:48 +01:00
|
|
|
} // namespace VcsBase
|