KDECore
Go to the documentation of this file.
26 #include <QtCore/QObject>
27 #include <QtCore/QPair>
88 Q_FLAGS( Capabilities )
91 enum Unit { Bytes, Files, Directories };
95 Suspendable = 0x0002 };
97 Q_DECLARE_FLAGS( Capabilities, Capability )
135 Capabilities capabilities() const;
143 bool isSuspended() const;
166 virtual
void start() = 0;
184 bool kill( KillVerbosity verbosity = Quietly );
209 virtual bool doKill();
216 virtual bool doSuspend();
223 virtual bool doResume();
231 void setCapabilities( Capabilities capabilities );
261 UserDefinedError = 100
303 virtual QString errorString()
const;
312 qulonglong processedAmount(Unit unit)
const;
320 qulonglong totalAmount(Unit unit)
const;
327 unsigned long percent()
const;
338 void setAutoDelete(
bool autodelete );
347 bool isAutoDelete()
const;
350 #if !defined(Q_MOC_RUN) && !defined(DOXYGEN_SHOULD_SKIP_THIS) && !defined(IN_IDE_PARSER)
370 void finished(
KJob *job);
380 void suspended(
KJob *job);
390 void resumed(
KJob *job);
406 void result(
KJob *job);
447 #if !defined(Q_MOC_RUN) && !defined(DOXYGEN_SHOULD_SKIP_THIS) && !defined(IN_IDE_PARSER)
476 void processedAmount(
KJob *job,
KJob::Unit unit, qulonglong amount);
488 void totalSize(
KJob *job, qulonglong size);
500 void processedSize(
KJob *job, qulonglong size);
515 void percent(
KJob *job,
unsigned long percent );
526 void speed(
KJob *job,
unsigned long speed);
563 void setErrorText(
const QString &errorText );
574 void setProcessedAmount(Unit unit, qulonglong amount);
584 void setTotalAmount(Unit unit, qulonglong amount);
592 void setPercent(
unsigned long percentage );
616 void emitPercent( qulonglong processedAmount, qulonglong totalAmount );
624 void emitSpeed(
unsigned long speed);
631 Q_PRIVATE_SLOT(d_func(),
void _k_speedTimeout())
632 Q_DECLARE_PRIVATE(
KJob)
635 Q_DECLARE_OPERATORS_FOR_FLAGS( KJob::Capabilities )
static void setError(QAbstractSocket *socket, QAbstractSocket::SocketError error, const QString &errorString)
The base class for all KJob UI delegate.
The base class for all jobs.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:11 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.