Wt
3.3.12
|
Abstract base class of a signal. More...
Public Member Functions | |
WObject * | sender () const |
Returns the sender. More... | |
virtual bool | isConnected () const =0 |
Returns whether this signal is connected. More... | |
virtual Wt::Signals::connection | connect (WObject *target, WObject::Method method)=0 |
Connects to a slot. More... | |
template<class T , class V > | |
Wt::Signals::connection | connect (T *target, void(V::*method)()) |
Connects to a slot. More... | |
Abstract base class of a signal.
Base class for all signals.
Wt::Signals::connection Wt::SignalBase::connect | ( | T * | target, |
void(V::*)() | method | ||
) |
Connects to a slot.
Every signal can be connected to a slot which does not take any arguments (and may thus ignore signal arguments).
|
pure virtual |
Connects to a slot.
Every signal can be connected to a slot which does not take any arguments (and may thus ignore signal arguments).
Implemented in Wt::JSignal< A1, A2, A3, A4, A5, A6 >, Wt::JSignal< double >, Wt::JSignal<>, Wt::JSignal< std::string, int >, Wt::JSignal< std::string >, Wt::JSignal< int, int >, Wt::JSignal< int, int, std::string, std::string, Wt::WMouseEvent >, Wt::JSignal< Wt::WGoogleMap::Coordinate >, Wt::JSignal< int >, Wt::JSignal< void >, Wt::JSignal< double, double >, Wt::JSignal< std::string, std::string, Wt::WMouseEvent, struct NoClass, struct NoClass, struct NoClass >, Wt::JSignal< std::string, std::string, Wt::WTouchEvent >, Wt::JSignal< ::uint64_t >, Wt::JSignal< Wt::WTouchEvent >, Wt::JSignal< std::string, int, std::string >, Wt::JSignal< bool >, Wt::JSignal< std::string, std::string, Wt::WTouchEvent, struct NoClass, struct NoClass, struct NoClass >, Wt::JSignal< std::string, std::string, std::string, std::string, Wt::WMouseEvent >, Wt::JSignal< ::int64_t >, Wt::JSignal< std::string, std::string >, and Wt::JSignal< int, int, int, int >.
|
pure virtual |
Returns whether this signal is connected.
Returns true when the signal was connected to to at least one slot.
Implemented in Wt::EventSignalBase, and Wt::JSignal< A1, A2, A3, A4, A5, A6 >.
WObject* Wt::SignalBase::sender | ( | ) | const |
Returns the sender.
The sender usually corresponds to the owner, and is used by the WSignalMapper to associated sender-specific data.
During a slot invocation, you can access the sender from WObject::sender().