TTKMusicPlayer
3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
The class of the produce the download manager. More...
#include <musicdownloadmanager.h>
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< MusicDownLoadPairData > | m_pairList |
The class of the produce the download manager.
Definition at line 70 of file musicdownloadmanager.h.
void MusicDownLoadManager::connectDownload | ( | const MusicDownLoadPairData & | pair | ) |
Set data network connection object.
Definition at line 26 of file musicdownloadmanager.cpp.
References TTK::CloudDownload, TTK::CloudUpload, downloadProgressChanged(), G_CONNECTION_PTR, MusicDownLoadPairData::m_object, m_pairList, MusicDownLoadPairData::m_type, and TTK::NormalDownload.
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.
|
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.
|
private |
Definition at line 105 of file musicdownloadmanager.h.
Referenced by connectDownload(), reconnectDownload(), and removeDownload().
|
private |
Definition at line 104 of file musicdownloadmanager.h.
Referenced by connectNetworkMultiValue(), and removeNetworkMultiValue().