KCoreAddons
kjob.cpp
Definition: kjobuidelegate.h:31
bool isStartedWithExec() const
Returns true if this job was started with exec(), which starts a nested event-loop (with QEventLoop::...
Definition: kjob.cpp:405
ExcludeUserInputEvents
Q_SCRIPTABLE qulonglong totalAmount(Unit unit) const
Returns the total amount of a given unit for this job.
Definition: kjob.cpp:231
void setProgressUnit(Unit unit)
Sets the unit that will be used internally to calculate the progress percentage.
Definition: kjob.cpp:317
Q_EMITQ_EMIT
void result(KJob *job)
Emitted when the job is finished (except when killed with KJob::Quietly).
bool isFinished() const
Returns if the job has been finished and has emitted the finished() signal.
Definition: kjob.cpp:246
void speed(KJob *job, unsigned long speed)
Emitted to display information about the speed of this job.
void percentChanged(KJob *job, unsigned long percent)
Progress signal showing the overall progress of the job.
void emitPercent(qulonglong processedAmount, qulonglong totalAmount)
Utility function for inherited jobs.
Definition: kjob.cpp:342
Q_SCRIPTABLE qulonglong processedAmount(Unit unit) const
Returns the processed amount of a given unit for this job.
Definition: kjob.cpp:221
void setAutoDelete(bool autodelete)
Sets the auto-delete property of the job.
Definition: kjob.cpp:387
bool isAutoDelete() const
Returns whether this job automatically deletes itself once the job is finished.
Definition: kjob.cpp:381
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
KJobUiDelegate * uiDelegate() const
Retrieves the delegate attached to this job.
Definition: kjob.cpp:69
void deleteLater()
void setCapabilities(Capabilities capabilities)
Sets the capabilities for this job.
Definition: kjob.cpp:171
void totalAmountChanged(KJob *job, KJob::Unit unit, qulonglong amount)
Emitted when we know the amount the job will have to process.
void timeout()
void setPercent(unsigned long percentage)
Sets the overall progress of the job.
Definition: kjob.cpp:323
void setFinishedNotificationHidden(bool hide=true)
This method can be used to indicate to classes listening to signals from a job that they should ideal...
Definition: kjob.cpp:393
bool isFinishedNotificationHidden() const
Whether to not show a finished notification when a job's finished signal is emitted.
Definition: kjob.cpp:399
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 setProcessedAmount(Unit unit, qulonglong amount)
Sets the processed size.
Definition: kjob.cpp:263
void setUiDelegate(KJobUiDelegate *delegate)
Attach a UI delegate to this job.
Definition: kjob.cpp:53
bool isSuspended() const
Returns if the job was suspended with the suspend() call.
Definition: kjob.cpp:79
void processedSize(KJob *job, qulonglong size)
Regularly emitted to show the progress of this job (current data size in bytes for transfers,...
void emitResult()
Utility function to emit the result signal, and suicide this job.
Definition: kjob.cpp:335
Unit
Describes the unit used in the methods that handle reporting the job progress info.
Definition: kjob.h:87
void processedAmountChanged(KJob *job, KJob::Unit unit, qulonglong amount)
Regularly emitted to show the progress of this job by giving the current amount.
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Nov 29 2023 04:04:17 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Nov 29 2023 04:04:17 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.