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

59 lines
1.3 KiB
C
Raw Normal View History

// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 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>
#include <QFuture>
2009-12-08 14:30:47 +01:00
QT_BEGIN_NAMESPACE
class QStandardItemModel;
QT_END_NAMESPACE
namespace Utils { class FutureSynchronizer; }
namespace VcsBase {
class VcsBaseSubmitEditor;
2009-12-08 14:30:47 +01:00
namespace Internal {
class CommonVcsSettings;
2009-12-08 14:30:47 +01:00
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
bool initialize(const QStringList &arguments, QString *errorMessage) override;
2009-12-08 14:30:47 +01:00
static VcsPlugin *instance();
2009-12-08 14:30:47 +01:00
CommonVcsSettings &settings() const;
2009-12-08 14:30:47 +01:00
static Utils::FutureSynchronizer *futureSynchronizer();
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 settingsChanged();
void submitEditorAboutToClose(VcsBase::VcsBaseSubmitEditor *e, bool *result);
2009-12-08 14:30:47 +01:00
private:
2009-12-08 14:30:47 +01:00
void slotSettingsChanged();
void populateNickNameModel();
class VcsPluginPrivate *d = nullptr;
2009-12-08 14:30:47 +01:00
};
} // namespace Internal
} // namespace VcsBase