• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kget

Public Slots | Signals | Public Member Functions | List of all members
MmsDownload Class Reference

#include <mmsdownload.h>

Inheritance diagram for MmsDownload:
Inheritance graph
[legend]

Public Slots

void slotIsThreadConnected (bool connected)
 
void slotRead (int reading, int thread_end, int thead_ini)
 
void slotSpeedChanged ()
 
void slotThreadFinish ()
 

Signals

void signBrokenUrl ()
 
qulonglong signDownloaded (qulonglong reading)
 
void signNotAllowMultiDownload ()
 
void signRestartDownload (int connections)
 
unsigned long signSpeed (unsigned long bytes_per_second)
 
void signThreadFinish ()
 
qulonglong signTotalSize (qulonglong size)
 

Public Member Functions

 MmsDownload (const QString &url, const QString &name, const QString &temp, int amountsThread)
 
 ~MmsDownload ()
 
void run ()
 
void stopTransfer ()
 
int threadsAlive ()
 

Detailed Description

Definition at line 34 of file mmsdownload.h.

Constructor & Destructor Documentation

MmsDownload::MmsDownload ( const QString &  url,
const QString &  name,
const QString &  temp,
int  amountsThread 
)

Definition at line 24 of file mmsdownload.cpp.

MmsDownload::~MmsDownload ( )

Definition at line 41 of file mmsdownload.cpp.

Member Function Documentation

void MmsDownload::run ( )

Definition at line 50 of file mmsdownload.cpp.

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

Definition at line 159 of file mmsdownload.cpp.

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 ( )

Definition at line 153 of file mmsdownload.cpp.


The documentation for this class was generated from the following files:
  • mmsdownload.h
  • mmsdownload.cpp
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.

kget

Skip menu "kget"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal