Public Types | |
typedef unsigned int | Group |
Public Member Functions | |
BoundSlot (Group group, const SubscriberSlot &subscriber, Event &event) | |
Constructor. | |
BoundSlot (const BoundSlot &other) | |
Copy constructor. | |
~BoundSlot () | |
Destructor. | |
bool | connected () const |
Returns whether the slot which this object is tracking is still internally connected to the signal / event mechanism. | |
void | disconnect () |
Disconnects the slot. Once disconnected, the slot will no longer be called when the associated signal / event fires. There is no way to re-connect a slot once it has been disconnected, a new subscription to the signal / event is required. | |
bool | operator== (const BoundSlot &other) const |
Equality operator. | |
bool | operator!= (const BoundSlot &other) const |
Non-equality operator. | |
Friends | |
class | Event |
CEGUI::BoundSlot::BoundSlot | ( | Group | group, | |
const SubscriberSlot & | subscriber, | |||
Event & | event | |||
) |
Constructor.
group | The subscriber group this slot is attached to. | |
subscriber | The actual slot object that is controlling this connection binding. | |
event | The Event object to which the subscribed slot is attached. |
bool CEGUI::BoundSlot::connected | ( | ) | const |
Returns whether the slot which this object is tracking is still internally connected to the signal / event mechanism.
References CEGUI::SubscriberSlot::connected().
Referenced by disconnect().
void CEGUI::BoundSlot::disconnect | ( | ) |
Disconnects the slot. Once disconnected, the slot will no longer be called when the associated signal / event fires. There is no way to re-connect a slot once it has been disconnected, a new subscription to the signal / event is required.
References CEGUI::SubscriberSlot::cleanup(), connected(), and CEGUI::Event::unsubscribe().
Referenced by ~BoundSlot().
bool CEGUI::BoundSlot::operator!= | ( | const BoundSlot & | other | ) | const |
bool CEGUI::BoundSlot::operator== | ( | const BoundSlot & | other | ) | const |
Equality operator.
other | The BoundSlot to compare against. |
References d_subscriber.