File indexing completed on 2024-05-12 05:46:25
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_INFO_H 0009 #define KOMPAREDIFF2_INFO_H 0010 0011 // lib 0012 #include "global.h" 0013 #include "komparediff2_export.h" 0014 // Qt 0015 #include <QUrl> 0016 0017 // Forward declaration needed 0018 class QTemporaryDir; 0019 0020 namespace KompareDiff2 0021 { 0022 0023 /** 0024 * @class Info info.h <KompareDiff2/Info> 0025 * 0026 * Info. 0027 */ 0028 class KOMPAREDIFF2_EXPORT Info 0029 { 0030 public: 0031 Info(Mode _mode = UnknownMode, 0032 DiffMode _diffMode = UnknownDiffMode, 0033 Format _format = UnknownFormat, 0034 Generator _generator = UnknownGenerator, 0035 const QUrl &_source = QUrl(), 0036 const QUrl &_destination = QUrl(), 0037 const QString &_localSource = QString(), 0038 const QString &_localDestination = QString(), 0039 QTemporaryDir *_sourceQTempDir = nullptr, 0040 QTemporaryDir *_destinationQTempDir = nullptr, 0041 uint _depth = 0, 0042 bool _applied = true); 0043 0044 void swapSourceWithDestination(); 0045 0046 Mode mode; 0047 DiffMode diffMode; 0048 Format format; 0049 Generator generator; 0050 QUrl source; 0051 QUrl destination; 0052 QString localSource; 0053 QString localDestination; 0054 QTemporaryDir *sourceQTempDir; 0055 QTemporaryDir *destinationQTempDir; 0056 uint depth; 0057 bool applied; 0058 }; 0059 0060 } // End of namespace KompareDiff2 0061 0062 #endif