2
This file is part of libkdepim.
4
Copyright (c) 2004 Tobias Koenig <tokoe@kde.org>
6
This library is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Library General Public
8
License as published by the Free Software Foundation; either
9
version 2 of the License, or (at your option) any later version.
11
This library is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
Library General Public License for more details.
16
You should have received a copy of the GNU Library General Public License
17
along with this library; see the file COPYING.LIB. If not, write to
18
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19
Boston, MA 02110-1301, USA.
22
#include <libkdepim/diffalgo.h>
28
void DiffAlgo::begin()
30
QList<DiffAlgoDisplay*>::Iterator it;
31
for ( it = mDisplays.begin(); it != mDisplays.end(); ++it )
37
QList<DiffAlgoDisplay*>::Iterator it;
38
for ( it = mDisplays.begin(); it != mDisplays.end(); ++it )
42
void DiffAlgo::setLeftSourceTitle( const QString &title )
44
QList<DiffAlgoDisplay*>::Iterator it;
45
for ( it = mDisplays.begin(); it != mDisplays.end(); ++it )
46
(*it)->setLeftSourceTitle( title );
49
void DiffAlgo::setRightSourceTitle( const QString &title )
51
QList<DiffAlgoDisplay*>::Iterator it;
52
for ( it = mDisplays.begin(); it != mDisplays.end(); ++it )
53
(*it)->setRightSourceTitle( title );
56
void DiffAlgo::additionalLeftField( const QString &id, const QString &value )
58
QList<DiffAlgoDisplay*>::Iterator it;
59
for ( it = mDisplays.begin(); it != mDisplays.end(); ++it )
60
(*it)->additionalLeftField( id, value );
63
void DiffAlgo::additionalRightField( const QString &id, const QString &value )
65
QList<DiffAlgoDisplay*>::Iterator it;
66
for ( it = mDisplays.begin(); it != mDisplays.end(); ++it )
67
(*it)->additionalRightField( id, value );
70
void DiffAlgo::conflictField( const QString &id, const QString &leftValue,
71
const QString &rightValue )
73
QList<DiffAlgoDisplay*>::Iterator it;
74
for ( it = mDisplays.begin(); it != mDisplays.end(); ++it )
75
(*it)->conflictField( id, leftValue, rightValue );
78
void DiffAlgo::addDisplay( DiffAlgoDisplay *display )
80
if ( !mDisplays.contains( display ) )
81
mDisplays.append( display );
84
void DiffAlgo::removeDisplay( DiffAlgoDisplay *display )
86
mDisplays.removeAll( display );