Indy 9
TIdNotifyMethod
Hierarchy, Properties, Methods, See Also, Unit: IdSync
Implements a class for posting notification messages using thread methods.
TIdNotifyMethod = class(TIdNotify)
Unit
IdSync
Description
TIdNotifyMethod is a TIdNotify descendant that implements a class for posting notification messages using thread methods.

TIdNotifyMethod.Create
TIdNotifyMethod, See Also
Constructor for the object instance.
constructor Create(AMethod: TThreadMethod); reintroduce;
Parameters
AMethod: TThreadMethod
Method to be executed for the threaded notification.
Description
Create is the constructor for the object instance. Create is reintroduced in TIdNotifyMethod to allow assignment of the TThreadMethod in AMethod to the private Method for the object instance.

TIdNotifyMethod.DoNotify
TIdNotifyMethod, See Also
Implements a notificiation mechanism using thread methods.
procedure DoNotify; override;
Description
DoNotify is an overriden procedure in TIdNotifyMethod that implements the abstract method from the ancestor class, and allows the threaded notification mechanism to execute the thread method assigned to the class instance. DoNotify is called from the inherited Notify method when the main thread of execution is Active, and the main thread uses the notify method. Under all other circumstances, Notify creates a threaded notification handler and adds it to the global NotifyThread instance.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.