kget
MirrorSearchTransferDataSource Class Reference
#include <mirrorsearchtransferdatasource.h>
Inheritance diagram for MirrorSearchTransferDataSource:
Public Member Functions | |
MirrorSearchTransferDataSource (const KUrl &srcUrl, QObject *parent) | |
void | addSegments (const QPair< KIO::fileoffset_t, KIO::fileoffset_t > &segmentSize, const QPair< int, int > &segmentRange) |
void | start () |
void | stop () |
Public Member Functions inherited from TransferDataSource | |
TransferDataSource (const KUrl &srcUrl, QObject *parent) | |
virtual | ~TransferDataSource () |
virtual QList< QPair< int, int > > | assignedSegments () const |
Transfer::Capabilities | capabilities () const |
virtual int | changeNeeded () const |
virtual int | countUnfinishedSegments () const |
virtual int | currentSegments () const |
ulong | currentSpeed () const |
virtual void | findFileSize (KIO::fileoffset_t segmentSize) |
virtual int | paralellSegments () const |
virtual QPair< int, int > | removeConnection () |
virtual void | setParalellSegments (int paralellSegments) |
virtual void | setSupposedSize (KIO::filesize_t supposedSize) |
KUrl | sourceUrl () const |
virtual QPair< int, int > | split () |
Additional Inherited Members | |
Public Types inherited from TransferDataSource | |
enum | Error { Unknown, WrongDownloadSize, NotResumeable } |
Signals inherited from TransferDataSource | |
void | broken (TransferDataSource *source, TransferDataSource::Error error) |
void | brokenSegments (TransferDataSource *source, QPair< int, int > segmentRange) |
void | capabilitiesChanged () |
void | data (KIO::fileoffset_t offset, const QByteArray &data, bool &worked) |
void | data (const QList< KUrl > &data) |
void | data (const QString type, const QString checksum) |
void | finished () |
void | finishedDownload (TransferDataSource *source, KIO::filesize_t fileSize) |
void | finishedSegment (TransferDataSource *source, int segmentNumber, bool connectionFinished=true) |
void | foundFileSize (TransferDataSource *source, KIO::filesize_t fileSize, const QPair< int, int > &segmentRange) |
void | freeSegments (TransferDataSource *source, QPair< int, int > segmentRange) |
void | log (const QString &message, Transfer::LogLevel logLevel) |
void | speed (ulong speed) |
void | urlChanged (const KUrl &old, const KUrl &newUrl) |
Protected Member Functions inherited from TransferDataSource | |
void | setCapabilities (Transfer::Capabilities capabilities) |
Protected Attributes inherited from TransferDataSource | |
int | m_currentSegments |
int | m_paralellSegments |
KUrl | m_sourceUrl |
ulong | m_speed |
KIO::filesize_t | m_supposedSize |
Detailed Description
Definition at line 18 of file mirrorsearchtransferdatasource.h.
Constructor & Destructor Documentation
MirrorSearchTransferDataSource::MirrorSearchTransferDataSource | ( | const KUrl & | srcUrl, |
QObject * | parent | ||
) |
Definition at line 15 of file mirrorsearchtransferdatasource.cpp.
Member Function Documentation
|
virtual |
Adds multiple continuous segments that should be downloaded by this TransferDataSource.
- Parameters
-
segmentSize first is always the general segmentSize, second the segmentSize of the last segment in the range. If just one (the last) segment was assigned, then first would not equal second, this is to ensure that first can be used to calculate the offset TransferDataSources have to handle all that internally. segmentRange first the beginning, second the end
Implements TransferDataSource.
Definition at line 34 of file mirrorsearchtransferdatasource.cpp.
|
virtual |
Implements TransferDataSource.
Definition at line 22 of file mirrorsearchtransferdatasource.cpp.
|
virtual |
Implements TransferDataSource.
Definition at line 29 of file mirrorsearchtransferdatasource.cpp.
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
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.