1
// blah blah standard LGPL license
2
// Copyright 2002-2003, Otto Bruggeman <otto.bruggeman@home.nl>
4
#ifndef _KOMPARE_INTERFACE_H
5
#define _KOMPARE_INTERFACE_H
10
class KompareInterface
14
virtual ~KompareInterface();
18
* Open and parse the diff file at url.
20
virtual bool openDiff( const KURL& diffUrl );
23
* Open and parse the supplied diff output
25
virtual bool openDiff( const QString& diffOutput );
28
* Open and parse the diff3 file at url.
30
virtual bool openDiff3( const KURL& diff3Url );
33
* Open and parse the supplied diff3 output
35
virtual bool openDiff3( const QString& diff3Output );
38
* Compare, with diff, source with destination files
40
virtual void compareFiles( const KURL& sourceFile, const KURL& destinationFile );
43
* Compare, with diff, source with destination directories
45
virtual void compareDirs ( const KURL& sourceDir, const KURL& destinationDir );
48
* Compare, with diff3, originalFile with changedFile1 and changedFile2
50
virtual void compare3( const KURL& originalFile, const KURL& changedFile1, const KURL& changedFile2 );
53
* This will show the file and the file with the diff applied
55
virtual void openFileAndDiff( const KURL& file, const KURL& diffFile );
58
* This will show the directory and the directory with the diff applied
60
virtual void openDirAndDiff ( const KURL& dir, const KURL& diffFile );
64
* Warning this should be in class Part in KDE 4.0, not here !
65
* Around that time the methods will disappear here
67
virtual int readProperties( KConfig* config );
68
virtual int saveProperties( KConfig* config );
71
* Warning this should be in class ReadWritePart in KDE 4.0, not here !
72
* Around that time the method will disappear here
74
virtual bool queryClose();
77
// Maybe some private variables ???
80
#endif /* _KOMPARE_INTERFACE_H */