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 thread to test input url network. More...
#include <musicnetworktestthread.h>
Signals | |
void | networkConnectionTestChanged (bool state) |
Public Member Functions | |
MusicNetworkTestThread (QObject *parent=nullptr) | |
void | setUrl (const QString &url) |
![]() | |
TTKAbstractThread (QObject *parent=nullptr) | |
Private Member Functions | |
virtual void | run () overridefinal |
Private Attributes | |
QString | m_currentUrl |
Additional Inherited Members | |
![]() | |
void | start () |
void | stop () |
![]() | |
bool | m_running |
The class of the thread to test input url network.
Definition at line 27 of file musicnetworktestthread.h.
|
explicit |
Object constructor.
Definition at line 7 of file musicnetworktestthread.cpp.
References TTK::initRandom().
|
signal |
Network connection test changed.
Referenced by run().
|
finaloverrideprivatevirtual |
Thread run now.
Reimplemented from TTKAbstractThread.
Definition at line 18 of file musicnetworktestthread.cpp.
References m_currentUrl, networkConnectionTestChanged(), TTK::random(), TTK::Core::sleep(), and TTK_DN_S2MS.
void MusicNetworkTestThread::setUrl | ( | const QString & | url | ) |
Set current test url.
Definition at line 13 of file musicnetworktestthread.cpp.
References m_currentUrl.
Referenced by MusicNetworkConnectionItem::setUrl().
|
private |
Definition at line 54 of file musicnetworktestthread.h.