KCoreAddons
kjob.cpp
Unit
Describes the unit used in the methods that handle reporting the job progress info.
Definition kjob.h:87
qint64 elapsedTime() const
The number of milliseconds the job has been running for.
Definition kjob.cpp:70
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.
Q_SCRIPTABLE qulonglong processedAmount(Unit unit) const
Returns the processed amount of a given unit for this job.
Definition kjob.cpp:249
bool isFinishedNotificationHidden() const
Whether to not show a finished notification when a job's finished signal is emitted.
Definition kjob.cpp:409
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
bool isAutoDelete() const
Returns whether this job automatically deletes itself once the job is finished.
Definition kjob.cpp:391
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 setCapabilities(Capabilities capabilities)
Sets the capabilities for this job.
Definition kjob.cpp:199
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.
bool isStartedWithExec() const
Returns true if this job was started with exec(), which starts a nested event-loop (with QEventLoop::...
Definition kjob.cpp:415
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 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:403
ExcludeUserInputEvents
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void deleteLater()
void timeout()
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.