TTKMusicPlayer
4.1.3.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 | 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< MusicDownLoadPairData > | m_datas |
The class of the produce the download manager.
Definition at line 70 of file musicdownloadmanager.h.
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 | ) |
Set data network connection object.
Definition at line 26 of file musicdownloadmanager.cpp.
References TTK::CloudDownload, TTK::CloudUpload, downloadProgressChanged(), G_CONNECTION_PTR, m_datas, MusicDownLoadPairData::m_object, MusicDownLoadPairData::m_type, and TTK::NormalDownload.
|
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().
|
private |
Definition at line 105 of file musicdownloadmanager.h.
Referenced by connectNetworkData(), reconnectNetworkData(), and removeNetworkData().
|
private |
Definition at line 104 of file musicdownloadmanager.h.
Referenced by connectMultiNetwork(), and removeMultiNetwork().