kget
transfer.cpp
Go to the documentation of this file.
45 const QStringList STATUSICONS = QStringList() << "media-playback-start" << "view-history" << "process-stop" << "dialog-error" << "dialog-ok" << "media-playback-start" << "media-playback-pause";
196 setDownloadLimit(1, Transfer::InvisibleSpeedLimit);//If we set it to 0 we would have no limit xD
240 e.setAttribute("ElapsedTime", status() == Job::Running ? m_runningTime.elapsed() / 1000 : m_runningSeconds);
241 e.setAttribute("Policy", policy() == Job::Start ? "Start" : (policy() == Job::Stop ? "Stop" : "None"));
330 const bool loadedFinished = ((startStatus() == Job::Finished) || (startStatus() == Job::FinishedKeepAlive));
331 const bool isFinished = ((jobStatus == Job::Finished) || (jobStatus == Job::FinishedKeepAlive));
void setUploadLimit(int ulLimit, SpeedLimit limit)
Set the Transfer's UploadLimit.
Definition: transfer.cpp:144
The job is stopped, but this also indicates that it stopped because an error occurred.
Definition: job.h:47
virtual void setSpeedLimits(int uploadLimit, int downloadLimit)
Function used to set the SpeedLimits to the transfer.
Definition: transfer.h:353
Definition: transfer.h:90
Capabilities capabilities() const
Returns the capabilities this Transfer supports.
Definition: transfer.h:111
The scheduler should start this job even if its queue isn't in a Running status.
Definition: job.h:60
virtual bool setDirectory(const KUrl &newDirectory)
Move the download to the new destination.
Definition: transfer.cpp:108
Definition: transfer.h:84
Definition: transfer.h:57
void destroy(DeleteOptions options)
This functions gets called whenever a Transfer is going to be deleted.
Definition: transfer.cpp:86
void setDownloadLimit(int dlLimit, SpeedLimit limit)
Set the Transfer's UploadLimit, which are displayed in the GUI.
Definition: transfer.cpp:156
Definition: transfertreemodel.h:108
Definition: transfer.h:53
virtual QHash< KUrl, QPair< bool, int > > availableMirrors(const KUrl &file) const
The mirrors that are available bool if it is used, int how many paralell connections are allowed to t...
Definition: transfer.cpp:135
Definition: job.h:43
virtual void load(const QDomElement *element)
Loads the transfer's info from the QDomElement.
Definition: transfer.cpp:244
virtual void save(const QDomElement &element)
Saves this transfer to the given QDomNode.
Definition: transfer.cpp:230
virtual void deinit(DeleteOptions options)
This function is called before the deletion of a Transfer In transfer plugins you can put here whatev...
Definition: transfer.h:138
The scheduler shouldn't never start this job, even if if its queue is in a Running status...
Definition: job.h:62
Definition: transfer.h:91
void capabilitiesChanged()
Emitted when the capabilities of the Transfer change.
virtual void setTransferChange(ChangesFlags change, bool postEvent=false)
Makes the TransferHandler associated with this transfer know that a change in this transfer has occur...
Definition: transfer.cpp:338
virtual void init()
This function is called after the creation of a Transfer In transfer plugins you can put here whateve...
Definition: transfer.cpp:95
Transfer(TransferGroup *parent, TransferFactory *factory, Scheduler *scheduler, const KUrl &src, const KUrl &dest, const QDomElement *e=0)
Definition: transfer.cpp:47
void setStatus(Job::Status jobStatus, const QString &text=QString(), const QPixmap &pix=QPixmap())
Sets the Job status to jobStatus, the status text to text and the status pixmap to pix...
Definition: transfer.cpp:292
Definition: transfer.h:63
Definition: transfer.h:85
Definition: nepomukhandler.h:24
virtual TransferHandler * createTransferHandler(Transfer *transfer, Scheduler *scheduler)
Definition: transferfactory.cpp:39
void setCapabilities(Capabilities capabilities)
Sets the capabilities and automatically emits capabilitiesChanged.
Definition: transfer.cpp:68
void create()
This functions gets called whenever a Transfer gets created.
Definition: transfer.cpp:76
void setLog(const QString &message, Transfer::LogLevel level=Log_Info)
Set Transfer history.
Definition: transfer.cpp:201
Definition: job.h:58
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.