TTKMusicPlayer  3.7.0.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 connectNetworkMultiValue (QObject *object)
 
void removeNetworkMultiValue (QObject *object)
 
void connectDownload (const MusicDownLoadPairData &pair)
 
void reconnectDownload (const MusicDownLoadPairData &pair)
 
void removeDownload (const MusicDownLoadPairData &pair)
 

Private Slots

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

Private Attributes

QObjectList m_queueList
 
QList< MusicDownLoadPairDatam_pairList
 

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::connectDownload ( const MusicDownLoadPairData pair)
void MusicDownLoadManager::connectNetworkMultiValue ( QObject *  object)

Set mutiple network connection object.

Definition at line 7 of file musicdownloadmanager.cpp.

References G_CONNECTION_PTR, and m_queueList.

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

Referenced by connectDownload(), and reconnectDownload().

void MusicDownLoadManager::reconnectDownload ( const MusicDownLoadPairData pair)

Reset data network connection object.

Definition at line 48 of file musicdownloadmanager.cpp.

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

void MusicDownLoadManager::removeDownload ( const MusicDownLoadPairData pair)

Remove data network connection object.

Definition at line 62 of file musicdownloadmanager.cpp.

References m_pairList.

Referenced by downloadProgressChanged().

void MusicDownLoadManager::removeNetworkMultiValue ( QObject *  object)

Remove mutiple network connection object.

Definition at line 17 of file musicdownloadmanager.cpp.

References m_queueList.

Member Data Documentation

QList<MusicDownLoadPairData> MusicDownLoadManager::m_pairList
private

Definition at line 105 of file musicdownloadmanager.h.

Referenced by connectDownload(), reconnectDownload(), and removeDownload().

QObjectList MusicDownLoadManager::m_queueList
private

Definition at line 104 of file musicdownloadmanager.h.

Referenced by connectNetworkMultiValue(), and removeNetworkMultiValue().


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