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 | Signals | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
MusicDownloadWidget Class Reference

The class of the download widget. More...

#include <musicdownloadwidget.h>

+ Inheritance diagram for MusicDownloadWidget:

Public Slots

void downLoadNormalFinished ()
 
void downLoadRequestFinished ()
 
void startToRequest ()
 
void downloadFinished ()
 
- Public Slots inherited from MusicAbstractMoveWidget
void backgroundChanged ()
 
void show ()
 

Signals

void dataDownloadChanged ()
 

Public Member Functions

 MusicDownloadWidget (QWidget *parent=nullptr)
 
 ~MusicDownloadWidget ()
 
void initialize (MusicAbstractQueryRequest *request, int row)
 
void initialize (const QString &name, MusicAbstractQueryRequest::QueryType type)
 
void initialize (const TTK::MusicSongInformation &info, MusicAbstractQueryRequest::QueryType type)
 
- Public Member Functions inherited from MusicAbstractMoveWidget
 MusicAbstractMoveWidget (QWidget *parent=nullptr)
 
 MusicAbstractMoveWidget (bool transparent, QWidget *parent=nullptr)
 
 ~MusicAbstractMoveWidget ()
 
- Public Member Functions inherited from TTKAbstractMoveWidget
 TTKAbstractMoveWidget (QWidget *parent=nullptr)
 
 TTKAbstractMoveWidget (bool transparent, QWidget *parent=nullptr)
 
void drawWindowShadow (bool show)
 
void blockMoveOption (bool block)
 

Static Public Member Functions

static bool startToRequestMusic (const TTK::MusicSongInformation &info, int bitrate, QObject *parent)
 
static bool startToRequestMovie (const TTK::MusicSongInformation &info, int bitrate, QObject *parent)
 

Private Member Functions

void controlEnabled (bool enabled)
 
void setFixedHeightWidget (QWidget *w, int height)
 
void setMoveWidget (QWidget *w, int pos)
 
void addCellItems (const TTK::MusicSongPropertyList &props)
 

Private Attributes

Ui::MusicDownloadWidget * m_ui
 
MusicAbstractQueryRequestm_networkRequest
 
TTK::MusicSongInformation m_songInfo
 
MusicAbstractQueryRequest::QueryType m_queryType
 

Additional Inherited Members

- Protected Member Functions inherited from TTKAbstractMoveWidget
virtual void paintEvent (QPaintEvent *event) override
 
virtual void mousePressEvent (QMouseEvent *event) override
 
virtual void mouseMoveEvent (QMouseEvent *event) override
 
virtual void mouseReleaseEvent (QMouseEvent *event) override
 
- Protected Member Functions inherited from MusicWidgetRenderer
void setBackgroundPixmap (const QSize &size)
 
 MusicWidgetRenderer ()
 
void setBackgroundLabel (QLabel *label)
 
- Protected Attributes inherited from TTKAbstractMoveWidget
QPoint m_pressAt
 
bool m_moveOption
 
bool m_showShadow
 
bool m_leftButtonPress
 

Detailed Description

The class of the download widget.

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

Definition at line 109 of file musicdownloadwidget.h.

Constructor & Destructor Documentation

MusicDownloadWidget::MusicDownloadWidget ( QWidget *  parent = nullptr)
explicit
MusicDownloadWidget::~MusicDownloadWidget ( )

Object destructor.

Definition at line 130 of file musicdownloadwidget.cpp.

References m_networkRequest, and m_ui.

Member Function Documentation

void MusicDownloadWidget::addCellItems ( const TTK::MusicSongPropertyList &  props)
private
void MusicDownloadWidget::controlEnabled ( bool  enabled)
private

Enable or disable control state.

Definition at line 136 of file musicdownloadwidget.cpp.

References m_ui.

Referenced by initialize(), and startToRequest().

void MusicDownloadWidget::dataDownloadChanged ( )
signal

Data download changed.

Referenced by downloadFinished().

void MusicDownloadWidget::downloadFinished ( )
slot

Data download is finished.

Definition at line 471 of file musicdownloadwidget.cpp.

References dataDownloadChanged().

Referenced by startToRequestMovie(), and startToRequestMusic().

void MusicDownloadWidget::downLoadNormalFinished ( )
slot
void MusicDownloadWidget::downLoadRequestFinished ( )
slot
void MusicDownloadWidget::initialize ( MusicAbstractQueryRequest request,
int  row 
)
void MusicDownloadWidget::initialize ( const QString &  name,
MusicAbstractQueryRequest::QueryType  type 
)
void MusicDownloadWidget::initialize ( const TTK::MusicSongInformation info,
MusicAbstractQueryRequest::QueryType  type 
)
void MusicDownloadWidget::setFixedHeightWidget ( QWidget *  w,
int  height 
)
private

Set widget fixed height.

Definition at line 438 of file musicdownloadwidget.cpp.

Referenced by addCellItems().

void MusicDownloadWidget::setMoveWidget ( QWidget *  w,
int  pos 
)
private

Set widget moved into given pos.

Definition at line 443 of file musicdownloadwidget.cpp.

Referenced by addCellItems().

void MusicDownloadWidget::startToRequest ( )
slot
bool MusicDownloadWidget::startToRequestMovie ( const TTK::MusicSongInformation info,
int  bitrate,
QObject *  parent 
)
static
bool MusicDownloadWidget::startToRequestMusic ( const TTK::MusicSongInformation info,
int  bitrate,
QObject *  parent 
)
static

Member Data Documentation

MusicAbstractQueryRequest* MusicDownloadWidget::m_networkRequest
private
MusicAbstractQueryRequest::QueryType MusicDownloadWidget::m_queryType
private
TTK::MusicSongInformation MusicDownloadWidget::m_songInfo
private
Ui::MusicDownloadWidget* MusicDownloadWidget::m_ui
private

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