~kubuntu-members/kompare/4.11

« back to all changes in this revision

Viewing changes to interfaces/kompareinterface.h

  • Committer: Otto Bruggeman
  • Date: 2003-08-22 20:54:19 UTC
  • Revision ID: git-v1:d09a8c32a5056998bdb6f604549a5f24c8f6fe75
Die make_it_cool, die kompare! :)

svn path=/trunk/kdesdk/kompare/; revision=244089

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// blah blah standard LGPL license
 
2
// Copyright 2002-2003, Otto Bruggeman <otto.bruggeman@home.nl>
 
3
 
 
4
#ifndef _KOMPARE_INTERFACE_H
 
5
#define _KOMPARE_INTERFACE_H
 
6
 
 
7
class KConfig;
 
8
class KURL;
 
9
 
 
10
class KompareInterface
 
11
{
 
12
public:
 
13
        KompareInterface();
 
14
        virtual ~KompareInterface();
 
15
 
 
16
public:
 
17
        /**
 
18
         * Open and parse the diff file at url.
 
19
         */
 
20
        virtual bool openDiff( const KURL& diffUrl );
 
21
 
 
22
        /**
 
23
         * Open and parse the supplied diff output
 
24
         */
 
25
        virtual bool openDiff( const QString& diffOutput );
 
26
 
 
27
        /**
 
28
         * Open and parse the diff3 file at url.
 
29
         */
 
30
        virtual bool openDiff3( const KURL& diff3Url );
 
31
 
 
32
        /**
 
33
         * Open and parse the supplied diff3 output
 
34
         */
 
35
        virtual bool openDiff3( const QString& diff3Output );
 
36
 
 
37
        /**
 
38
         * Compare, with diff, source with destination files
 
39
         */
 
40
        virtual void compareFiles( const KURL& sourceFile, const KURL& destinationFile );
 
41
 
 
42
        /**
 
43
         * Compare, with diff, source with destination directories
 
44
         */
 
45
        virtual void compareDirs ( const KURL& sourceDir, const KURL& destinationDir );
 
46
 
 
47
        /**
 
48
         * Compare, with diff3, originalFile with changedFile1 and changedFile2
 
49
         */
 
50
        virtual void compare3( const KURL& originalFile, const KURL& changedFile1, const KURL& changedFile2 );
 
51
 
 
52
        /**
 
53
         * This will show the file and the file with the diff applied
 
54
         */
 
55
        virtual void openFileAndDiff( const KURL& file, const KURL& diffFile );
 
56
 
 
57
        /**
 
58
         * This will show the directory and the directory with the diff applied
 
59
         */
 
60
        virtual void openDirAndDiff ( const KURL& dir,  const KURL& diffFile );
 
61
 
 
62
public:
 
63
        /**
 
64
         * Warning this should be in class Part in KDE 4.0, not here !
 
65
         * Around that time the methods will disappear here
 
66
         */
 
67
        virtual int readProperties( KConfig* config );
 
68
        virtual int saveProperties( KConfig* config );
 
69
 
 
70
        /**
 
71
         * Warning this should be in class ReadWritePart in KDE 4.0, not here !
 
72
         * Around that time the method will disappear here
 
73
         */
 
74
        virtual bool queryClose();
 
75
 
 
76
private:
 
77
// Maybe some private variables ???
 
78
};
 
79
 
 
80
#endif /* _KOMPARE_INTERFACE_H */