KompareDiff2

info.h
1/*
2 SPDX-FileCopyrightText: 2001-2003 Otto Bruggeman <otto.bruggeman@home.nl>
3 SPDX-FileCopyrightText: 2001-2003 John Firebaugh <jfirebaugh@kde.org>
4
5 SPDX-License-Identifier: GPL-2.0-or-later
6*/
7
8#ifndef KOMPAREDIFF2_INFO_H
9#define KOMPAREDIFF2_INFO_H
10
11// lib
12#include "global.h"
13#include "komparediff2_export.h"
14// Qt
15#include <QUrl>
16
17// Forward declaration needed
18class QTemporaryDir;
19
20namespace KompareDiff2
21{
22
23/**
24 * @class Info info.h <KompareDiff2/Info>
25 *
26 * Info.
27 */
28class KOMPAREDIFF2_EXPORT Info
29{
30public:
31 Info(Mode _mode = UnknownMode,
32 DiffMode _diffMode = UnknownDiffMode,
33 Format _format = UnknownFormat,
34 Generator _generator = UnknownGenerator,
35 const QUrl &_source = QUrl(),
36 const QUrl &_destination = QUrl(),
37 const QString &_localSource = QString(),
38 const QString &_localDestination = QString(),
39 QTemporaryDir *_sourceQTempDir = nullptr,
40 QTemporaryDir *_destinationQTempDir = nullptr,
41 uint _depth = 0,
42 bool _applied = true);
43
44 void swapSourceWithDestination();
45
46 Mode mode;
47 DiffMode diffMode;
48 Format format;
49 Generator generator;
50 QUrl source;
51 QUrl destination;
52 QString localSource;
53 QString localDestination;
54 QTemporaryDir *sourceQTempDir;
55 QTemporaryDir *destinationQTempDir;
56 uint depth;
57 bool applied;
58};
59
60} // End of namespace KompareDiff2
61
62#endif
KompareDiff2 namespace.
DiffMode
DiffMode.
Definition global.h:60
@ UnknownDiffMode
Use to initialize the Info struct.
Definition global.h:63
Format
Patch format enum.
Definition global.h:16
Generator
Patch generator enum.
Definition global.h:29
Mode
Mode.
Definition global.h:46
@ UnknownMode
Used to initialize the Infoi struct.
Definition global.h:54
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:13:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.