• 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
icontentawareversioncontrol.cpp
Go to the documentation of this file.
1 /* This file is part of KDevelop
2  *
3  * Copyright 2013 Sven Brauch <[email protected]>
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18  * 02110-1301, USA.
19  */
20 
21 #include "icontentawareversioncontrol.h"
22 
23 
24 namespace KDevelop {
25 
26 class CheckInRepositoryJobPrivate
27 {
28  explicit CheckInRepositoryJobPrivate(KTextEditor::Document* document)
29  : document(document) { };
30  friend class CheckInRepositoryJob;
31  KTextEditor::Document* document;
32 };
33 
34 CheckInRepositoryJob::CheckInRepositoryJob(KTextEditor::Document* document)
35  : KJob()
36  , d_ptr(new CheckInRepositoryJobPrivate(document))
37 {
38  connect(this, &CheckInRepositoryJob::finished, this, &CheckInRepositoryJob::deleteLater);
39  setCapabilities(Killable);
40 }
41 
42 CheckInRepositoryJob::~CheckInRepositoryJob() = default;
43 
44 KTextEditor::Document* CheckInRepositoryJob::document() const
45 {
46  Q_D(const CheckInRepositoryJob);
47 
48  return d->document;
49 }
50 
51 void CheckInRepositoryJob::abort()
52 {
53  kill();
54 }
55 
56 } // namespace KDevelop
57 
KDevelop::CheckInRepositoryJob
Definition: icontentawareversioncontrol.h:35
KDevelop::CheckInRepositoryJob::CheckInRepositoryJob
CheckInRepositoryJob(KTextEditor::Document *document)
Definition: icontentawareversioncontrol.cpp:34
KDevelop::CheckInRepositoryJob::finished
void finished(bool canRecreate)
icontentawareversioncontrol.h
KDevelop::CheckInRepositoryJob::document
KTextEditor::Document * document() const
Definition: icontentawareversioncontrol.cpp:44
KJob
KDevelop::CheckInRepositoryJob::abort
void abort()
Abort this request.
Definition: icontentawareversioncontrol.cpp:51
KDevelop
Definition: dvcsevent.h:33
KDevelop::CheckInRepositoryJob::~CheckInRepositoryJob
~CheckInRepositoryJob() override
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Apr 10 2021 23:31:23 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