TTKMusicPlayer  4.1.3.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Public Member Functions | Private Slots | Private Attributes | List of all members
MusicDownLoadManager Class Reference

The class of the produce the download manager. More...

#include <musicdownloadmanager.h>

+ Inheritance diagram for MusicDownLoadManager:

Public Member Functions

void connectMultiNetwork (QObject *object)
 
void removeMultiNetwork (QObject *object)
 
void connectNetworkData (const MusicDownLoadPairData &pair)
 
void reconnectNetworkData (const MusicDownLoadPairData &pair)
 
void removeNetworkData (const MusicDownLoadPairData &pair)
 

Private Slots

void downloadProgressChanged (float percent, const QString &total, qint64 time)
 

Private Attributes

QObjectList m_objects
 
QList< MusicDownLoadPairDatam_datas
 

Detailed Description

The class of the produce the download manager.

Author
Greedysky greed.nosp@m.ysky.nosp@m.@163..nosp@m.com

Definition at line 70 of file musicdownloadmanager.h.

Member Function Documentation

void MusicDownLoadManager::connectMultiNetwork ( QObject *  object)

Set mutiple network connection object.

Definition at line 7 of file musicdownloadmanager.cpp.

References G_CONNECTION_PTR, and m_objects.

void MusicDownLoadManager::connectNetworkData ( const MusicDownLoadPairData pair)
void MusicDownLoadManager::downloadProgressChanged ( float  percent,
const QString &  total,
qint64  time 
)
privateslot

Update download percent total time and current time progress.

Definition at line 71 of file musicdownloadmanager.cpp.

References removeNetworkData().

Referenced by connectNetworkData(), and reconnectNetworkData().

void MusicDownLoadManager::reconnectNetworkData ( const MusicDownLoadPairData pair)

Reset data network connection object.

Definition at line 48 of file musicdownloadmanager.cpp.

References downloadProgressChanged(), m_datas, and MusicDownLoadPairData::m_object.

void MusicDownLoadManager::removeMultiNetwork ( QObject *  object)

Remove mutiple network connection object.

Definition at line 17 of file musicdownloadmanager.cpp.

References m_objects.

void MusicDownLoadManager::removeNetworkData ( const MusicDownLoadPairData pair)

Remove data network connection object.

Definition at line 62 of file musicdownloadmanager.cpp.

References m_datas.

Referenced by downloadProgressChanged().

Member Data Documentation

QList<MusicDownLoadPairData> MusicDownLoadManager::m_datas
private
QObjectList MusicDownLoadManager::m_objects
private

Definition at line 104 of file musicdownloadmanager.h.

Referenced by connectMultiNetwork(), and removeMultiNetwork().


The documentation for this class was generated from the following files: