kget
#include <abstractmetalink.h>
|
| AbstractMetalink (TransferGroup *parent, TransferFactory *factory, Scheduler *scheduler, const KUrl &src, const KUrl &dest, const QDomElement *e=0) |
|
virtual | ~AbstractMetalink () |
|
QHash< KUrl, QPair< bool, int > > | availableMirrors (const KUrl &file) const |
|
FileModel * | fileModel () |
|
virtual QList< KUrl > | files () const |
|
int | remainingTime () const |
|
bool | repair (const KUrl &file=KUrl()) |
|
void | setAvailableMirrors (const KUrl &file, const QHash< KUrl, QPair< bool, int > > &mirrors) |
|
virtual bool | setDirectory (const KUrl &newDirectory) |
|
virtual Signature * | signature (const KUrl &file) |
|
virtual Verifier * | verifier (const KUrl &file) |
|
| Transfer (TransferGroup *parent, TransferFactory *factory, Scheduler *scheduler, const KUrl &src, const KUrl &dest, const QDomElement *e=0) |
|
virtual | ~Transfer () |
|
int | averageDownloadSpeed () const |
|
Capabilities | capabilities () const |
|
void | checkShareRatio () |
|
void | create () |
|
virtual void | deinit (DeleteOptions options) |
|
const KUrl & | dest () const |
|
void | destroy (DeleteOptions options) |
|
virtual KUrl | directory () const |
|
KIO::filesize_t | downloadedSize () const |
|
int | downloadLimit (SpeedLimit limit) const |
|
int | downloadSpeed () const |
|
virtual int | elapsedTime () const |
|
TransferFactory * | factory () const |
|
TransferGroup * | group () const |
|
TransferHandler * | handler () |
|
virtual void | init () |
|
bool | isSelected () const |
|
virtual bool | isStalled () const |
|
virtual bool | isWorking () const |
|
virtual void | load (const QDomElement *element) |
|
const QStringList | log () const |
|
double | maximumShareRatio () |
|
TransferTreeModel * | model () |
|
bool | operator< (const Transfer &t2) const |
|
int | percent () const |
|
virtual void | save (const QDomElement &element) |
|
void | setDownloadLimit (int dlLimit, SpeedLimit limit) |
|
void | setMaximumShareRatio (double ratio) |
|
void | setUploadLimit (int ulLimit, SpeedLimit limit) |
|
const KUrl & | source () const |
|
QPixmap | statusPixmap () const |
|
QString | statusText () const |
|
KIO::filesize_t | totalSize () const |
|
KIO::filesize_t | uploadedSize () const |
|
int | uploadLimit (SpeedLimit limit) const |
|
int | uploadSpeed () const |
|
| Job (Scheduler *scheduler, JobQueue *parent) |
|
virtual | ~Job () |
|
Error | error () const |
|
JobQueue * | jobQueue () |
|
Policy | policy () const |
|
virtual void | resolveError (int errorId) |
|
void | setError (const QString &text, const QPixmap &pixmap, ErrorType type=AutomaticRetry, int errorId=-1) |
|
void | setPolicy (Policy jobPolicy) |
|
void | setStatus (Status jobStatus) |
|
virtual void | start ()=0 |
|
Status | startStatus () const |
|
Status | status () const |
|
virtual void | stop ()=0 |
|
|
enum | Capability {
Cap_SpeedLimit = 0x00000001,
Cap_MultipleMirrors = 0x00000002,
Cap_Resuming = 0x00000004,
Cap_Renaming = 0x00000008,
Cap_Moving = 0x00000010,
Cap_FindFilesize = 0x00000020
} |
|
typedef int | ChangesFlags |
|
enum | DeleteOption { DeleteTemporaryFiles = 0x00000001,
DeleteFiles = 0x00000002
} |
|
enum | LogLevel { Log_Info,
Log_Warning,
Log_Error
} |
|
enum | SpeedLimit { VisibleSpeedLimit = 0x01,
InvisibleSpeedLimit = 0x02
} |
|
enum | TransferChange {
Tc_None = 0x00000000,
Tc_Source = 0x00000001,
Tc_FileName = 0x00000002,
Tc_Status = 0x00000004,
Tc_TotalSize = 0x00000008,
Tc_Percent = 0x00000010,
Tc_DownloadSpeed = 0x00000020,
Tc_RemainingTime = 0x00000040,
Tc_UploadSpeed = 0x00000100,
Tc_UploadLimit = 0x00000200,
Tc_DownloadLimit = 0x00000400,
Tc_CanResume = 0x00000800,
Tc_DownloadedSize = 0x00001000,
Tc_UploadedSize = 0x00002000,
Tc_Log = 0x00004000,
Tc_Group = 0x00008000,
Tc_Selection = 0x00010000
} |
|
enum | ErrorType { AutomaticRetry,
ManualSolve,
NotSolveable
} |
|
enum | Policy { Start,
Stop,
None
} |
|
enum | Status {
Running = 0,
Stopped = 2,
Aborted = 3,
Finished = 4,
FinishedKeepAlive = 5,
Moving = 6
} |
|
void | capabilitiesChanged () |
|
static QPixmap | statusPixmap (Job::Status status) |
|
static QString | statusText (Job::Status status) |
|
Definition at line 22 of file abstractmetalink.h.
AbstractMetalink::~AbstractMetalink |
( |
| ) |
|
|
virtual |
QHash< KUrl, QPair< bool, int > > AbstractMetalink::availableMirrors |
( |
const KUrl & |
file | ) |
const |
|
virtual |
The mirrors that are available bool if it is used, int how many paralell connections are allowed to the mirror.
- Parameters
-
file | the file for which the availableMirrors should be get |
Reimplemented from Transfer.
Definition at line 383 of file abstractmetalink.cpp.
virtual void AbstractMetalink::deinit |
( |
Transfer::DeleteOptions |
options | ) |
|
|
pure virtualslot |
void AbstractMetalink::fileDlgFinished |
( |
int |
result | ) |
|
|
protectedslot |
- Returns
- true if initialising worked
- Note
- false does not mean that an error happened, it could mean, that the user decided to update the metalink
Definition at line 433 of file abstractmetalink.cpp.
QList< KUrl > AbstractMetalink::files |
( |
| ) |
const |
|
virtual |
void AbstractMetalink::filesSelected |
( |
| ) |
|
|
protectedslot |
Checks if the ticked (not started yet) files exist already on the hd and asks the user how to proceed in that case.
Also calls the according DataSourceFactories setDoDownload(bool) methods.
Definition at line 453 of file abstractmetalink.cpp.
void AbstractMetalink::recalculateProcessedSize |
( |
| ) |
|
|
protected |
void AbstractMetalink::recalculateSpeed |
( |
| ) |
|
|
protected |
int AbstractMetalink::remainingTime |
( |
| ) |
const |
|
virtual |
bool AbstractMetalink::repair |
( |
const KUrl & |
file = KUrl() | ) |
|
|
virtual |
Tries to repair file.
- Parameters
-
file | the file of a download that should be repaired, if not defined all files of a download are going to be repaird |
- Returns
- true if a repair started, false if it was not nescessary
Reimplemented from Transfer.
Definition at line 260 of file abstractmetalink.cpp.
void AbstractMetalink::setAvailableMirrors |
( |
const KUrl & |
file, |
|
|
const QHash< KUrl, QPair< bool, int > > & |
mirrors |
|
) |
| |
|
virtual |
Set the mirrors, int the number of paralell connections to the mirror bool if the mirror should be used.
- Parameters
-
file | the file for which the availableMirrors should be set |
Reimplemented from Transfer.
Definition at line 395 of file abstractmetalink.cpp.
bool AbstractMetalink::setDirectory |
( |
const KUrl & |
newDirectory | ) |
|
|
virtual |
Move the download to the new destination.
- Parameters
-
newDirectory | is a directory where the download should be stored |
- Returns
- true if newDestination can be used
Reimplemented from Transfer.
Definition at line 354 of file abstractmetalink.cpp.
Signature * AbstractMetalink::signature |
( |
const KUrl & |
file | ) |
|
|
virtual |
void AbstractMetalink::slotRename |
( |
const KUrl & |
oldUrl, |
|
|
const KUrl & |
newUrl |
|
) |
| |
|
protectedslot |
void AbstractMetalink::slotSignatureVerified |
( |
| ) |
|
|
protectedvirtualslot |
void AbstractMetalink::slotUpdateCapabilities |
( |
| ) |
|
|
protectedslot |
void AbstractMetalink::slotVerified |
( |
bool |
isVerified | ) |
|
|
protectedslot |
virtual void AbstractMetalink::start |
( |
| ) |
|
|
pure virtualslot |
virtual void AbstractMetalink::startMetalink |
( |
| ) |
|
|
protectedpure virtual |
Starts the type of metalink download.
Implemented in MetalinkXml.
void AbstractMetalink::stop |
( |
| ) |
|
|
virtualslot |
void AbstractMetalink::untickAllFiles |
( |
| ) |
|
|
protected |
void AbstractMetalink::updateStatus |
( |
DataSourceFactory * |
sender, |
|
|
bool * |
changeStatus |
|
) |
| |
|
protected |
Verifier * AbstractMetalink::verifier |
( |
const KUrl & |
file | ) |
|
|
virtual |
- Parameters
-
file | for which to get the verifier |
- Returns
- Verifier that allows you to add checksums manually verify a file etc.
Reimplemented from Transfer.
Definition at line 290 of file abstractmetalink.cpp.
int AbstractMetalink::m_averageSpeed |
|
mutableprotected |
int AbstractMetalink::m_currentFiles |
|
protected |
int AbstractMetalink::m_numFilesSelected |
|
protected |
bool AbstractMetalink::m_ready |
|
protected |
int AbstractMetalink::m_speedCount |
|
protected |
int AbstractMetalink::m_tempAverageSpeed |
|
protected |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:18 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.