TTKMusicPlayer  4.3.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Classes | Macros | Functions
musicconnectionpool.h File Reference
#include <QMap>
#include "ttksingleton.h"

Go to the source code of this file.

Classes

class  MusicConnectionPool
 The class of the qt signal and slot connection pool. More...
 

Macros

#define TTK_CONNECTIONPOOL_REGISTER(object)   G_CONNECTION_PTR->setValue(className(), object)
 
#define TTK_CONNECTIONPOOL_UNREGISTER(object)   G_CONNECTION_PTR->removeValue(object)
 
#define TTK_CONNECTIONPOOL_BIND_TO(object)   G_CONNECTION_PTR->connect(className(), object::className())
 
#define TTK_CONNECTIONPOOL_BIND_FROM(object)   G_CONNECTION_PTR->connect(object::className(), className())
 
#define G_CONNECTION_PTR   makeMusicConnectionPool()
 

Functions

TTK_MODULE_EXPORT MusicConnectionPoolmakeMusicConnectionPool ()
 

Macro Definition Documentation

#define G_CONNECTION_PTR   makeMusicConnectionPool()
#define TTK_CONNECTIONPOOL_BIND_FROM (   object)    G_CONNECTION_PTR->connect(object::className(), className())

Definition at line 28 of file musicconnectionpool.h.

Referenced by MusicLrcMakerWidget::MusicLrcMakerWidget().

#define TTK_CONNECTIONPOOL_BIND_TO (   object)    G_CONNECTION_PTR->connect(className(), object::className())
#define TTK_CONNECTIONPOOL_REGISTER (   object)    G_CONNECTION_PTR->setValue(className(), object)
#define TTK_CONNECTIONPOOL_UNREGISTER (   object)    G_CONNECTION_PTR->removeValue(object)

Function Documentation

TTK_MODULE_EXPORT MusicConnectionPool* makeMusicConnectionPool ( )

Definition at line 14 of file musicsingleton.cpp.

References TTKSingleton< T >::instance().