1
/** ===========================================================
4
* This file is a part of KDE project
5
* <a href="https://projects.kde.org/projects/extragear/libs/libmediawiki">libmediawiki</a>
8
* @brief a MediaWiki C++ interface for KDE
10
* @author Copyright (C) 2011-2012 by Gilles Caulier
11
* <a href="mailto:caulier dot gilles at gmail dot com">caulier dot gilles at gmail dot com</a>
12
* @author Copyright (C) 2009 by Paolo de Vathaire
13
* <a href="mailto:paolo dot devathaire at gmail dot com">paolo dot devathaire at gmail dot com</a>
15
* This program is free software; you can redistribute it
16
* and/or modify it under the terms of the GNU General
17
* Public License as published by the Free Software Foundation;
18
* either version 2, or (at your option)
21
* This program is distributed in the hope that it will be useful,
22
* but WITHOUT ANY WARRANTY; without even the implied warranty of
23
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24
* GNU General Public License for more details.
26
* ============================================================ */
32
#include <QtNetwork/QNetworkReply>
36
#include "mediawiki.h"
42
Job::Job(JobPrivate& dd, QObject* const parent)
46
setCapabilities(Job::Killable);
64
void Job::connectReply()
67
connect(d->reply, SIGNAL(uploadProgress(qint64,qint64)),
68
this, SLOT(processUploadProgress(qint64,qint64)));
71
void Job::processUploadProgress(qint64 bytesReceived, qint64 bytesTotal)
73
setTotalAmount(Job::Bytes, bytesTotal);
74
setProcessedAmount(Job::Bytes, bytesReceived);
77
} // namespace mediawiki