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 download batch table item. More...
#include <musicdownloadbatchwidget.h>
Public Slots | |
void | currentQualityChanged (int index) |
void | downloadFinished () |
Public Member Functions | |
MusicDownloadBatchTableItem (QWidget *parent=nullptr) | |
~MusicDownloadBatchTableItem () | |
void | addCellItem (MusicAbstractQueryRequest *request, const TTK::MusicSongInformation &info) |
void | startToRequest () |
void | setCurrentQuality (int index) |
Private Member Functions | |
int | currentBitrate (int index) |
void | startToRequestMusic () |
void | startToRequestMovie () |
Private Attributes | |
QComboBox * | m_qulity |
TTK::MusicSongInformation | m_info |
QLabel * | m_songName |
QLabel * | m_singer |
QLabel * | m_information |
QLabel * | m_status |
MusicAbstractQueryRequest * | m_networkRequest |
MusicAbstractQueryRequest::QueryType | m_queryType |
The class of the download batch table item.
Definition at line 32 of file musicdownloadbatchwidget.h.
|
explicit |
Object constructor.
Definition at line 4 of file musicdownloadbatchwidget.cpp.
References TTK::UI::ComboBoxStyle02, currentQualityChanged(), TTK::Widget::generateComboBoxStyle(), TTK::UI::ItemView01, m_information, m_queryType, m_qulity, m_singer, m_songName, m_status, MusicAbstractQueryRequest::Music, and TTK_ITEM_SIZE_S.
MusicDownloadBatchTableItem::~MusicDownloadBatchTableItem | ( | ) |
Object destructor.
Definition at line 28 of file musicdownloadbatchwidget.cpp.
References m_information, m_qulity, m_singer, m_songName, and m_status.
void MusicDownloadBatchTableItem::addCellItem | ( | MusicAbstractQueryRequest * | request, |
const TTK::MusicSongInformation & | info | ||
) |
Create cell item by input data.
Definition at line 37 of file musicdownloadbatchwidget.cpp.
References TTK::Widget::elidedText(), TTK::MusicSongInformation::m_artistName, m_info, m_networkRequest, m_queryType, m_qulity, m_singer, m_songName, TTK::MusicSongInformation::m_songName, and MusicAbstractQueryRequest::queryType().
Referenced by MusicDownloadBatchTableWidget::addCellItem().
Definition at line 99 of file musicdownloadbatchwidget.cpp.
References m_queryType, MusicAbstractQueryRequest::Movie, MusicAbstractQueryRequest::Music, TTK_BN_1000, TTK_BN_128, TTK_BN_192, TTK_BN_250, TTK_BN_320, TTK_BN_500, and TTK_BN_750.
Referenced by currentQualityChanged(), startToRequestMovie(), and startToRequestMusic().
|
slot |
Table widget item cell click.
Definition at line 77 of file musicdownloadbatchwidget.cpp.
References currentBitrate(), FLAC_FILE_SUFFIX, TTK::MusicSongInformation::m_duration, m_info, m_information, m_queryType, m_status, MusicAbstractQueryRequest::Movie, MP3_FILE_SUFFIX, MP4_FILE_SUFFIX, MusicAbstractQueryRequest::Music, TTK::Number::sizeByteToLabel(), and TTK_BN_320.
Referenced by MusicDownloadBatchTableItem().
|
slot |
Download data from net finished.
Definition at line 94 of file musicdownloadbatchwidget.cpp.
References m_status.
void MusicDownloadBatchTableItem::setCurrentQuality | ( | int | index | ) |
Set current quality by index.
Definition at line 72 of file musicdownloadbatchwidget.cpp.
References m_qulity.
void MusicDownloadBatchTableItem::startToRequest | ( | ) |
Start to download data by type.
Definition at line 53 of file musicdownloadbatchwidget.cpp.
References G_NETWORK_PTR, m_queryType, m_qulity, m_status, MusicAbstractQueryRequest::Movie, MusicAbstractQueryRequest::Music, startToRequestMovie(), and startToRequestMusic().
|
private |
Start to download movie data.
Definition at line 138 of file musicdownloadbatchwidget.cpp.
References currentBitrate(), m_info, m_networkRequest, m_qulity, m_status, MusicAbstractQueryRequest::startToQueryResult(), and MusicDownloadWidget::startToRequestMovie().
Referenced by startToRequest().
|
private |
Start to download music data.
Definition at line 127 of file musicdownloadbatchwidget.cpp.
References currentBitrate(), m_info, m_networkRequest, m_qulity, m_status, MusicAbstractQueryRequest::startToQueryResult(), and MusicDownloadWidget::startToRequestMusic().
Referenced by startToRequest().
|
private |
Definition at line 82 of file musicdownloadbatchwidget.h.
Referenced by addCellItem(), currentQualityChanged(), startToRequestMovie(), and startToRequestMusic().
|
private |
Definition at line 84 of file musicdownloadbatchwidget.h.
Referenced by currentQualityChanged(), MusicDownloadBatchTableItem(), and ~MusicDownloadBatchTableItem().
|
private |
Definition at line 85 of file musicdownloadbatchwidget.h.
Referenced by addCellItem(), startToRequestMovie(), and startToRequestMusic().
|
private |
Definition at line 86 of file musicdownloadbatchwidget.h.
Referenced by addCellItem(), currentBitrate(), currentQualityChanged(), MusicDownloadBatchTableItem(), and startToRequest().
|
private |
Definition at line 81 of file musicdownloadbatchwidget.h.
Referenced by addCellItem(), MusicDownloadBatchTableItem(), setCurrentQuality(), startToRequest(), startToRequestMovie(), startToRequestMusic(), and ~MusicDownloadBatchTableItem().
|
private |
Definition at line 83 of file musicdownloadbatchwidget.h.
Referenced by addCellItem(), MusicDownloadBatchTableItem(), and ~MusicDownloadBatchTableItem().
|
private |
Definition at line 83 of file musicdownloadbatchwidget.h.
Referenced by addCellItem(), MusicDownloadBatchTableItem(), and ~MusicDownloadBatchTableItem().
|
private |
Definition at line 84 of file musicdownloadbatchwidget.h.
Referenced by currentQualityChanged(), downloadFinished(), MusicDownloadBatchTableItem(), startToRequest(), startToRequestMovie(), startToRequestMusic(), and ~MusicDownloadBatchTableItem().