File indexing completed on 2024-05-05 04:41:03

0001 /*
0002     SPDX-FileCopyrightText: 2010 Aleix Pol <aleixpol@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef KDEVPLATFORM_PLUGIN_VCSCHANGESVIEWPLUGIN_H
0008 #define KDEVPLATFORM_PLUGIN_VCSCHANGESVIEWPLUGIN_H
0009 
0010 #include <interfaces/iplugin.h>
0011 #include <QVariant>
0012 
0013 class QModelIndex;
0014 
0015 namespace KDevelop
0016 {
0017     class IProject;
0018     class IDocument;
0019     class ProjectChangesModel;
0020 }
0021 
0022 class VcsProjectIntegrationPlugin : public KDevelop::IPlugin
0023 {
0024     Q_OBJECT
0025     public:
0026         VcsProjectIntegrationPlugin(QObject *parent, const QVariantList & args);
0027         KDevelop::ProjectChangesModel* model();
0028         
0029     private Q_SLOTS:
0030         void activated(const QModelIndex& idx);
0031         
0032     private:
0033         KDevelop::ProjectChangesModel* m_model;
0034 
0035         friend class VCSProjectToolViewFactory; // to access activated() slot
0036 };
0037 
0038 #endif