• 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
  • interfaces
ibranchingversioncontrol.h
Go to the documentation of this file.
1 /* This file is part of KDevelop
2  *
3  * Copyright 2007 Andreas Pakulat <[email protected]>
4  * Copyright 2007 Matthew Woehlke <[email protected]>
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  * 02110-1301, USA.
20  */
21 
22 #ifndef KDEVPLATFORM_IBRANCHINGVERSIONCONTROL_H
23 #define KDEVPLATFORM_IBRANCHINGVERSIONCONTROL_H
24 
25 #include <QObject>
26 
27 class QUrl;
28 class QString;
29 
30 namespace KDevelop
31 {
32 class VcsRevision;
33 class VcsJob;
34 
35 class IBranchingVersionControl
36 {
37 public:
38  virtual ~IBranchingVersionControl() {}
39 
49  virtual VcsJob* branch( const QUrl& repository,
50  const VcsRevision& rev,
51  const QString& branchName ) = 0;
52 
53 
62  virtual VcsJob* tag( const QUrl& repository,
63  const QString& commitMessage,
64  const VcsRevision& rev,
65  const QString& tagName ) = 0;
66 
73  virtual VcsJob* switchBranch(const QUrl &repository, const QString &branchName) = 0;
74 
80  virtual VcsJob* branches(const QUrl &repository) = 0;
81 
89  virtual VcsJob* currentBranch(const QUrl &repository) = 0;
90 
97  virtual VcsJob* deleteBranch(const QUrl &repository, const QString &branchName) = 0;
98 
104  virtual VcsJob* mergeBranch(const QUrl &repository, const QString &branchName) = 0;
105 
113  virtual VcsJob* renameBranch(const QUrl &repository, const QString &oldBranchName, const QString &newBranchName) = 0;
114 
119  virtual void registerRepositoryForCurrentBranchChanges(const QUrl& repository) = 0;
120 
121 Q_SIGNALS:
122  void repositoryBranchChanged(const QUrl& repository);
123 };
124 
125 }
126 
127 Q_DECLARE_INTERFACE( KDevelop::IBranchingVersionControl, "org.kdevelop.IBranchingVersionControl" )
128 
129 #endif
130 
KDevelop::IBranchingVersionControl::currentBranch
virtual VcsJob * currentBranch(const QUrl &repository)=0
Returns the current branch name inside the specified repository in a QString.
KDevelop::IBranchingVersionControl::switchBranch
virtual VcsJob * switchBranch(const QUrl &repository, const QString &branchName)=0
Switches to the desired branch inside the specified repository.
QUrl
KDevelop::IBranchingVersionControl::repositoryBranchChanged
void repositoryBranchChanged(const QUrl &repository)
KDevelop::IBranchingVersionControl::branch
virtual VcsJob * branch(const QUrl &repository, const VcsRevision &rev, const QString &branchName)=0
Creates a branch from the given mapping information.
KDevelop::VcsRevision
Encapsulates a vcs revision number, date or range of revisions.
Definition: vcsrevision.h:66
KDevelop::IBranchingVersionControl::registerRepositoryForCurrentBranchChanges
virtual void registerRepositoryForCurrentBranchChanges(const QUrl &repository)=0
Tells the implementation to report about changes in the current branch of a given repository.
KDevelop::IBranchingVersionControl::deleteBranch
virtual VcsJob * deleteBranch(const QUrl &repository, const QString &branchName)=0
Deletes the desired branch inside the specified repository.
QString
KDevelop::IBranchingVersionControl::~IBranchingVersionControl
virtual ~IBranchingVersionControl()
Definition: ibranchingversioncontrol.h:38
KDevelop::IBranchingVersionControl::mergeBranch
virtual VcsJob * mergeBranch(const QUrl &repository, const QString &branchName)=0
Merges the selected branch into the current one.
KDevelop::IBranchingVersionControl::tag
virtual VcsJob * tag(const QUrl &repository, const QString &commitMessage, const VcsRevision &rev, const QString &tagName)=0
Creates a new tag from the given mapping information.
KDevelop::IBranchingVersionControl
Definition: ibranchingversioncontrol.h:35
KDevelop::VcsJob
This class provides an extension of KJob to get various VCS-specific information about the job.
Definition: vcsjob.h:43
KDevelop::IBranchingVersionControl::branches
virtual VcsJob * branches(const QUrl &repository)=0
Returns the branches inside the specified repository in a QStringList.
KDevelop
Definition: dvcsevent.h:33
KDevelop::IBranchingVersionControl::renameBranch
virtual VcsJob * renameBranch(const QUrl &repository, const QString &oldBranchName, const QString &newBranchName)=0
Deletes the desired branch inside the specified repository.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Apr 9 2021 23:30:59 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