26 #ifndef DIGIKAM_MEDIAWIKI_EDIT_H
27 #define DIGIKAM_MEDIAWIKI_EDIT_H
35 #include <QNetworkCookieJar>
53 class Edit :
public Job
56 Q_DECLARE_PRIVATE(Edit)
68 TextMissing = Job::UserDefinedError+1,
83 CreatePagePermissionMissing,
88 AnonymousCreatePagePermissionMissing,
98 AnonymousCreateImagePermissionMissing,
103 CreateImagePermissionMissing,
123 AnonymousEditPagePermissionMissing,
128 EditPagePermissionMissing,
193 explicit Edit(Iface& media, QObject*
const parent =
nullptr);
203 void start()
override;
209 void setWatchList(Edit::Watchlist watchlist);
215 void setRecreate(
bool recreate);
221 void setCreateonly(
bool createonly);
227 void setNocreate(
bool norecreate);
233 void setMinor(
bool minor);
239 void setSection(
const QString& section);
245 void setSummary(
const QString& summary);
251 void setUndoAfter(
int undoafter);
257 void setUndo(
int undo);
263 void setPrependText(
const QString& prependText);
269 void setAppendText(
const QString& appendText);
275 void setPageName(
const QString& pageName);
281 void setToken(
const QString& token);
287 void setBaseTimestamp(
const QDateTime& baseTimestamp);
293 void setStartTimestamp(
const QDateTime& startTimestamp);
299 void setText(
const QString& text);
307 void resultCaptcha(
const QVariant& captcha);
311 void doWorkSendRequest(
const Page& page);
320 void finishedCaptcha(
const QString& captcha);