Akonadi::AbstractDifferencesReporter
#include <abstractdifferencesreporter.h>
Public Types | |
enum | Mode { NormalMode , ConflictMode , AdditionalLeftMode , AdditionalRightMode } |
Public Member Functions | |
virtual | ~AbstractDifferencesReporter ()=default |
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 78 of file abstractdifferencesreporter.h.
Member Enumeration Documentation
◆ Mode
Describes the property modes.
Definition at line 84 of file abstractdifferencesreporter.h.
Constructor & Destructor Documentation
◆ ~AbstractDifferencesReporter()
|
virtualdefault |
Destroys the abstract differences reporter.
Member Function Documentation
◆ addProperty()
|
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.
◆ setLeftPropertyValueTitle()
|
pure virtual |
Sets the title
of the column that shows the property values of the left object.
◆ setPropertyNameTitle()
|
pure virtual |
Sets the title
of the property name column.
◆ setRightPropertyValueTitle()
|
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-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:03:34 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.