KCoreAddons
kjob.h
258 * can have unintended side effects, you should avoid calling exec() whenever you can and use the
265 * Note that the event loop started by this method does not process user input events, which means
266 * your user interface will effectively be blocked. Other events like paint or network events are
267 * still being processed. The advantage of not processing user input events is that the chance of
415 * Sub-classes must call startElapsedTimer() from their `start()` implementation, to get `elapsedTime()` measurement.
Unit
Describes the unit used in the methods that handle reporting the job progress info.
Definition kjob.h:87
void description(KJob *job, const QString &title, const QPair< QString, QString > &field1=QPair< QString, QString >(), const QPair< QString, QString > &field2=QPair< QString, QString >())
Emitted to display general description of this job.
void emitResult()
Utility function to emit the result signal, and end this job.
Definition kjob.cpp:354
Q_SCRIPTABLE qulonglong totalAmount(Unit unit) const
Returns the total amount of a given unit for this job.
Definition kjob.cpp:259
bool isFinished() const
Returns if the job has been finished and has emitted the finished() signal.
Definition kjob.cpp:274
void processedSize(KJob *job, qulonglong size)
Regularly emitted to show the progress of this job (current data size in bytes for transfers,...
void result(KJob *job)
Emitted when the job is finished (except when killed with KJob::Quietly).
bool isSuspended() const
Returns if the job was suspended with the suspend() call.
Definition kjob.cpp:96
void totalAmountChanged(KJob *job, KJob::Unit unit, qulonglong amount)
Emitted when we know the amount the job will have to process.
void warning(KJob *job, const QString &message)
Emitted to display a warning about this job.
Q_SCRIPTABLE qulonglong processedAmount(Unit unit) const
Returns the processed amount of a given unit for this job.
Definition kjob.cpp:249
void setPercent(unsigned long percentage)
Sets the overall progress of the job.
Definition kjob.cpp:345
KJobUiDelegate * uiDelegate() const
Retrieves the delegate attached to this job.
Definition kjob.cpp:86
void infoMessage(KJob *job, const QString &message)
Emitted to display state information about this job.
void totalSize(KJob *job, qulonglong size)
Emitted when we know the size of this job (data size in bytes for transfers, number of entries for li...
void setProgressUnit(Unit unit)
Sets the unit that will be used internally to calculate the progress percentage.
Definition kjob.cpp:339
void processedAmountChanged(KJob *job, KJob::Unit unit, qulonglong amount)
Regularly emitted to show the progress of this job by giving the current amount.
void emitPercent(qulonglong processedAmount, qulonglong totalAmount)
Utility function for inherited jobs.
Definition kjob.cpp:361
void setProcessedAmount(Unit unit, qulonglong amount)
Sets the processed size.
Definition kjob.cpp:291
void percentChanged(KJob *job, unsigned long percent)
Progress signal showing the overall progress of the job.
void speed(KJob *job, unsigned long speed)
Emitted to display information about the speed of this job.
void suspend()
void error(QWidget *parent, const QString &text, const QString &title, const KGuiItem &buttonOk, Options options=Notify)
QObject(QObject *parent)
Q_ENUM(...)
Q_FLAG(...)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:55:52 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:55:52 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.