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

Kate

  • kde-4.14
  • applications
  • kate
  • part
  • swapfile
kateswapdiffcreator.h
Go to the documentation of this file.
1 /* This file is part of the Kate project.
2  *
3  * Copyright (C) 2010-2012 Dominik Haumann <dhaumann kde org>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library 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 GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public License
16  * along with this library; see the file COPYING.LIB. If not, write to
17  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  */
20 
21 #ifndef KATE_SWAP_DIFF_CREATOR_H
22 #define KATE_SWAP_DIFF_CREATOR_H
23 
24 #include <QByteArray>
25 #include <QAction>
26 #include <KTemporaryFile>
27 
28 class KProcess;
29 
30 namespace Kate {
31  class SwapFile;
32 }
33 
34 class SwapDiffCreator : public QObject
35 {
36  Q_OBJECT
37 
38  public:
39  explicit SwapDiffCreator (Kate::SwapFile* swapFile);
40  ~SwapDiffCreator ();
41 
42  public Q_SLOTS:
43  void viewDiff();
44 
45  private:
46  Kate::SwapFile * m_swapFile;
47 
48  protected Q_SLOTS:
49  void slotDataAvailable();
50  void slotDiffFinished();
51 
52  private:
53  KProcess* m_proc;
54  KTemporaryFile m_originalFile;
55  KTemporaryFile m_recoveredFile;
56  KTemporaryFile m_diffFile;
57 };
58 
59 #endif //KATE_SWAP_DIFF_CREATOR_H
60 
61 // kate: space-indent on; indent-width 2; replace-tabs on;
SwapDiffCreator::slotDataAvailable
void slotDataAvailable()
Definition: kateswapdiffcreator.cpp:113
SwapDiffCreator::SwapDiffCreator
SwapDiffCreator(Kate::SwapFile *swapFile)
Definition: kateswapdiffcreator.cpp:31
Kate::SwapFile
Class for tracking editing actions.
Definition: kateswapfile.h:46
QObject
SwapDiffCreator
Definition: kateswapdiffcreator.h:34
SwapDiffCreator::~SwapDiffCreator
~SwapDiffCreator()
Definition: kateswapdiffcreator.cpp:38
SwapDiffCreator::viewDiff
void viewDiff()
Definition: kateswapdiffcreator.cpp:42
SwapDiffCreator::slotDiffFinished
void slotDiffFinished()
Definition: kateswapdiffcreator.cpp:119
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Kate

Skip menu "Kate"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Konsole

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