kget
multisegkiodatasource.h
Go to the documentation of this file.
31 void addSegments(const QPair<KIO::fileoffset_t, KIO::fileoffset_t> &segmentSize, const QPair<int, int> &segmentRange);
64 bool tryMerge(const QPair<KIO::fileoffset_t, KIO::fileoffset_t> &segmentSize, const QPair<int,int> &segmentRange);
QPair< int, int > split()
If a connection of this TransferDataSource is assigned multiple (continuous) segments, then this method will split them (the unfinished ones) in half, it returns the beginning and the end of the now unassigned segments; (-1, -1) if there are none.
Definition: multisegkiodatasource.cpp:191
int countUnfinishedSegments() const
Returns the number of unfinished Segments of the connection with the most unfinished segments Each Tr...
Definition: multisegkiodatasource.cpp:183
~MultiSegKioDataSource()
Definition: multisegkiodatasource.cpp:28
This Class is an interface for inter-plugins data change.
Definition: transferdatasource.h:26
int currentSegments() const
Definition: multisegkiodatasource.cpp:157
QPair< int, int > removeConnection()
Removes one connection, useful when setMaximumParalellDownloads was called with a lower number...
Definition: multisegkiodatasource.cpp:202
Definition: multisegkiodatasource.h:19
MultiSegKioDataSource(const KUrl &srcUrl, QObject *parent)
Definition: multisegkiodatasource.cpp:18
void setSupposedSize(KIO::filesize_t supposedSize)
Set the size the server used for downloading should report.
Definition: multisegkiodatasource.cpp:120
QList< QPair< int, int > > assignedSegments() const
Returns the assignedSegments to this TransferDataSource Each connection is represented by a QPair...
Definition: multisegkiodatasource.cpp:61
QObject * parent() const
void addSegments(const QPair< KIO::fileoffset_t, KIO::fileoffset_t > &segmentSize, const QPair< int, int > &segmentRange)
Adds multiple continuous segments that should be downloaded by this TransferDataSource.
Definition: multisegkiodatasource.cpp:72
void findFileSize(KIO::fileoffset_t segmentSize)
Tries to find the filesize if this capability is supported, if successfull it emits foundFileSize(Tra...
Definition: multisegkiodatasource.cpp:98
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.