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

Abstract base class of a signal. More...

Inherits noncopyable.

Inherited by Wt::Signal< ::int64_t >, Wt::Signal< ::uint64_t >, Wt::Signal< ::uint64_t,::uint64_t >, Wt::Signal< bool >, Wt::Signal< boost::system::error_code, Wt::Http::Message >, Wt::Signal< const Wt::Chart::WDataSeries *, Wt::WPointF >, Wt::Signal< Coordinate, NoClass >, Wt::Signal< DialogCode >, Wt::Signal< double >, Wt::Signal< double, double >, Wt::Signal< int >, Wt::Signal< int, int >, Wt::Signal< int, int, int, int >, Wt::Signal< int, NoClass >, Wt::Signal< int, Wt::WFormWidget * >, Wt::Signal< int, Wt::WLength >, Wt::Signal< int, Wt::WMouseEvent >, Wt::Signal< int64_t, int64_t >, Wt::Signal< Orientation, int, int >, Wt::Signal< StandardButton >, Wt::Signal< StandardButton, NoClass >, Wt::Signal< std::string >, Wt::Signal< std::vector< Wt::WFileDropWidget::File * > >, Wt::Signal< T, A1 >, Wt::Signal< void >, Wt::Signal< Wt::Auth::Identity >, Wt::Signal< Wt::Auth::OAuthAccessToken >, Wt::Signal< Wt::Http::Message >, Wt::Signal< Wt::Payment::Approval >, Wt::Signal< Wt::Payment::Result >, Wt::Signal< Wt::WDate >, Wt::Signal< Wt::WDialog * >, Wt::Signal< Wt::WFileDropWidget::File * >, Wt::Signal< Wt::WFileDropWidget::File *,::uint64_t >, Wt::Signal< Wt::WMenuItem * >, Wt::Signal< Wt::WModelIndex >, Wt::Signal< Wt::WModelIndex, int, int >, Wt::Signal< Wt::WModelIndex, Wt::WModelIndex >, Wt::Signal< Wt::WModelIndex, Wt::WMouseEvent >, Wt::Signal< Wt::WModelIndex, Wt::WTouchEvent >, Wt::Signal< Wt::WObject *, NoClass, NoClass, NoClass, NoClass, NoClass >, Wt::Signal< Wt::WPopupMenu * >, Wt::Signal< Wt::WRadioButton * >, Wt::Signal< Wt::WStandardItem * >, Wt::Signal< Wt::WString >, Wt::Signal< Wt::WValidator::Result >, Wt::Signal< Wt::WWidget *, bool >, Wt::Signal<>, Wt::EventSignalBase, and Wt::Signal< A1, A2, A3, A4, A5, A6 >.

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

virtual Wt::Signals::connection Wt::SignalBase::connect ( WObject target,
WObject::Method  method 
)
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::EventSignal< E >, Wt::JSignal< A1, A2, A3, A4, A5, A6 >, Wt::JSignal< double >, Wt::JSignal<>, Wt::JSignal< std::string, int >, Wt::JSignal< std::string, std::string, std::string, std::string, Wt::WTouchEvent >, Wt::JSignal< std::string >, Wt::JSignal< int, int, std::string, std::string, Wt::WMouseEvent >, Wt::JSignal< int, int >, 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< ::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< int, int, int, int >, Wt::JSignal< std::string, std::string >, Wt::Signal< A1, A2, A3, A4, A5, A6 >, Wt::Signal< Wt::WModelIndex, Wt::WMouseEvent >, Wt::Signal< Wt::Http::Message >, Wt::Signal< Wt::WWidget *, bool >, Wt::Signal< ::uint64_t,::uint64_t >, Wt::Signal< Wt::WModelIndex >, Wt::Signal< double >, Wt::Signal<>, Wt::Signal< std::vector< Wt::WFileDropWidget::File * > >, Wt::Signal< Orientation, int, int >, Wt::Signal< int, Wt::WLength >, Wt::Signal< std::string >, Wt::Signal< Wt::Payment::Result >, Wt::Signal< Wt::WStandardItem * >, Wt::Signal< int, int >, Wt::Signal< int64_t, int64_t >, Wt::Signal< Coordinate, NoClass >, Wt::Signal< int >, Wt::Signal< Wt::WObject *, NoClass, NoClass, NoClass, NoClass, NoClass >, Wt::Signal< Wt::WModelIndex, Wt::WTouchEvent >, Wt::Signal< Wt::Payment::Approval >, Wt::Signal< void >, Wt::Signal< Wt::WModelIndex, int, int >, Wt::Signal< Wt::Auth::Identity >, Wt::Signal< boost::system::error_code, Wt::Http::Message >, Wt::Signal< int, Wt::WFormWidget * >, Wt::Signal< Wt::WDate >, Wt::Signal< double, double >, Wt::Signal< Wt::WPopupMenu * >, Wt::Signal< T, A1 >, Wt::Signal< ::uint64_t >, Wt::Signal< StandardButton >, Wt::Signal< int, NoClass >, Wt::Signal< Wt::Auth::OAuthAccessToken >, Wt::Signal< bool >, Wt::Signal< Wt::WValidator::Result >, Wt::Signal< DialogCode >, Wt::Signal< StandardButton, NoClass >, Wt::Signal< Wt::WModelIndex, Wt::WModelIndex >, Wt::Signal< int, int, int, int >, Wt::Signal< Wt::WFileDropWidget::File *,::uint64_t >, Wt::Signal< Wt::WString >, Wt::Signal< int, Wt::WMouseEvent >, Wt::Signal< ::int64_t >, Wt::Signal< const Wt::Chart::WDataSeries *, Wt::WPointF >, Wt::Signal< Wt::WRadioButton * >, Wt::Signal< Wt::WFileDropWidget::File * >, Wt::Signal< Wt::WMenuItem * >, and Wt::Signal< Wt::WDialog * >.

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

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::EventSignal< E >, Wt::EventSignalBase, Wt::Signal< A1, A2, A3, A4, A5, A6 >, Wt::Signal< Wt::WModelIndex, Wt::WMouseEvent >, Wt::Signal< Wt::Http::Message >, Wt::Signal< Wt::WWidget *, bool >, Wt::Signal< ::uint64_t,::uint64_t >, Wt::Signal< Wt::WModelIndex >, Wt::Signal< double >, Wt::Signal<>, Wt::Signal< std::vector< Wt::WFileDropWidget::File * > >, Wt::Signal< Orientation, int, int >, Wt::Signal< int, Wt::WLength >, Wt::Signal< std::string >, Wt::Signal< Wt::Payment::Result >, Wt::Signal< Wt::WStandardItem * >, Wt::Signal< int, int >, Wt::Signal< int64_t, int64_t >, Wt::Signal< Coordinate, NoClass >, Wt::Signal< int >, Wt::Signal< Wt::WObject *, NoClass, NoClass, NoClass, NoClass, NoClass >, Wt::Signal< Wt::WModelIndex, Wt::WTouchEvent >, Wt::Signal< Wt::Payment::Approval >, Wt::Signal< void >, Wt::Signal< Wt::WModelIndex, int, int >, Wt::Signal< Wt::Auth::Identity >, Wt::Signal< boost::system::error_code, Wt::Http::Message >, Wt::Signal< int, Wt::WFormWidget * >, Wt::Signal< Wt::WDate >, Wt::Signal< double, double >, Wt::Signal< Wt::WPopupMenu * >, Wt::Signal< T, A1 >, Wt::Signal< ::uint64_t >, Wt::Signal< StandardButton >, Wt::Signal< int, NoClass >, Wt::Signal< Wt::Auth::OAuthAccessToken >, Wt::Signal< bool >, Wt::Signal< Wt::WValidator::Result >, Wt::Signal< DialogCode >, Wt::Signal< StandardButton, NoClass >, Wt::Signal< Wt::WModelIndex, Wt::WModelIndex >, Wt::Signal< int, int, int, int >, Wt::Signal< Wt::WFileDropWidget::File *,::uint64_t >, Wt::Signal< Wt::WString >, Wt::Signal< int, Wt::WMouseEvent >, Wt::Signal< ::int64_t >, Wt::Signal< const Wt::Chart::WDataSeries *, Wt::WPointF >, Wt::Signal< Wt::WRadioButton * >, Wt::Signal< Wt::WFileDropWidget::File * >, Wt::Signal< Wt::WMenuItem * >, Wt::Signal< Wt::WDialog * >, Wt::JSignal< A1, A2, A3, A4, A5, A6 >, Wt::JSignal< double >, Wt::JSignal<>, Wt::JSignal< std::string, int >, Wt::JSignal< std::string, std::string, std::string, std::string, Wt::WTouchEvent >, Wt::JSignal< std::string >, Wt::JSignal< int, int, std::string, std::string, Wt::WMouseEvent >, Wt::JSignal< int, int >, 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< ::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< int, int, int, int >, and Wt::JSignal< std::string, std::string >.

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 4 2017 for the C++ Web Toolkit (Wt) by doxygen 1.8.11