Interfaces a QObject instance with one of its slot or signal that will be connected to a signal. More...
#include <connector.hpp>
Public Member Functions | |
Receiver (const QObject *obj=0, const char *slot=0) | |
Create a Receiver. | |
Receiver (const char *slot) | |
Create a Receiver. | |
const QObject * | receiver () const |
Give interfaced QObject Receiver. If QObject has been deleted, this function return 0. | |
const char * | slot () const |
Give interfaced slot signature. | |
void | replaceObject (const QObject *obj) |
Replace interfaced QObject. | |
void | replaceSlot (const char *slot) |
Replace slot signature. | |
void | replaceReceiver (const QObject *obj, const char *slot) |
Replace interfaced QObject ans slot signature. | |
const Receiver & | operator<< (const Emitter &e) const |
Connect an Emitter to Receiver. | |
const Receiver & | operator<< (Qt::ConnectionType type) const |
Modify the next connexion type. |
Interfaces a QObject instance with one of its slot or signal that will be connected to a signal.
Receiver is used to simplify connection lisibility with connect coded like streams. Receiver could be connected to an Emitter.
Definition at line 245 of file connector.hpp.
QExtend::Receiver::Receiver | ( | const QObject * | obj = 0 , |
|
const char * | slot = 0 | |||
) |
QExtend::Receiver::Receiver | ( | const char * | slot | ) |
const Receiver& QExtend::Receiver::operator<< | ( | Qt::ConnectionType | type | ) | const |
Modify the next connexion type.
By default connexion type is Qt::AutoConnection. After the next connexion, type is reinitialized to Qt::AutoConnection.
type | Connexion type. |
const QObject* QExtend::Receiver::receiver | ( | ) | const |
Give interfaced QObject Receiver. If QObject has been deleted, this function return 0.
void QExtend::Receiver::replaceObject | ( | const QObject * | obj | ) |
Replace interfaced QObject.
Replace interfaced QObject
obj | QObject pointer. |
void QExtend::Receiver::replaceReceiver | ( | const QObject * | obj, | |
const char * | slot | |||
) |
Replace interfaced QObject ans slot signature.
Create a Receiver
obj | QObject pointer. | |
slot | Object slot signature. like normale connect, you should use SLOT macro. |
void QExtend::Receiver::replaceSlot | ( | const char * | slot | ) |
Replace slot signature.
Replace slot signature.
slot | Object slot signature. like normale connect, you should use SLOT macro. |
const char* QExtend::Receiver::slot | ( | ) | const |
Give interfaced slot signature.
© 2000-2024 - www.developpez.com