Interfaces a QObject instance with one of its signal. More...
#include <connector.hpp>
Public Member Functions | |
Emitter (const QObject *obj=0, const char *signal=0) | |
Create a Emitter. | |
Emitter (const char *signal) | |
Creates an Emitter to a specific signal. | |
const QObject * | emitter () const |
Gives the interfaced QObject Emitter. If QObject has been deleted, this function returns 0. | |
const char * | signal () const |
Gives the interfaced signal signature. | |
void | replaceObject (const QObject *obj) |
Replaces the interfaced QObject. | |
void | replaceSignal (const char *signal) |
Replaces the signal signature. | |
void | replaceEmitter (const QObject *obj, const char *signal) |
Replaces the interfaced QObject and the signal signature. | |
const Emitter & | operator>> (const Receiver &r) const |
Connects an Emitter to a Receiver. | |
const Emitter & | operator>> (const Emitter &e) const |
Connects Emitter to another Emitter. | |
const Emitter & | operator<< (const Emitter &e) const |
const Emitter & | operator>> (Qt::ConnectionType type) const |
Modify the next connexion type. |
Interfaces a QObject instance with one of its signal.
Emitter is use to simplify connexion lisibility with connect coding like a stream. Emitter could be connect to a Receiver or another Emitter.
Definition at line 41 of file connector.hpp.
QExtend::Emitter::Emitter | ( | const QObject * | obj = 0 , |
|
const char * | signal = 0 | |||
) |
QExtend::Emitter::Emitter | ( | const char * | signal | ) |
const QObject* QExtend::Emitter::emitter | ( | ) | const |
Gives the interfaced QObject Emitter. If QObject has been deleted, this function returns 0.
const Emitter& QExtend::Emitter::operator>> | ( | Qt::ConnectionType | type | ) | const |
Modify the next connexion type.
By default connexion type is Qt::AutoConnection. After the next connection, type is reinitialized to Qt::AutoConnection.
type | Connection type. |
void QExtend::Emitter::replaceEmitter | ( | const QObject * | obj, | |
const char * | signal | |||
) |
Replaces the interfaced QObject and the signal signature.
Replaces interfaced QObject and signal signature.
obj | QObject pointer. | |
signal | Object signal signature. Like normal connect, you should use SIGNAL macro. |
void QExtend::Emitter::replaceObject | ( | const QObject * | obj | ) |
Replaces the interfaced QObject.
Replaces interfaced QObject
obj | QObject pointer. |
void QExtend::Emitter::replaceSignal | ( | const char * | signal | ) |
Replaces the signal signature.
Replace signal signature.
signal | Object signal signature. Like normal connect, you should use SIGNAL macro. |
const char* QExtend::Emitter::signal | ( | ) | const |
Gives the interfaced signal signature.
© 2000-2024 - www.developpez.com