• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdevelop API Reference
  • KDE Home
  • Contact Us
 

kdevplatform/vcs

  • sources
  • kfour-appscomplete
  • kdevelop
  • kdevplatform
  • vcs
  • dvcs
dvcsplugin.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright 2008 Evgeniy Ivanov <[email protected]> *
3  * *
4  * This program is free software; you can redistribute it and/or *
5  * modify it under the terms of the GNU General Public License as *
6  * published by the Free Software Foundation; either version 2 of *
7  * the License or (at your option) version 3 or any later version *
8  * accepted by the membership of KDE e.V. (or its successor approved *
9  * by the membership of KDE e.V.), which shall act as a proxy *
10  * defined in Section 14 of version 3 of the license. *
11  * *
12  * This program is distributed in the hope that it will be useful, *
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15  * GNU General Public License for more details. *
16  * *
17  * You should have received a copy of the GNU General Public License *
18  * along with this program. If not, see <http://www.gnu.org/licenses/>. *
19  ***************************************************************************/
20 
21 #ifndef KDEVPLATFORM_DVCS_PLUGIN_H
22 #define KDEVPLATFORM_DVCS_PLUGIN_H
23 
24 #include <QObject>
25 #include <QUrl>
26 
27 #include <interfaces/iplugin.h>
28 
29 #include "dvcsevent.h"
30 #include <vcs/vcsexport.h>
31 #include <vcs/interfaces/idistributedversioncontrol.h>
32 #include <vcs/interfaces/ibranchingversioncontrol.h>
33 
34 class QMenu;
35 
36 namespace KDevelop
37 {
38 class DVcsJob;
39 class DistributedVersionControlPluginPrivate;
40 
48 class KDEVPLATFORMVCS_EXPORT DistributedVersionControlPlugin : public IPlugin, public IDistributedVersionControl, public IBranchingVersionControl
49 {
50  Q_OBJECT
51  Q_INTERFACES(KDevelop::IBasicVersionControl KDevelop::IDistributedVersionControl KDevelop::IBranchingVersionControl)
52 public:
53 
54  DistributedVersionControlPlugin(QObject *parent, const QString& componentName);
55  ~DistributedVersionControlPlugin() override;
56 
57  // Begin: KDevelop::IBasicVersionControl
58 
60  VcsImportMetadataWidget* createImportMetadataWidget(QWidget* parent) override;
61 
62  // From KDevelop::IPlugin
66  ContextMenuExtension contextMenuExtension(Context* context, QWidget* parent) override;
67 
75  virtual void parseLogOutput(const DVcsJob * job,
76  QVector<KDevelop::DVcsEvent>& revisions) const = 0;
77 
81  virtual QVector<KDevelop::DVcsEvent> allCommits(const QString& repo) = 0;
82 
87  virtual void additionalMenuEntries(QMenu* menu, const QList<QUrl>& urls);
88 public Q_SLOTS:
89  //slots for context menu
90  void ctxBranchManager();
91 
92 protected:
94  virtual bool isValidDirectory(const QUrl &dirPath) = 0;
95 
96 private:
97  const QScopedPointer<class DistributedVersionControlPluginPrivate> d_ptr;
98  Q_DECLARE_PRIVATE(DistributedVersionControlPlugin)
99 };
100 
101 }
102 
103 #endif
QUrl
QWidget
KDevelop::IBasicVersionControl
This is the basic interface that all Version Control or Source Code Management plugins need to implem...
Definition: ibasicversioncontrol.h:52
QMenu
IPlugin
QList< QUrl >
KDevelop::IDistributedVersionControl
This interface has methods to support distributed version control systems like git or svk.
Definition: idistributedversioncontrol.h:37
idistributedversioncontrol.h
ibranchingversioncontrol.h
QObject
QString
QScopedPointer< class DistributedVersionControlPluginPrivate >
KDevelop::IBranchingVersionControl
Definition: ibranchingversioncontrol.h:35
dvcsevent.h
KDevelop
Definition: dvcsevent.h:33
QVector
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Jan 14 2021 23:35:55 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kdevplatform/vcs

Skip menu "kdevplatform/vcs"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdevelop API Reference

Skip menu "kdevelop API Reference"
  • kdevplatform
  •   debugger
  •   documentation
  •   interfaces
  •   language
  •     assistant
  •     backgroundparser
  •     checks
  •     classmodel
  •     codecompletion
  •     codegen
  •     duchain
  •     editor
  •     highlighting
  •     interfaces
  •     util
  •   outputview
  •   project
  •   serialization
  •   shell
  •   sublime
  •   tests
  •   util
  •   vcs

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal