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 ttk local peer. More...
#include <ttklocalpeer.h>
Signals | |
void | messageReceived (const QString &message) |
Public Member Functions | |
TTKLocalPeer (QObject *parent=nullptr, const QString &id={}) | |
bool | isClient () const |
bool | sendMessage (const QString &message, int timeout) const |
QString | applicationId () const |
Private Slots | |
void | receiveConnection () |
The class of the ttk local peer.
Definition at line 29 of file ttklocalpeer.h.
|
explicit |
Object constructor.
Definition at line 67 of file ttklocalpeer.cpp.
QString TTKLocalPeer::applicationId | ( | ) | const |
bool TTKLocalPeer::isClient | ( | ) | const |
Current client is running or not.
Definition at line 119 of file ttklocalpeer.cpp.
References qPrintable, receiveConnection(), TTK_D, TTK_WARN_STREAM, and TTKLockedPrivate::TTKLockedFile::WriteLock.
Referenced by sendMessage().
|
signal |
Emit when the current message received.
Referenced by receiveConnection().
|
privateslot |
Current message received.
Definition at line 205 of file ttklocalpeer.cpp.
References messageReceived(), TTK_D, and TTK_WARN_STREAM.
Referenced by isClient().
Send current message when the client in.
Definition at line 150 of file ttklocalpeer.cpp.
References isClient(), and TTK_D.