kget
#include <transfermultisegkio.h>

Public Slots | |
void | load (const QDomElement *e) |
void | save (const QDomElement &element) |
bool | setNewDestination (const KUrl &newDestination) |
void | slotChecksumFound (QString type, QString checksum) |
void | start () |
void | stop () |
![]() | |
void | setLog (const QString &message, Transfer::LogLevel level=Log_Info) |
Public Member Functions | |
TransferMultiSegKio (TransferGroup *parent, TransferFactory *factory, Scheduler *scheduler, const KUrl &src, const KUrl &dest, const QDomElement *e=0) | |
QHash< KUrl, QPair< bool, int > > | availableMirrors (const KUrl &file) const |
virtual void | deinit (Transfer::DeleteOptions options) |
FileModel * | fileModel () |
virtual void | init () |
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=KUrl()) |
virtual Verifier * | verifier (const KUrl &file=KUrl()) |
![]() | |
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 |
virtual QList< KUrl > | files () const |
TransferGroup * | group () const |
TransferHandler * | handler () |
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 int | remainingTime () 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 |
Additional Inherited Members | |
![]() | |
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) |
![]() | |
void | setCapabilities (Capabilities capabilities) |
virtual void | setSpeedLimits (int uploadLimit, int downloadLimit) |
void | setStatus (Job::Status jobStatus, const QString &text=QString(), const QPixmap &pix=QPixmap()) |
virtual void | setTransferChange (ChangesFlags change, bool postEvent=false) |
![]() | |
void | postJobEvent (Status) |
void | read (QDomNode *n) |
Scheduler * | scheduler () const |
void | setStartStatus (Status jobStatus) |
void | write (QDomNode *n) |
![]() | |
KUrl | m_dest |
KIO::filesize_t | m_downloadedSize |
int | m_downloadLimit |
int | m_downloadSpeed |
bool | m_isSelected |
QStringList | m_log |
int | m_percent |
KUrl | m_source |
KIO::filesize_t | m_totalSize |
KIO::filesize_t | m_uploadedSize |
int | m_uploadLimit |
int | m_uploadSpeed |
![]() | |
JobQueue * | m_jobQueue |
Scheduler * | m_scheduler |
Detailed Description
Definition at line 28 of file transfermultisegkio.h.
Constructor & Destructor Documentation
TransferMultiSegKio::TransferMultiSegKio | ( | TransferGroup * | parent, |
TransferFactory * | factory, | ||
Scheduler * | scheduler, | ||
const KUrl & | src, | ||
const KUrl & | dest, | ||
const QDomElement * | e = 0 |
||
) |
Definition at line 32 of file transfermultisegkio.cpp.
Member Function Documentation
|
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 272 of file transfermultisegkio.cpp.
|
virtual |
Definition at line 61 of file transfermultisegkio.cpp.
|
virtual |
- Returns
- a pointer to the FileModel containing all files of this download
Reimplemented from Transfer.
Definition at line 312 of file transfermultisegkio.cpp.
|
virtual |
This function is called after the creation of a Transfer In transfer plugins you can put here whatever needs to be initialized.
- Note
- this function creates a NepomukHandler
Reimplemented from Transfer.
Definition at line 44 of file transfermultisegkio.cpp.
|
slot |
Definition at line 150 of file transfermultisegkio.cpp.
|
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 107 of file transfermultisegkio.cpp.
|
slot |
Definition at line 158 of file transfermultisegkio.cpp.
|
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 280 of file transfermultisegkio.cpp.
|
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 121 of file transfermultisegkio.cpp.
|
slot |
Definition at line 128 of file transfermultisegkio.cpp.
|
virtual |
- Parameters
-
file for which to get the signature
- Returns
- Signature that allows you to add signatures and verify them
Reimplemented from Transfer.
Definition at line 305 of file transfermultisegkio.cpp.
|
slot |
Definition at line 267 of file transfermultisegkio.cpp.
|
slot |
Definition at line 69 of file transfermultisegkio.cpp.
|
slot |
Definition at line 93 of file transfermultisegkio.cpp.
|
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 298 of file transfermultisegkio.cpp.
The documentation for this class was generated from the following files:
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.