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 remote background widget. More...
#include <musicbackgroundremotewidget.h>
Public Slots | |
void | downLoadFinished (const QString &bytes) |
virtual void | downLoadFinished (const MusicSkinRemoteGroupList &bytes) |
Public Member Functions | |
MusicBackgroundRemoteWidget (QWidget *parent=nullptr) | |
~MusicBackgroundRemoteWidget () | |
void | abort () |
virtual void | outputRemoteSkin (MusicBackgroundImage &image, const QString &data)=0 |
Protected Member Functions | |
void | startToRequest (const QString &suffix) |
Protected Attributes | |
int | m_currentIndex |
MusicSkinRemoteGroupList | m_groups |
MusicBackgroundListWidget * | m_backgroundList |
MusicDownloadQueueRequest * | m_networkRequest |
MusicAbstractDownloadSkinRequest * | m_downloadRequest |
The class of the remote background widget.
Definition at line 32 of file musicbackgroundremotewidget.h.
|
explicit |
Object constructor.
Definition at line 12 of file musicbackgroundremotewidget.cpp.
References TTK::Background, downLoadFinished(), m_backgroundList, and m_networkRequest.
MusicBackgroundRemoteWidget::~MusicBackgroundRemoteWidget | ( | ) |
Object destructor.
Definition at line 30 of file musicbackgroundremotewidget.cpp.
References abort(), m_backgroundList, m_downloadRequest, and m_networkRequest.
void MusicBackgroundRemoteWidget::abort | ( | ) |
Abort the current download request.
Definition at line 38 of file musicbackgroundremotewidget.cpp.
References MusicDownloadQueueRequest::abort(), and m_networkRequest.
Referenced by MusicBackgroundSkinDialog::backgroundListWidgetChanged(), and ~MusicBackgroundRemoteWidget().
|
slot |
Download data from net finished.
Definition at line 43 of file musicbackgroundremotewidget.cpp.
References MusicBackgroundImage::isValid(), m_backgroundList, m_groups, MusicBackgroundImage::m_pix, outputRemoteSkin(), and MusicBackgroundListWidget::updateItem().
Referenced by MusicBackgroundDailyWidget::downLoadFinished(), MusicBackgroundOnlineWidget::downLoadFinished(), and MusicBackgroundRemoteWidget().
|
virtualslot |
Download data from net finished.
Definition at line 60 of file musicbackgroundremotewidget.cpp.
References m_groups.
|
pure virtual |
Output remote skin. Subclass should implement this function.
Implemented in MusicBackgroundOnlineWidget, and MusicBackgroundDailyWidget.
Referenced by downLoadFinished(), and MusicBackgroundSkinDialog::listWidgetItemClicked().
|
protected |
Start to download background data by suffix.
Definition at line 65 of file musicbackgroundremotewidget.cpp.
References MusicBackgroundListWidget::addCellItem(), MusicDownloadQueueRequest::addQueue(), CACHE_DIR_FULL, MusicBackgroundListWidget::clearItems(), m_backgroundList, m_currentIndex, m_groups, m_networkRequest, MusicDownloadQueueData::m_path, MusicDownloadQueueData::m_url, qAsConst, and MusicDownloadQueueRequest::startToRequest().
Referenced by MusicBackgroundOnlineWidget::currentTypeChanged(), MusicBackgroundDailyWidget::downLoadFinished(), and MusicBackgroundDailyWidget::initialize().
|
protected |
Definition at line 75 of file musicbackgroundremotewidget.h.
Referenced by downLoadFinished(), MusicBackgroundOnlineWidget::initialize(), MusicBackgroundDailyWidget::MusicBackgroundDailyWidget(), MusicBackgroundOnlineWidget::MusicBackgroundOnlineWidget(), MusicBackgroundRemoteWidget(), startToRequest(), and ~MusicBackgroundRemoteWidget().
|
protected |
Definition at line 73 of file musicbackgroundremotewidget.h.
Referenced by MusicBackgroundOnlineWidget::currentTypeChanged(), MusicBackgroundDailyWidget::MusicBackgroundDailyWidget(), MusicBackgroundDailyWidget::outputRemoteSkin(), MusicBackgroundOnlineWidget::outputRemoteSkin(), and startToRequest().
|
protected |
Definition at line 77 of file musicbackgroundremotewidget.h.
Referenced by MusicBackgroundDailyWidget::initialize(), MusicBackgroundOnlineWidget::initialize(), and ~MusicBackgroundRemoteWidget().
|
protected |
Definition at line 74 of file musicbackgroundremotewidget.h.
Referenced by MusicBackgroundOnlineWidget::currentTypeChanged(), downLoadFinished(), MusicBackgroundOnlineWidget::downLoadFinished(), MusicBackgroundDailyWidget::outputRemoteSkin(), MusicBackgroundOnlineWidget::outputRemoteSkin(), and startToRequest().
|
protected |
Definition at line 76 of file musicbackgroundremotewidget.h.
Referenced by abort(), MusicBackgroundOnlineWidget::currentTypeChanged(), MusicBackgroundRemoteWidget(), startToRequest(), and ~MusicBackgroundRemoteWidget().