TTKMusicPlayer
4.2.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
The class of the ttk event loop. More...
#include <ttkeventloop.h>
Public Slots | |
void | quit () |
void | exit () |
Public Member Functions | |
TTKEventLoop (QObject *parent=nullptr) | |
~TTKEventLoop () | |
void | setTimeout (int msec) |
int | exec (ProcessEventsFlags flags=AllEvents) |
Private Attributes | |
QTimer | m_timer |
The class of the ttk event loop.
Definition at line 29 of file ttkeventloop.h.
|
explicit |
Object constructor.
Definition at line 3 of file ttkeventloop.cpp.
References m_timer, quit(), and TTK_DN_S2MS.
TTKEventLoop::~TTKEventLoop | ( | ) |
int TTKEventLoop::exec | ( | ProcessEventsFlags | flags = AllEvents | ) |
Event loop start.
Definition at line 20 of file ttkeventloop.cpp.
References m_timer.
Referenced by MusicReplayGainWidget::addFileButtonClicked(), MusicReplayGainWidget::addFilesButtonClicked(), MusicReplayGainWidget::applyButtonClicked(), MusicSongSharingWidget::confirmButtonClicked(), MusicIdentifySongWidget::createDetectedSuccessedWidget(), MusicIdentifySongWidget::detectedTimeOut(), MusicLrcDownloadBatchWidget::downloadButtonClicked(), MusicDownloadMetaDataRequest::downLoadFinished(), TTK::fetchFileSizeByUrl(), MusicAbstractIdentifyRequest::queryCloudKey(), MusicCloudManagerTableWidget::queryCloudKey(), MusicDeviceInfoModule::removableDrive(), MusicCommentsWidget::setCurrentSongName(), MusicWYCoverSourceRequest::startToRequest(), MusicKGDownloadBackgroundRequest::startToRequest(), MusicWYTranslationRequest::startToRequest(), MusicKWSongCommentsRequest::startToSearch(), MusicKGSongCommentsRequest::startToSearch(), MusicWYSongCommentsRequest::startToSearch(), TTK::syncNetworkQueryForGet(), TTK::syncNetworkQueryForPatch(), TTK::syncNetworkQueryForPost(), and TTK::syncNetworkQueryForPut().
|
slot |
|
slot |
Event loop quit.
Definition at line 26 of file ttkeventloop.cpp.
References m_timer.
Referenced by TTKEventLoop(), and ~TTKEventLoop().
void TTKEventLoop::setTimeout | ( | int | msec | ) |
|
private |
Definition at line 63 of file ttkeventloop.h.
Referenced by exec(), exit(), quit(), setTimeout(), and TTKEventLoop().