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

kdevelop/kdevplatform/vcs

  • extragear
  • kdevelop
  • kdevelop
  • kdevplatform
  • vcs
  • interfaces
idistributedversioncontrol.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 2008 Evgeniy Ivanov <[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_IDISTRIBUTEDVERSIONCONTROL_H
23 #define KDEVPLATFORM_IDISTRIBUTEDVERSIONCONTROL_H
24 
25 #include "ibasicversioncontrol.h"
26 
27 namespace KDevelop
28 {
29 
30 class VcsJob;
31 class VcsLocation;
32 
37 class IDistributedVersionControl : public KDevelop::IBasicVersionControl
38 {
39 public:
40 
41  ~IDistributedVersionControl() override = default;
42 
46  virtual VcsJob* init(const QUrl& localRepositoryRoot) = 0;
47 
54  virtual VcsJob* push(const QUrl& localRepositoryLocation,
55  const VcsLocation& localOrRepoLocationDst) = 0;
56 
65  virtual VcsJob* pull(const VcsLocation& localOrRepoLocationSrc,
66  const QUrl& localRepositoryLocation) = 0;
67 };
68 
69 }
70 
71 Q_DECLARE_INTERFACE( KDevelop::IDistributedVersionControl, "org.kdevelop.IDistributedVersionControl" )
72 
73 #endif
74 
KDevelop::IDistributedVersionControl::pull
virtual VcsJob * pull(const VcsLocation &localOrRepoLocationSrc, const QUrl &localRepositoryLocation)=0
Import revisions from another repository the local one, but don't yet merge them into the working cop...
ibasicversioncontrol.h
KDevelop::VcsLocation
Denotes a local or repository location for a Vcs system.
Definition: vcslocation.h:42
KDevelop::IDistributedVersionControl::init
virtual VcsJob * init(const QUrl &localRepositoryRoot)=0
Create a new repository inside the given local directory.
QUrl
KDevelop::IDistributedVersionControl::~IDistributedVersionControl
~IDistributedVersionControl() override=default
KDevelop::VcsJob
This class provides an extension of KJob to get various VCS-specific information about the job...
Definition: vcsjob.h:43
KDevelop::IBasicVersionControl
This is the basic interface that all Version Control or Source Code Management plugins need to implem...
Definition: ibasicversioncontrol.h:52
KDevelop::IDistributedVersionControl
This interface has methods to support distributed version control systems like git or svk...
Definition: idistributedversioncontrol.h:37
KDevelop::IDistributedVersionControl::push
virtual VcsJob * push(const QUrl &localRepositoryLocation, const VcsLocation &localOrRepoLocationDst)=0
Export the locally committed revisions to another repository.
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Sun Dec 15 2019 03:49:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kdevelop/kdevplatform/vcs

Skip menu "kdevelop/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