mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 10:52:49 +00:00
kio: remove unused member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
9375b3ce72
commit
dfc39666d2
3 changed files with 4 additions and 31 deletions
|
@ -903,12 +903,6 @@ void TransferJob::slotDataReq()
|
||||||
KIO::filesize_t size = processedAmount(KJob::Bytes)+dataForSlave.size();
|
KIO::filesize_t size = processedAmount(KJob::Bytes)+dataForSlave.size();
|
||||||
setProcessedAmount(KJob::Bytes, size);
|
setProcessedAmount(KJob::Bytes, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (d->m_subJob) {
|
|
||||||
// Bitburger protocol in action
|
|
||||||
d->internalSuspend(); // Wait for more data from subJob.
|
|
||||||
d->m_subJob->d_func()->internalResume(); // Ask for more!
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TransferJobPrivate::internalSuspend()
|
void TransferJobPrivate::internalSuspend()
|
||||||
|
@ -981,20 +975,6 @@ void TransferJobPrivate::slotCanResume(KIO::filesize_t offset)
|
||||||
emit q->canResume(q, offset);
|
emit q->canResume(q, offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TransferJob::slotResult(KJob *job)
|
|
||||||
{
|
|
||||||
Q_D(TransferJob);
|
|
||||||
// This can only be our subjob.
|
|
||||||
Q_ASSERT(job == d->m_subJob);
|
|
||||||
|
|
||||||
SimpleJob::slotResult(job);
|
|
||||||
|
|
||||||
if (!error() && job == d->m_subJob) {
|
|
||||||
d->m_subJob = 0; // No action required
|
|
||||||
d->internalResume(); // Make sure we get the remaining data.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void TransferJob::setModificationTime(const QDateTime &mtime)
|
void TransferJob::setModificationTime(const QDateTime &mtime)
|
||||||
{
|
{
|
||||||
addMetaData("modified", mtime.toString(Qt::ISODate));
|
addMetaData("modified", mtime.toString(Qt::ISODate));
|
||||||
|
|
|
@ -233,16 +233,15 @@ namespace KIO {
|
||||||
class TransferJobPrivate: public SimpleJobPrivate
|
class TransferJobPrivate: public SimpleJobPrivate
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
inline TransferJobPrivate(const KUrl& url, int command, const QByteArray &packedArgs)
|
TransferJobPrivate(const KUrl& url, int command, const QByteArray &packedArgs)
|
||||||
: SimpleJobPrivate(url, command, packedArgs),
|
: SimpleJobPrivate(url, command, packedArgs),
|
||||||
m_internalSuspended(false),
|
m_internalSuspended(false)
|
||||||
m_subJob(0)
|
{
|
||||||
{ }
|
}
|
||||||
|
|
||||||
bool m_internalSuspended;
|
bool m_internalSuspended;
|
||||||
KUrl m_redirectionURL;
|
KUrl m_redirectionURL;
|
||||||
KUrl::List m_redirectionList;
|
KUrl::List m_redirectionList;
|
||||||
TransferJob *m_subJob;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Flow control. Suspend data processing from the slave.
|
* Flow control. Suspend data processing from the slave.
|
||||||
|
|
|
@ -485,12 +485,6 @@ namespace KIO {
|
||||||
void setTotalSize(KIO::filesize_t bytes);
|
void setTotalSize(KIO::filesize_t bytes);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/**
|
|
||||||
* Called when m_subJob finishes.
|
|
||||||
* @param job the job that finished
|
|
||||||
*/
|
|
||||||
virtual void slotResult( KJob *job );
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reimplemented for internal reasons
|
* Reimplemented for internal reasons
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue