kget
transferdatasource.cpp
Go to the documentation of this file.
virtual int currentSegments() const
Definition: transferdatasource.cpp:78
TransferDataSource(const KUrl &srcUrl, QObject *parent)
Definition: transferdatasource.cpp:15
void capabilitiesChanged()
Emitted when the capabilities of the TransferDataSource change.
virtual void findFileSize(KIO::fileoffset_t segmentSize)
Tries to find the filesize if this capability is supported, if successfull it emits foundFileSize(Tra...
Definition: transferdatasource.cpp:43
virtual QList< QPair< int, int > > assignedSegments() const
Returns the assignedSegments to this TransferDataSource Each connection is represented by a QPair...
Definition: transferdatasource.cpp:53
virtual ~TransferDataSource()
Definition: transferdatasource.cpp:27
void setCapabilities(Transfer::Capabilities capabilities)
Sets the capabilities and automatically emits capabilitiesChanged.
Definition: transferdatasource.cpp:37
virtual int changeNeeded() const
Returns the missmatch of paralellSegments() and currentSegments()
Definition: transferdatasource.cpp:83
virtual int countUnfinishedSegments() const
Returns the number of unfinished Segments of the connection with the most unfinished segments Each Tr...
Definition: transferdatasource.cpp:58
virtual 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: transferdatasource.cpp:63
virtual void setParalellSegments(int paralellSegments)
Sets the number of paralell segments this DataSource is allowed to use.
Definition: transferdatasource.cpp:73
Transfer::Capabilities capabilities() const
Returns the capabilities this TransferDataSource supports.
Definition: transferdatasource.cpp:32
virtual QPair< int, int > removeConnection()
Removes one connection, useful when setMaximumParalellDownloads was called with a lower number...
Definition: transferdatasource.cpp:48
virtual int paralellSegments() const
Definition: transferdatasource.cpp:68
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.