25 #ifndef DIGIKAM_MEDIAWIKI_QUERYREVISION_H
26 #define DIGIKAM_MEDIAWIKI_QUERYREVISION_H
43 class QueryRevisionPrivate;
50 class QueryRevision :
public Job
53 Q_DECLARE_PRIVATE(QueryRevision)
92 WrongRevisionId = Job::UserDefinedError + 1,
128 Q_DECLARE_FLAGS(Properties, Property)
137 explicit QueryRevision(Iface& MediaWiki, QObject*
const parent =
nullptr);
142 ~QueryRevision()
override;
147 void start()
override;
153 void setPageId(
unsigned int pageId);
159 void setRevisionId(
unsigned int revisionId);
165 void setPageName(
const QString& pageName);
171 void setProperties(Properties properties);
177 void setLimit(
int limit);
183 void setStartId(
int startId);
189 void setEndId(
int endId);
195 void setStartTimestamp(
const QDateTime& start);
201 void setEndTimestamp(
const QDateTime& end);
210 void setUser(
const QString& user);
219 void setExcludeUser(
const QString& excludeUser);
225 void setDirection(QueryRevision::Direction direction);
231 void setGenerateXML(
bool generateXML);
240 void setSection(
int section);
246 void setToken(QueryRevision::Token token);
255 void setExpandTemplates(
bool expandTemplates);
267 void doWorkSendRequest();
268 void doWorkProcessReply();
271 Q_DECLARE_OPERATORS_FOR_FLAGS(QueryRevision::Properties)
Definition: piwigotalker.h:48