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 Slots | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MusicBackgroundRemoteWidget Class Referenceabstract

The class of the remote background widget. More...

#include <musicbackgroundremotewidget.h>

+ Inheritance diagram for MusicBackgroundRemoteWidget:

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
 
MusicBackgroundListWidgetm_backgroundList
 
MusicDownloadQueueRequestm_networkRequest
 
MusicAbstractDownloadSkinRequestm_downloadRequest
 

Detailed Description

The class of the remote background widget.

Author
Greedysky greed.nosp@m.ysky.nosp@m.@163..nosp@m.com

Definition at line 32 of file musicbackgroundremotewidget.h.

Constructor & Destructor Documentation

MusicBackgroundRemoteWidget::MusicBackgroundRemoteWidget ( QWidget *  parent = nullptr)
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.

Member Function Documentation

void MusicBackgroundRemoteWidget::abort ( )
void MusicBackgroundRemoteWidget::downLoadFinished ( const QString &  bytes)
slot
void MusicBackgroundRemoteWidget::downLoadFinished ( const MusicSkinRemoteGroupList &  bytes)
virtualslot

Send download data from net.

Definition at line 60 of file musicbackgroundremotewidget.cpp.

References m_groups.

virtual void MusicBackgroundRemoteWidget::outputRemoteSkin ( MusicBackgroundImage image,
const QString &  data 
)
pure virtual

Output remote skin. Subclass should implement this function.

Implemented in MusicBackgroundOnlineWidget, and MusicBackgroundDailyWidget.

Referenced by downLoadFinished(), and MusicBackgroundSkinDialog::listWidgetItemClicked().

void MusicBackgroundRemoteWidget::startToRequest ( const QString &  suffix)
protected

Member Data Documentation

MusicBackgroundListWidget* MusicBackgroundRemoteWidget::m_backgroundList
protected
int MusicBackgroundRemoteWidget::m_currentIndex
protected
MusicAbstractDownloadSkinRequest* MusicBackgroundRemoteWidget::m_downloadRequest
protected
MusicSkinRemoteGroupList MusicBackgroundRemoteWidget::m_groups
protected
MusicDownloadQueueRequest* MusicBackgroundRemoteWidget::m_networkRequest
protected

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