CsSignal  1.3.1
CsSignal::SlotBase Class Reference

Base class for slot support. More...

Public Member Functions

CsSignal::SignalBasesender () const
 

Private Member Functions

virtual bool compareThreads () const
 
virtual void queueSlot (CsSignal::PendingSlot data, CsSignal::ConnectionKind type)
 

Detailed Description

Base class for slot support.

The SlotBase class contains the methods and properties to support receiving signals. Inherit from this class in order to receive a signal in your application or library.

This class is used in the CopperSpice Core library.

Member Function Documentation

bool SlotBase::compareThreads ( ) const
privatevirtual

Override this method in your class to customize cross thread signal delivery. This method will be called on the sending thread and should return true if the signal can be delivered in the same thread.

void SlotBase::queueSlot ( CsSignal::PendingSlot  data,
CsSignal::ConnectionKind  type 
)
privatevirtual

Override this method in your class to customize cross thread signal delivery. If compareThreads() returns false this method will be called. The pending slot is a functor which most be invoked on the target thread using whatever mechanism is appropriate in your application.

SignalBase * SlotBase::sender ( ) const

This method returns a pointer to the signal base object which is currently emitting a signal.

Only call this method from a slot. If called at any other time it will return null.


The documentation for this class was generated from the following files: