* Class representing one diff operation. */
| 75 | * Class representing one diff operation. |
| 76 | */ |
| 77 | class Diff { |
| 78 | public: |
| 79 | Operation operation; |
| 80 | // One of: INSERT, DELETE or EQUAL. |
| 81 | QString text; |
| 82 | // The text associated with this diff operation. |
| 83 | |
| 84 | /** |
| 85 | * Constructor. Initializes the diff with the provided values. |
| 86 | * @param operation One of INSERT, DELETE or EQUAL. |
| 87 | * @param text The text being applied. |
| 88 | */ |
| 89 | Diff(Operation _operation, const QString &_text); |
| 90 | Diff(); |
| 91 | inline bool isNull() const; |
| 92 | QString toString() const; |
| 93 | bool operator==(const Diff &d) const; |
| 94 | bool operator!=(const Diff &d) const; |
| 95 | |
| 96 | static QString strOperation(Operation op); |
| 97 | }; |
| 98 | |
| 99 | |
| 100 | /** |
no outgoing calls
no test coverage detected