CsSignal
2.0.0
|
Base class for slot support. More...
Public Member Functions | |
SignalBase * | sender () const |
Private Member Functions | |
virtual bool | compareThreads () const |
virtual void | queueSlot (PendingSlot data, ConnectionKind type) |
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.
|
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.
|
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.