TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Signals | Public Member Functions | Private Slots | Private Attributes | List of all members
MusicNetworkConnectionItem Class Reference

The class of the network connection item Widget. More...

#include <musicnetworkconnectiontestwidget.h>

+ Inheritance diagram for MusicNetworkConnectionItem:

Signals

void networkConnectionTestChanged ()
 

Public Member Functions

 MusicNetworkConnectionItem (QWidget *parent=nullptr)
 
 ~MusicNetworkConnectionItem ()
 
void setText (const QString &text)
 
void setUrl (const QString &url)
 
void start ()
 
void stop ()
 

Private Slots

void testFinshed (bool state)
 

Private Attributes

MusicNetworkTestThreadm_thread
 
QLabel * m_iconLabel
 
QLabel * m_nameText
 
QLabel * m_stateText
 

Detailed Description

The class of the network connection item Widget.

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

Definition at line 29 of file musicnetworkconnectiontestwidget.h.

Constructor & Destructor Documentation

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

Object destructor.

Definition at line 38 of file musicnetworkconnectiontestwidget.cpp.

References m_iconLabel, m_nameText, m_stateText, m_thread, and TTKAbstractThread::stop().

Member Function Documentation

void MusicNetworkConnectionItem::networkConnectionTestChanged ( )
signal

Network connection test changed.

Referenced by MusicNetworkConnectionItem(), and testFinshed().

void MusicNetworkConnectionItem::setText ( const QString &  text)

Set label text name.

Definition at line 47 of file musicnetworkconnectiontestwidget.cpp.

References m_nameText.

Referenced by MusicNetworkConnectionTestWidget::MusicNetworkConnectionTestWidget().

void MusicNetworkConnectionItem::setUrl ( const QString &  url)

Set current test url.

Definition at line 52 of file musicnetworkconnectiontestwidget.cpp.

References m_thread, and MusicNetworkTestThread::setUrl().

void MusicNetworkConnectionItem::start ( )

Start to test network.

Definition at line 57 of file musicnetworkconnectiontestwidget.cpp.

References TTK::UI::ColorStyle07, m_stateText, m_thread, and TTKAbstractThread::start().

void MusicNetworkConnectionItem::stop ( )
void MusicNetworkConnectionItem::testFinshed ( bool  state)
privateslot

Member Data Documentation

QLabel* MusicNetworkConnectionItem::m_iconLabel
private
QLabel * MusicNetworkConnectionItem::m_nameText
private
QLabel * MusicNetworkConnectionItem::m_stateText
private
MusicNetworkTestThread* MusicNetworkConnectionItem::m_thread
private

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