• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

libkdepim

diffalgo.cpp

Go to the documentation of this file.
00001 /*
00002     This file is part of libkdepim.
00003 
00004     Copyright (c) 2004 Tobias Koenig <tokoe@kde.org>
00005 
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Library General Public
00008     License as published by the Free Software Foundation; either
00009     version 2 of the License, or (at your option) any later version.
00010 
00011     This library is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014     Library General Public License for more details.
00015 
00016     You should have received a copy of the GNU Library General Public License
00017     along with this library; see the file COPYING.LIB.  If not, write to
00018     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019     Boston, MA 02110-1301, USA.
00020 */
00021 
00022 #include <libkdepim/diffalgo.h>
00023 #include <QList>
00024 
00025 using namespace KPIM;
00026 
00027 void DiffAlgo::begin()
00028 {
00029   QList<DiffAlgoDisplay*>::Iterator it;
00030   for ( it = mDisplays.begin(); it != mDisplays.end(); ++it )
00031     (*it)->begin();
00032 }
00033 
00034 void DiffAlgo::end()
00035 {
00036   QList<DiffAlgoDisplay*>::Iterator it;
00037   for ( it = mDisplays.begin(); it != mDisplays.end(); ++it )
00038     (*it)->end();
00039 }
00040 
00041 void DiffAlgo::setLeftSourceTitle( const QString &title )
00042 {
00043   QList<DiffAlgoDisplay*>::Iterator it;
00044   for ( it = mDisplays.begin(); it != mDisplays.end(); ++it )
00045     (*it)->setLeftSourceTitle( title );
00046 }
00047 
00048 void DiffAlgo::setRightSourceTitle( const QString &title )
00049 {
00050   QList<DiffAlgoDisplay*>::Iterator it;
00051   for ( it = mDisplays.begin(); it != mDisplays.end(); ++it )
00052     (*it)->setRightSourceTitle( title );
00053 }
00054 
00055 void DiffAlgo::additionalLeftField( const QString &id, const QString &value )
00056 {
00057   QList<DiffAlgoDisplay*>::Iterator it;
00058   for ( it = mDisplays.begin(); it != mDisplays.end(); ++it )
00059     (*it)->additionalLeftField( id, value );
00060 }
00061 
00062 void DiffAlgo::additionalRightField( const QString &id, const QString &value )
00063 {
00064   QList<DiffAlgoDisplay*>::Iterator it;
00065   for ( it = mDisplays.begin(); it != mDisplays.end(); ++it )
00066     (*it)->additionalRightField( id, value );
00067 }
00068 
00069 void DiffAlgo::conflictField( const QString &id, const QString &leftValue,
00070                                  const QString &rightValue )
00071 {
00072   QList<DiffAlgoDisplay*>::Iterator it;
00073   for ( it = mDisplays.begin(); it != mDisplays.end(); ++it )
00074     (*it)->conflictField( id, leftValue, rightValue );
00075 }
00076 
00077 void DiffAlgo::addDisplay( DiffAlgoDisplay *display )
00078 {
00079   if ( !mDisplays.contains( display )  )
00080     mDisplays.append( display );
00081 }
00082 
00083 void DiffAlgo::removeDisplay( DiffAlgoDisplay *display )
00084 {
00085   mDisplays.removeAll( display );
00086 }

libkdepim

Skip menu "libkdepim"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal