kget
#include <segment.h>
|
| | Segment (const KUrl &src, const QPair< KIO::fileoffset_t, KIO::fileoffset_t > &segmentSize, const QPair< int, int > &segmentRange, QObject *parent) |
| |
| | ~Segment () |
| |
| QPair< int, int > | assignedSegments () const |
| |
| KIO::filesize_t | BytesWritten () |
| |
| int | countUnfinishedSegments () const |
| |
| bool | createTransfer () |
| |
| bool | findingFileSize () const |
| |
| KIO::TransferJob * | job () |
| |
| bool | merge (const QPair< KIO::fileoffset_t, KIO::fileoffset_t > &segmentSize, const QPair< int, int > &segmentRange) |
| |
| KIO::fileoffset_t | offset () const |
| |
QPair< KIO::fileoffset_t,
KIO::fileoffset_t > | segmentSize () const |
| |
| KIO::filesize_t | size () const |
| |
| QPair< int, int > | split () |
| |
| Status | status () const |
| |
| bool | stopTransfer () |
| |
class Segment
Definition at line 26 of file segment.h.
The status property describes the current segment status.
- Parameters
-
| Running | The transfer is being executed |
| Stopped | The transfer is stopped |
| Killed | The transfer have been killed due unhandled errors |
| Timeout | The transfer is broken because an error ocoured |
| Finished | The transfer exited successfully |
| Enumerator |
|---|
| Running |
|
| Stopped |
|
| Killed |
|
| Timeout |
|
| Finished |
|
Definition at line 40 of file segment.h.
| Segment::Segment |
( |
const KUrl & |
src, |
|
|
const QPair< KIO::fileoffset_t, KIO::fileoffset_t > & |
segmentSize, |
|
|
const QPair< int, int > & |
segmentRange, |
|
|
QObject * |
parent |
|
) |
| |
| QPair< int, int > Segment::assignedSegments |
( |
| ) |
const |
| KIO::filesize_t Segment::BytesWritten |
( |
| ) |
|
|
inline |
Returns the written bytes.
- Returns
- the value of m_bytesWritten
Definition at line 78 of file segment.h.
| void Segment::canResume |
( |
| ) |
|
|
signal |
| void Segment::connectionProblem |
( |
| ) |
|
|
signal |
| int Segment::countUnfinishedSegments |
( |
| ) |
const |
| bool Segment::createTransfer |
( |
| ) |
|
Create the segment transfer.
Definition at line 67 of file segment.cpp.
| void Segment::data |
( |
KIO::fileoffset_t |
offset, |
|
|
const QByteArray & |
data, |
|
|
bool & |
worked |
|
) |
| |
|
signal |
Emitted whenever the transfer is closed with an error.
| bool Segment::findingFileSize |
( |
| ) |
const |
| void Segment::finishedDownload |
( |
KIO::filesize_t |
size | ) |
|
|
signal |
| void Segment::finishedSegment |
( |
Segment * |
segment, |
|
|
int |
segmentNum, |
|
|
bool |
connectionFinished = true |
|
) |
| |
|
signal |
| KIO::TransferJob* Segment::job |
( |
| ) |
|
|
inline |
Get the job.
- Returns
- the value of m_getJob
Definition at line 84 of file segment.h.
| bool Segment::merge |
( |
const QPair< KIO::fileoffset_t, KIO::fileoffset_t > & |
segmentSize, |
|
|
const QPair< int, int > & |
segmentRange |
|
) |
| |
| KIO::fileoffset_t Segment::offset |
( |
| ) |
const |
|
inline |
Get the value of m_offset set.
Definition at line 66 of file segment.h.
| QPair< KIO::fileoffset_t, KIO::fileoffset_t > Segment::segmentSize |
( |
| ) |
const |
| KIO::filesize_t Segment::size |
( |
| ) |
const |
|
inline |
Returns the size the current segment has.
- Returns
- the size of the segment
Definition at line 72 of file segment.h.
| void Segment::slotResult |
( |
KJob * |
job | ) |
|
|
slot |
Called whenever a subjob finishes.
- Parameters
-
| job | the job that emitted this signal |
Definition at line 167 of file segment.cpp.
| void Segment::speed |
( |
ulong |
speed | ) |
|
|
signal |
| QPair< int, int > Segment::split |
( |
| ) |
|
| bool Segment::startTransfer |
( |
| ) |
|
|
slot |
start the segment transfer
Definition at line 139 of file segment.cpp.
| Status Segment::status |
( |
| ) |
const |
|
inline |
Get the segment status.
- Returns
- the value of m_status
Definition at line 90 of file segment.h.
| void Segment::statusChanged |
( |
Segment * |
| ) |
|
|
signal |
| bool Segment::stopTransfer |
( |
| ) |
|
| void Segment::totalSize |
( |
KIO::filesize_t |
size, |
|
|
QPair< int, int > |
segmentRange |
|
) |
| |
|
signal |
| void Segment::urlChanged |
( |
const KUrl & |
newUrl | ) |
|
|
signal |
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.