TTKMusicPlayer
4.1.3.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
TTKCommon
TTKLibrary
ttksemaphoreloop.cpp
Go to the documentation of this file.
1
#include "
ttksemaphoreloop.h
"
2
3
TTKSemaphoreLoop::TTKSemaphoreLoop
(QObject *parent)
4
: QEventLoop(parent)
5
{
6
m_timer
.setInterval(10 *
TTK_DN_S2MS
);
7
connect(&
m_timer
, SIGNAL(timeout()), SLOT(
quit
()));
8
}
9
10
TTKSemaphoreLoop::~TTKSemaphoreLoop
()
11
{
12
quit
();
13
}
14
15
void
TTKSemaphoreLoop::quit
()
16
{
17
m_timer
.stop();
18
return
QEventLoop::quit();
19
}
20
21
void
TTKSemaphoreLoop::exit
()
22
{
23
m_timer
.stop();
24
return
QEventLoop::exit();
25
}
26
27
int
TTKSemaphoreLoop::exec
(ProcessEventsFlags
flags
)
28
{
29
m_timer
.start();
30
return
QEventLoop::exec(flags);
31
}
TTKSemaphoreLoop::m_timer
QTimer m_timer
Definition:
ttksemaphoreloop.h:59
flags
flags
Definition:
http_parser.h:135
TTKSemaphoreLoop::exec
int exec(ProcessEventsFlags flags=AllEvents)
Definition:
ttksemaphoreloop.cpp:27
TTKSemaphoreLoop::~TTKSemaphoreLoop
~TTKSemaphoreLoop()
Definition:
ttksemaphoreloop.cpp:10
TTKSemaphoreLoop::TTKSemaphoreLoop
TTKSemaphoreLoop(QObject *parent=nullptr)
Definition:
ttksemaphoreloop.cpp:3
ttksemaphoreloop.h
TTK_DN_S2MS
#define TTK_DN_S2MS
Definition:
ttkglobal.h:281
TTKSemaphoreLoop::quit
void quit()
Definition:
ttksemaphoreloop.cpp:15
TTKSemaphoreLoop::exit
void exit()
Definition:
ttksemaphoreloop.cpp:21
Generated on Tue Jan 21 2025 21:07:12 for TTKMusicPlayer by
1.8.8