File indexing completed on 2024-04-28 05:43:54

0001 /*
0002     SPDX-FileCopyrightText: 2001-2003 Otto Bruggeman <otto.bruggeman@home.nl>
0003     SPDX-FileCopyrightText: 2001-2003 John Firebaugh <jfirebaugh@kde.org>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #ifndef KOMPAREDIFF2_GLOBAL_H
0009 #define KOMPAREDIFF2_GLOBAL_H
0010 
0011 namespace KompareDiff2
0012 {
0013 /**
0014  * Patch format enum.
0015  */
0016 enum Format {
0017     UnknownFormat = -1,
0018     Context       = 0,
0019     Ed            = 1,
0020     Normal        = 2,
0021     RCS           = 3,
0022     Unified       = 4,
0023     SideBySide    = 5,
0024 };
0025 
0026 /**
0027  * Patch generator enum.
0028  */
0029 enum Generator {
0030     UnknownGenerator = -1,
0031     CVSDiff          = 0,
0032     Diff             = 1,
0033     Perforce         = 2,
0034     SubVersion       = 3,
0035     Reserved2        = 4,
0036     Reserved3        = 5,
0037     Reserved4        = 6,
0038     Reserved5        = 7,
0039     Reserved6        = 8,
0040     Reserved7        = 9,
0041 };
0042 
0043 /**
0044  * Mode
0045  */
0046 enum Mode {
0047     ComparingFiles,      ///< compareFiles
0048     ComparingFileString, ///< Compare a source file with a destination string
0049     ComparingStringFile, ///< Compare a source string with a destination file
0050     ComparingDirs,       ///< compareDirs
0051     ShowingDiff,         ///< openDiff
0052     BlendingDir,         ///< openDirAndDiff
0053     BlendingFile,        ///< openFileAndDiff
0054     UnknownMode,         ///< Used to initialize the Infoi struct
0055 };
0056 
0057 /**
0058  * DiffMode
0059  */
0060 enum DiffMode {
0061     Default,
0062     Custom,
0063     UnknownDiffMode, ///< Use to initialize the Info struct
0064 };
0065 
0066 /**
0067  * State
0068  */
0069 enum Status {
0070     RunningDiff,
0071     Parsing,
0072     FinishedParsing,
0073     FinishedWritingDiff,
0074     ReRunningDiff, ///< When a change has been detected after diff has run
0075 };
0076 
0077 } // End of namespace KompareDiff2
0078 
0079 #endif