KompareDiff2

info.cpp
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#include "info.h"
9
10using namespace KompareDiff2;
11
12Info::Info(Mode _mode,
13 DiffMode _diffMode,
14 Format _format,
15 Generator _generator,
16 const QUrl &_source,
17 const QUrl &_destination,
18 const QString &_localSource,
19 const QString &_localDestination,
20 QTemporaryDir *_sourceQTempDir,
21 QTemporaryDir *_destinationQTempDir,
22 uint _depth,
23 bool _applied)
24 : mode(_mode)
25 , diffMode(_diffMode)
26 , format(_format)
27 , generator(_generator)
28 , source(_source)
29 , destination(_destination)
30 , localSource(_localSource)
31 , localDestination(_localDestination)
32 , sourceQTempDir(_sourceQTempDir)
33 , destinationQTempDir(_destinationQTempDir)
34 , depth(_depth)
35 , applied(_applied)
36{
37}
38
39void Info::swapSourceWithDestination()
40{
41 QUrl url = source;
42 source = destination;
43 destination = url;
44
45 QString string = localSource;
46 localSource = localDestination;
47 localDestination = string;
48
49 QTemporaryDir *tmpDir = sourceQTempDir;
50 sourceQTempDir = destinationQTempDir;
51 destinationQTempDir = tmpDir;
52}
KompareDiff2 namespace.
DiffMode
DiffMode.
Definition global.h:60
Format
Patch format enum.
Definition global.h:16
Generator
Patch generator enum.
Definition global.h:29
Mode
Mode.
Definition global.h:46
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 26 2024 11:54:15 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.