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

kompare

  • sources
  • kde-4.14
  • kdesdk
  • kompare
  • interfaces
kompareinterface.h
Go to the documentation of this file.
1 /*
2  Copyright 2002-2003 Otto Bruggeman <otto.bruggeman@home.nl>
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 #ifndef _KOMPARE_INTERFACE_H
21 #define _KOMPARE_INTERFACE_H
22 
23 #include <QtCore/QString>
24 #include <QtCore/QStringList>
25 #include <kdemacros.h>
26 
27 class KConfig;
28 class KUrl;
29 
30 class KompareInterfacePrivate;
31 
32 class KDE_EXPORT KompareInterface
33 {
34 public:
35  KompareInterface();
36  virtual ~KompareInterface();
37 
38 protected:
39  KompareInterface( const KompareInterface& );
40  KompareInterface& operator=(const KompareInterface& );
41 
42 public:
46  virtual bool openDiff( const KUrl& diffUrl ) = 0;
47 
51  virtual bool openDiff( const QString& diffOutput ) = 0;
52 
56  virtual bool openDiff3( const KUrl& diff3Url ) = 0;
57 
61  virtual bool openDiff3( const QString& diff3Output ) = 0;
62 
69  virtual void compare( const KUrl& sourceFile, const KUrl& destinationFile ) = 0;
70 
74  virtual void compareFileString( const KUrl & sourceFile, const QString & destination) = 0;
75 
79  virtual void compareStringFile( const QString & source, const KUrl & destinationFile) = 0;
80 
84  virtual void compareFiles( const KUrl& sourceFile, const KUrl& destinationFile ) = 0;
85 
89  virtual void compareDirs ( const KUrl& sourceDir, const KUrl& destinationDir ) = 0;
90 
94  virtual void compare3Files( const KUrl& originalFile, const KUrl& changedFile1, const KUrl& changedFile2 ) = 0;
95 
99  virtual void openFileAndDiff( const KUrl& file, const KUrl& diffFile ) = 0;
100 
104  virtual void openDirAndDiff ( const KUrl& dir, const KUrl& diffFile ) = 0;
105 
109  virtual void setEncoding( const QString& encoding );
110 
111 public:
116  virtual int readProperties( KConfig* config ) = 0;
117  virtual int saveProperties( KConfig* config ) = 0;
118 
123  virtual bool queryClose() = 0;
124 
125 protected:
126  // Add all variables to the KompareInterfacePrivate class and access them through the kip pointer
127  KompareInterfacePrivate* kip;
128  QString m_encoding;
129 };
130 
131 Q_DECLARE_INTERFACE(KompareInterface, "com.kde.Kompare.KompareInterface/4.0")
132 
133 #endif /* _KOMPARE_INTERFACE_H */
KompareInterface
Definition: kompareinterface.h:32
QString
KompareInterface::kip
KompareInterfacePrivate * kip
Definition: kompareinterface.h:127
KompareInterface::m_encoding
QString m_encoding
Definition: kompareinterface.h:128
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kompare

Skip menu "kompare"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • umbrello
  •   umbrello

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