akonadi
#include <abstractdifferencesreporter.h>
Inherited by HtmlDifferencesReporter.
Public Types | |
enum | Mode { NormalMode, ConflictMode, AdditionalLeftMode, AdditionalRightMode } |
Public Member Functions | |
virtual | ~AbstractDifferencesReporter () |
virtual void | addProperty (Mode mode, const QString &name, const QString &leftValue, const QString &rightValue)=0 |
virtual void | setLeftPropertyValueTitle (const QString &title)=0 |
virtual void | setPropertyNameTitle (const QString &title)=0 |
virtual void | setRightPropertyValueTitle (const QString &title)=0 |
Detailed Description
An interface to report differences between two arbitrary objects.
This interface can be used to report differences between two arbitrary objects by describing a virtual table with three columns. The first column contains the name of the property that is compared, the second column the property value of the one object and the third column the property of the other object.
The rows of this table can have different modes:
- NormalMode The left and right columns show the same property values.
- ConflictMode The left and right columns show conflicting property values.
- AdditionalLeftMode The left column contains a property value that is not available in the right column.
- AdditionalRightMode The right column contains a property value that is not available in the left column.
Example:
- Since
- 4.6
Definition at line 92 of file abstractdifferencesreporter.h.
Member Enumeration Documentation
Describes the property modes.
Definition at line 98 of file abstractdifferencesreporter.h.
Constructor & Destructor Documentation
|
inlinevirtual |
Destroys the abstract differences reporter.
Definition at line 108 of file abstractdifferencesreporter.h.
Member Function Documentation
|
pure virtual |
Adds a new property entry to the table.
- Parameters
-
mode Describes the mode of the property. If mode is AdditionalLeftMode or AdditionalRightMode, rightValue resp. leftValue should be QString(). name The user visible name of the property. leftValue The user visible property value of the left object. rightValue The user visible property value of the right object.
|
pure virtual |
Sets the title
of the column that shows the property values of the left object.
|
pure virtual |
Sets the title
of the property name column.
|
pure virtual |
Sets the title
of the column that shows the property values of the right object.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:04 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.