TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MusicConnectionPool Class Reference

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

#include <musicconnectionpool.h>

Public Member Functions

void setValue (const QString &type, QObject *object)
 
QObject * value (const QString &type) const
 
void removeValue (const QObject *object)
 
void connect (const QString &from, const QString &to)
 

Private Member Functions

 MusicConnectionPool ()
 

Private Attributes

QMap< QString, QObject * > m_parameters
 

Detailed Description

The class of the qt signal and slot connection pool.

Author
Greedysky greed.nosp@m.ysky.nosp@m.@163..nosp@m.com

Definition at line 28 of file musicconnectionpool.h.

Constructor & Destructor Documentation

MusicConnectionPool::MusicConnectionPool ( )
private

Object constructor.

Definition at line 25 of file musicconnectionpool.cpp.

Member Function Documentation

void MusicConnectionPool::connect ( const QString &  from,
const QString &  to 
)

Set connection by two object type name.

Definition at line 42 of file musicconnectionpool.cpp.

References m_parameters.

void MusicConnectionPool::removeValue ( const QObject *  object)

Remove connection object by object.

Definition at line 30 of file musicconnectionpool.cpp.

References m_parameters.

void MusicConnectionPool::setValue ( const QString &  type,
QObject *  object 
)
inline

Set connection object and type name.

Definition at line 35 of file musicconnectionpool.h.

QObject* MusicConnectionPool::value ( const QString &  type) const
inline

Get connection object by type name.

Definition at line 42 of file musicconnectionpool.h.

Member Data Documentation

QMap<QString, QObject*> MusicConnectionPool::m_parameters
private

Definition at line 63 of file musicconnectionpool.h.

Referenced by connect(), and removeValue().


The documentation for this class was generated from the following files: