Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/vcs/vcsdiff.h
Show All 20 Lines | |||||
21 | 21 | | |||
22 | #ifndef KDEVPLATFORM_VCSDIFF_H | 22 | #ifndef KDEVPLATFORM_VCSDIFF_H | ||
23 | #define KDEVPLATFORM_VCSDIFF_H | 23 | #define KDEVPLATFORM_VCSDIFF_H | ||
24 | 24 | | |||
25 | //Needed first as it provides a hash-function for QHash | 25 | //Needed first as it provides a hash-function for QHash | ||
26 | #include "vcslocation.h" | 26 | #include "vcslocation.h" | ||
27 | 27 | | |||
28 | #include <QHash> | 28 | #include <QHash> | ||
29 | #include <QSharedDataPointer> | ||||
29 | 30 | | |||
30 | #include "vcsexport.h" | 31 | #include "vcsexport.h" | ||
31 | 32 | | |||
32 | class QString; | 33 | class QString; | ||
33 | class QByteArray; | 34 | class QByteArray; | ||
34 | 35 | | |||
35 | namespace KDevelop | 36 | namespace KDevelop | ||
36 | { | 37 | { | ||
▲ Show 20 Lines • Show All 92 Lines • ▼ Show 20 Line(s) | 111 | */ | |||
129 | void setType( Type ); | 130 | void setType( Type ); | ||
130 | void setContentType( Content ); | 131 | void setContentType( Content ); | ||
131 | VcsDiff& operator=( const VcsDiff& rhs); | 132 | VcsDiff& operator=( const VcsDiff& rhs); | ||
132 | 133 | | |||
133 | /** @returns whether there are not changes on the diff */ | 134 | /** @returns whether there are not changes on the diff */ | ||
134 | bool isEmpty() const; | 135 | bool isEmpty() const; | ||
135 | 136 | | |||
136 | private: | 137 | private: | ||
137 | const QScopedPointer<class VcsDiffPrivate> d; | 138 | QSharedDataPointer<class VcsDiffPrivate> d; | ||
138 | }; | 139 | }; | ||
139 | 140 | | |||
140 | } | 141 | } | ||
141 | 142 | | |||
142 | Q_DECLARE_METATYPE( KDevelop::VcsDiff ) | 143 | Q_DECLARE_METATYPE( KDevelop::VcsDiff ) | ||
144 | Q_DECLARE_TYPEINFO( KDevelop::VcsDiff, Q_MOVABLE_TYPE ); | ||||
143 | 145 | | |||
144 | #endif | 146 | #endif | ||
145 | 147 | |