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 network connection item Widget. More...
#include <musicnetworkconnectiontestwidget.h>
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 | |
MusicNetworkTestThread * | m_thread |
QLabel * | m_iconLabel |
QLabel * | m_nameText |
QLabel * | m_stateText |
The class of the network connection item Widget.
Definition at line 29 of file musicnetworkconnectiontestwidget.h.
|
explicit |
Object constructor.
Definition at line 12 of file musicnetworkconnectiontestwidget.cpp.
References m_iconLabel, m_nameText, m_stateText, m_thread, networkConnectionTestChanged(), stop(), and testFinshed().
MusicNetworkConnectionItem::~MusicNetworkConnectionItem | ( | ) |
Object destructor.
Definition at line 38 of file musicnetworkconnectiontestwidget.cpp.
References m_iconLabel, m_nameText, m_stateText, m_thread, and TTKAbstractThread::stop().
|
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 | ( | ) |
Stop to test network.
Definition at line 64 of file musicnetworkconnectiontestwidget.cpp.
References TTK::UI::ColorStyle03, m_iconLabel, m_stateText, m_thread, and TTKAbstractThread::stop().
Referenced by MusicNetworkConnectionItem().
|
privateslot |
Test network finished.
Definition at line 76 of file musicnetworkconnectiontestwidget.cpp.
References TTK::UI::ColorStyle09, TTK::UI::ColorStyle11, m_iconLabel, m_stateText, and networkConnectionTestChanged().
Referenced by MusicNetworkConnectionItem().
|
private |
Definition at line 75 of file musicnetworkconnectiontestwidget.h.
Referenced by MusicNetworkConnectionItem(), stop(), testFinshed(), and ~MusicNetworkConnectionItem().
|
private |
Definition at line 75 of file musicnetworkconnectiontestwidget.h.
Referenced by MusicNetworkConnectionItem(), setText(), and ~MusicNetworkConnectionItem().
|
private |
Definition at line 75 of file musicnetworkconnectiontestwidget.h.
Referenced by MusicNetworkConnectionItem(), start(), stop(), testFinshed(), and ~MusicNetworkConnectionItem().
|
private |
Definition at line 74 of file musicnetworkconnectiontestwidget.h.
Referenced by MusicNetworkConnectionItem(), setUrl(), start(), stop(), and ~MusicNetworkConnectionItem().