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 application. More...
#include <ttkapplication.h>
Public Slots | |
bool | sendMessage (const QString &message, int timeout=5000) |
void | activateWindow () |
Signals | |
void | messageReceived (const QString &message) |
Public Member Functions | |
TTKApplication (int &argc, char **argv) | |
TTKApplication (const QString &id, int &argc, char **argv) | |
bool | isRunning () const |
QString | id () const |
void | setActivationWindow (QWidget *aw, bool activateOnMessage=true) const |
QWidget * | activationWindow () const |
Private Member Functions | |
void | initialize (const QString &id={}) |
The class of the ttk application.
Definition at line 30 of file ttkapplication.h.
TTKApplication::TTKApplication | ( | int & | argc, |
char ** | argv | ||
) |
Object constructor.
Definition at line 33 of file ttkapplication.cpp.
References initialize(), and TTK_INIT_PRIVATE.
Definition at line 40 of file ttkapplication.cpp.
References initialize(), and TTK_INIT_PRIVATE.
|
slot |
Selected current active window.
Definition at line 86 of file ttkapplication.cpp.
References TTK_D.
Referenced by setActivationWindow().
QWidget * TTKApplication::activationWindow | ( | ) | const |
QString TTKApplication::id | ( | ) | const |
|
private |
Init the system parameter.
Definition at line 97 of file ttkapplication.cpp.
References messageReceived(), and TTK_D.
Referenced by TTKApplication().
bool TTKApplication::isRunning | ( | ) | const |
Check the current server is running or not.
Definition at line 47 of file ttkapplication.cpp.
References TTK_D.
Referenced by main().
|
signal |
Emit when the current message received.
Referenced by initialize(), and setActivationWindow().
Emit when the current message received.
Definition at line 80 of file ttkapplication.cpp.
References TTK_D.
void TTKApplication::setActivationWindow | ( | QWidget * | aw, |
bool | activateOnMessage = true |
||
) | const |
Set current active window.
Definition at line 59 of file ttkapplication.cpp.
References activateWindow(), messageReceived(), and TTK_D.