Wt  3.3.12
Public Member Functions | List of all members
Wt::SignalBase Class Referenceabstract

Abstract base class of a signal. More...

Inheritance diagram for Wt::SignalBase:
Inheritance graph
[legend]

Public Member Functions

WObjectsender () 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...
 

Detailed Description

Abstract base class of a signal.

Base class for all signals.

Member Function Documentation

◆ connect() [1/2]

template<class T , class V >
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).

◆ connect() [2/2]

virtual Wt::Signals::connection Wt::SignalBase::connect ( WObject target,
WObject::Method  method 
)
pure virtual

◆ isConnected()

virtual bool Wt::SignalBase::isConnected ( ) const
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 >.

◆ sender()

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().


Generated on Mon Sep 5 2022 for the C++ Web Toolkit (Wt) by doxygen 1.8.17