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 Member Functions | Private Attributes | List of all members
MusicNetworkTestThread Class Reference

The class of the thread to test input url network. More...

#include <musicnetworktestthread.h>

+ Inheritance diagram for MusicNetworkTestThread:

Signals

void networkConnectionTestChanged (bool state)
 

Public Member Functions

 MusicNetworkTestThread (QObject *parent=nullptr)
 
void setUrl (const QString &url)
 
- Public Member Functions inherited from TTKAbstractThread
 TTKAbstractThread (QObject *parent=nullptr)
 

Private Member Functions

virtual void run () overridefinal
 

Private Attributes

QString m_currentUrl
 

Additional Inherited Members

- Public Slots inherited from TTKAbstractThread
void start ()
 
void stop ()
 
- Protected Attributes inherited from TTKAbstractThread
bool m_running
 

Detailed Description

The class of the thread to test input url network.

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

Definition at line 27 of file musicnetworktestthread.h.

Constructor & Destructor Documentation

MusicNetworkTestThread::MusicNetworkTestThread ( QObject *  parent = nullptr)
explicit

Object constructor.

Definition at line 7 of file musicnetworktestthread.cpp.

References TTK::initRandom().

Member Function Documentation

void MusicNetworkTestThread::networkConnectionTestChanged ( bool  state)
signal

Network connection test changed.

Referenced by run().

void MusicNetworkTestThread::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().

Member Data Documentation

QString MusicNetworkTestThread::m_currentUrl
private

Definition at line 54 of file musicnetworktestthread.h.

Referenced by run(), and setUrl().


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