knode
knjobdata.h
Go to the documentation of this file.
168 void setProgress( unsigned int progress ) { if ( mProgressItem ) mProgressItem->setProgress( progress ); }
172 void setComplete() { if ( mProgressItem ) { mProgressItem->setComplete(); mProgressItem = 0; } }
void setComplete()
Tells the progress item to indicate that the job has finished if available.
Definition: knjobdata.h:172
void setStatus(const QString &msg)
Set the status message of the progress item if available.
Definition: knjobdata.h:164
Definition: knjobdata.h:109
bool jobsPending() const
Returns true if we are waiting for at least one job to be completed.
Definition: knjobdata.h:58
void emitJob(KNJobData *j)
Send the job to the scheduler and append it to the job queue.
Definition: knjobdata.cpp:42
Definition: knjobdata.h:112
Definition: knjobdata.h:113
KPIM::ProgressItem * mProgressItem
The progress item representing this job to the user.
Definition: knjobdata.h:214
KNJobData(jobType t, KNJobConsumer *c, KNServerInfo::Ptr a, KNJobItem::Ptr i)
Definition: knjobdata.cpp:75
Definition: knjobdata.h:110
void setComplete()
virtual void execute()=0
Performs the actual operation of a job, needs to be reimplemented for every job.
Definition: knjobdata.h:115
bool isEmpty() const
bool isEmpty() const
KPIM::ProgressItem * progressItem() const
Returns the progress item for this job.
Definition: knjobdata.h:157
bool canceled() const
Returns true if the job has been canceled by the user.
Definition: knjobdata.h:132
Definition: knjobdata.h:111
void setProgress(unsigned int v)
Base class for classes that want to create and schedule jobs.
Definition: knjobdata.h:39
void cancelJobs(boost::shared_ptr< KNJobItem > item)
Find any job related to a job item and cancel it.
Definition: knjobdata.cpp:57
KUrl baseUrl() const
Returns a correctly set up KUrl according to the encryption and authentication settings for KIO slave...
Definition: knjobdata.cpp:185
void setProgress(unsigned int progress)
Set the progress value of the progress item if available.
Definition: knjobdata.h:168
void emitFinished()
Emits the finished() signal via a single-shot timer.
Definition: knjobdata.cpp:119
boost::shared_ptr< KNServerInfo > Ptr
Shared pointer to a KNServerInfo.
Definition: knserverinfo.h:39
Definition: knjobdata.h:114
void setError(int err, const QString &errMsg)
Set job error information.
Definition: knjobdata.cpp:201
void setupKIOJob(KIO::Job *job)
Sets TLS metadata and connects the given KIO job to the progress item.
Definition: knjobdata.cpp:135
void setStatus(const QString &v)
void jobDone(KNJobData *j)
Remove the job from the joblist and process it by calling processJob.
Definition: knjobdata.cpp:51
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.