TDE personal information management applications
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.7KB

  1. /*
  2. This file is part of libtdepim.
  3. Copyright (c) 2004 Tobias Koenig <tokoe@kde.org>
  4. This library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Library General Public
  6. License as published by the Free Software Foundation; either
  7. version 2 of the License, or (at your option) any later version.
  8. This library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Library General Public License for more details.
  12. You should have received a copy of the GNU Library General Public License
  13. along with this library; see the file COPYING.LIB. If not, write to
  14. the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  15. Boston, MA 02110-1301, USA.
  16. */
  17. #ifndef KSYNC_HTMLDIFFALGODISPLAY_H
  18. #define KSYNC_HTMLDIFFALGODISPLAY_H
  19. #include <ktextbrowser.h>
  20. #include <libtdepim/diffalgo.h>
  21. using namespace KPIM;
  22. namespace KSync {
  23. class HTMLDiffAlgoDisplay : virtual public DiffAlgoDisplay, public KTextBrowser
  24. {
  25. public:
  26. HTMLDiffAlgoDisplay( TQWidget *parent );
  27. void begin();
  28. void end();
  29. void setLeftSourceTitle( const TQString &title );
  30. void setRightSourceTitle( const TQString &title );
  31. void additionalLeftField( const TQString &id, const TQString &value );
  32. void additionalRightField( const TQString &id, const TQString &value );
  33. void conflictField( const TQString &id, const TQString &leftValue,
  34. const TQString &rightValue );
  35. private:
  36. TQString mLeftTitle;
  37. TQString mRightTitle;
  38. TQString mText;
  39. };
  40. }
  41. #endif