kget
#include <mmsdownload.h>
Definition at line 34 of file mmsdownload.h.
MmsDownload::MmsDownload |
( |
const QString & |
url, |
|
|
const QString & |
name, |
|
|
const QString & |
temp, |
|
|
int |
amountsThread |
|
) |
| |
MmsDownload::~MmsDownload |
( |
| ) |
|
void MmsDownload::run |
( |
| ) |
|
void MmsDownload::signBrokenUrl |
( |
| ) |
|
|
signal |
qulonglong MmsDownload::signDownloaded |
( |
qulonglong |
reading | ) |
|
|
signal |
void MmsDownload::signNotAllowMultiDownload |
( |
| ) |
|
|
signal |
void MmsDownload::signRestartDownload |
( |
int |
connections | ) |
|
|
signal |
unsigned long MmsDownload::signSpeed |
( |
unsigned long |
bytes_per_second | ) |
|
|
signal |
void MmsDownload::signThreadFinish |
( |
| ) |
|
|
signal |
qulonglong MmsDownload::signTotalSize |
( |
qulonglong |
size | ) |
|
|
signal |
void MmsDownload::slotIsThreadConnected |
( |
bool |
connected | ) |
|
|
slot |
All thread emit a signal connected with this slot, if they get connected succefully the value of "connected" will be true, and will be false if they can't connected. When all the thread emited the signal the amount of m_connectionsSuccefully and m_connectionsFails will be equal to m_amountThreads and we emit a signal to restart the download in mmstransfer using the amount of connections succefully connected.
Definition at line 185 of file mmsdownload.cpp.
void MmsDownload::slotRead |
( |
int |
reading, |
|
|
int |
thread_end, |
|
|
int |
thead_ini |
|
) |
| |
|
slot |
We update the status of the thread in the map and emit a signal for update the download speed.
Definition at line 171 of file mmsdownload.cpp.
void MmsDownload::slotSpeedChanged |
( |
| ) |
|
|
slot |
Using the same speed calculating datasourcefactory uses (use all downloaded data of the last 10 secs)
Definition at line 119 of file mmsdownload.cpp.
void MmsDownload::slotThreadFinish |
( |
| ) |
|
|
slot |
void MmsDownload::stopTransfer |
( |
| ) |
|
Here only is called thread->stop() because when the thread finish it emit a signal and slotThreadFinish(); is called where the thread is delete calling deleteLater(); and m_threadList is cleaning using removeAll().
Definition at line 141 of file mmsdownload.cpp.
int MmsDownload::threadsAlive |
( |
| ) |
|
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.