kget
transferKio.cpp
Go to the documentation of this file.
40 setCapabilities(Transfer::Cap_Moving | Transfer::Cap_Renaming | Transfer::Cap_Resuming);//TODO check if it really can resume
69 KIO::Job *move = KIO::file_move(oldPath, KUrl(newDestination.path() + ".part"), -1, KIO::HideProgressInfo);
96 setStatus(Job::Running, i18nc("transfer state: connecting", "Connecting...."), SmallIcon("network-connect")); // should be "network-connecting", but that doesn't exist for KDE 4.0 yet
274 QString text = i18n("The download (%1) could not be verified. Do you want to repair it?", m_dest.fileName());
277 text = i18n("The download (%1) could not be verified. Do you want to redownload it?", m_dest.fileName());
Definition: transfer.h:52
The job is stopped, but this also indicates that it stopped because an error occurred.
Definition: job.h:47
void verify(const QModelIndex &index=QModelIndex())
Call this method if you want to verify() in its own thread, then signals with the result are emitted...
Definition: verifier.cpp:364
Definition: transfer.h:75
KIO::filesize_t partialChunkLength() const
Returns the length of the "best" partialChecksums.
Definition: verifier.cpp:532
Definition: transfer.h:74
static bool checksumAutomaticVerification()
Get ChecksumAutomaticVerification.
Definition: settings.h:1019
bool exists() const
Definition: transfer.h:53
Definition: transfer.h:49
Definition: job.h:43
TransferKio(TransferGroup *parent, TransferFactory *factory, Scheduler *scheduler, const KUrl &src, const KUrl &dest, const QDomElement *e=0)
Definition: transferKio.cpp:31
Definition: transfer.h:76
Definition: transferKio.h:27
virtual qint64 size() const
Definition: transfer.h:56
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 bool setDirectory(const KUrl &newDirectory)
Move the download to the new destination.
Definition: transferKio.cpp:43
uint toTime_t() const
The job exited from its Running state successfully but wants to be restarted by the scheduler...
Definition: job.h:50
static bool signatureAutomaticVerification()
Get SignatureAutomaticVerification.
Definition: settings.h:1057
QDateTime currentDateTime()
Definition: verifier.h:68
bool setNewDestination(const KUrl &newDestination)
Definition: transferKio.cpp:50
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:54
Definition: transfer.h:55
Definition: transfer.h:63
Definition: transfer.h:97
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setCapabilities(Capabilities capabilities)
Sets the capabilities and automatically emits capabilitiesChanged.
Definition: transfer.cpp:68
Definition: verifier.h:79
Definition: transfer.h:36
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:28:43 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:28:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.