Important: The information in this document is obsolete and should not be used for new development.
ICyberProgressBroadcaster
Initializes this progress broadcaster.
void ICyberProgressBroadcaster (in CyberAbortUPP proc, in Ptr procData);
proc
- A pointer to a programmer-defined function that implements the abort behavior for the progress broadcaster object.
procData
- A pointer to data that is to be passed to the callback function.
DISCUSSION
You should call theICyberProgressBroadcaster
method to initialize a newly createdCyberProgressBroadcaster
object.The callback function you register implements the behavior of the
Abort
method; theAbort
method calls this function. This allows you to customize the behavior of theAbort
method without creating a subclass. You can set theprocData
parameter to point to some data that you want Cyberdog to pass to the callback function. For example, you might set this parameter to point to theCyberStream
object whose progress the progress broadcaster is reporting so that the callback function can call the stream'sAbort
method.The following type is used for abort functions. The function takes three parameters: a message code, a pointer to a progress broadcaster, and a pointer to some data; the function returns no value.
The
typedef void (* CyberAbortProcPtr) (
;
CDAbortProcMessage msgCode,
CyberProgressBroadcaster* broadcaster,
Ptr userDataPtr)MyAbortFunction
programmer-defined function (page 189) illustrates the form of an abort function.If you subclass
CyberProgressBroadcaster
and override this method, your override must call its inherited method.