Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/vcs/vcsannotation.h
Show All 18 Lines | |||||
19 | * 02110-1301, USA. | 19 | * 02110-1301, USA. | ||
20 | */ | 20 | */ | ||
21 | 21 | | |||
22 | #ifndef KDEVPLATFORM_VCSANNOTATION_H | 22 | #ifndef KDEVPLATFORM_VCSANNOTATION_H | ||
23 | #define KDEVPLATFORM_VCSANNOTATION_H | 23 | #define KDEVPLATFORM_VCSANNOTATION_H | ||
24 | 24 | | |||
25 | #include "vcsexport.h" | 25 | #include "vcsexport.h" | ||
26 | #include <QMetaType> | 26 | #include <QMetaType> | ||
27 | #include <QScopedPointer> | 27 | #include <QSharedDataPointer> | ||
28 | 28 | | |||
29 | class QString; | 29 | class QString; | ||
30 | class QDateTime; | 30 | class QDateTime; | ||
31 | class QUrl; | 31 | class QUrl; | ||
32 | 32 | | |||
33 | namespace KDevelop | 33 | namespace KDevelop | ||
34 | { | 34 | { | ||
35 | class VcsRevision; | 35 | class VcsRevision; | ||
▲ Show 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | 42 | public: | |||
97 | * line | 97 | * line | ||
98 | * @param msg the message of the commit | 98 | * @param msg the message of the commit | ||
99 | */ | 99 | */ | ||
100 | void setCommitMessage( const QString& msg ); | 100 | void setCommitMessage( const QString& msg ); | ||
101 | 101 | | |||
102 | VcsAnnotationLine& operator=( const VcsAnnotationLine& rhs); | 102 | VcsAnnotationLine& operator=( const VcsAnnotationLine& rhs); | ||
103 | 103 | | |||
104 | private: | 104 | private: | ||
105 | const QScopedPointer<class VcsAnnotationLinePrivate> d; | 105 | QSharedDataPointer<class VcsAnnotationLinePrivate> d; | ||
106 | }; | 106 | }; | ||
107 | 107 | | |||
108 | /** | 108 | /** | ||
109 | * Annotations for a local file. | 109 | * Annotations for a local file. | ||
110 | * | 110 | * | ||
111 | * This class lets the user fetch information for each line of a local file, | 111 | * This class lets the user fetch information for each line of a local file, | ||
112 | * including date of last change, author of last change and revision of | 112 | * including date of last change, author of last change and revision of | ||
113 | * last change to the line. | 113 | * last change to the line. | ||
Show All 33 Lines | 117 | public: | |||
147 | */ | 147 | */ | ||
148 | void setLocation( const QUrl& location ); | 148 | void setLocation( const QUrl& location ); | ||
149 | 149 | | |||
150 | bool containsLine( int lineno ) const; | 150 | bool containsLine( int lineno ) const; | ||
151 | 151 | | |||
152 | VcsAnnotation& operator=( const VcsAnnotation& rhs); | 152 | VcsAnnotation& operator=( const VcsAnnotation& rhs); | ||
153 | 153 | | |||
154 | private: | 154 | private: | ||
155 | const QScopedPointer<class VcsAnnotationPrivate> d; | 155 | QSharedDataPointer<class VcsAnnotationPrivate> d; | ||
156 | }; | 156 | }; | ||
157 | 157 | | |||
158 | } | 158 | } | ||
159 | 159 | | |||
160 | Q_DECLARE_METATYPE( KDevelop::VcsAnnotation ) | 160 | Q_DECLARE_METATYPE( KDevelop::VcsAnnotation ) | ||
161 | Q_DECLARE_TYPEINFO( KDevelop::VcsAnnotation, Q_MOVABLE_TYPE ); | ||||
161 | Q_DECLARE_METATYPE( KDevelop::VcsAnnotationLine ) | 162 | Q_DECLARE_METATYPE( KDevelop::VcsAnnotationLine ) | ||
163 | Q_DECLARE_TYPEINFO( KDevelop::VcsAnnotationLine, Q_MOVABLE_TYPE); | ||||
162 | 164 | | |||
163 | #endif | 165 | #endif | ||
164 | 166 | |