Class: TAcceptRejectCancelDialogState

Declaration: CommonDialogs.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TDialogState

Inherited By:

None.

Purpose:

TAcceptRejectCancelDialogState is a derived class from TDialogState. This customized state that represents the state of an accept-reject-cancel dialog.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Derive classes from TAcceptRejectCancelDialogState to create customized dialog behavior by overriding member functions: Accept, Reject, and Cancel.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TAcceptRejectCancelDialogState::Reject

virtual void Reject ()

Interface Category:

API.

Purpose:

Rejects the dialog's offer. The default implementation does nothing.

Calling Context:

Called when the reject button is pressed in a dialog. Called from TAcceptRejectCancelContent::HandleViewAction.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

Deriving classes should provide an implementation for this member function.

Member Function: TAcceptRejectCancelDialogState::TAcceptRejectCancelDialogState

  1. TAcceptRejectCancelDialogState ()
  2. TAcceptRejectCancelDialogState (const TAcceptRejectCancelDialogState & source)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Copy constructor.

Calling Context:

  1. Called to create a TAcceptRejectCancelDialogState suitable for streaming into.
  2. Called to copy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TAcceptRejectCancelDialogState::~TAcceptRejectCancelDialogState

virtual ~ TAcceptRejectCancelDialogState ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TAcceptRejectCancelDialogState::operator>>=

TStream & operator >>=(TStream & destination) const

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Called to stream out data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself out to.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TAcceptRejectCancelDialogState::operator<<=

TStream & operator <<= (TStream & source)

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Called to stream in data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself in from.

Exceptions:

Throws TInvalidVersionError if the version of the flattened object is not supported.

Concurrency:

Not multithread safe.

Other Considerations:

None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.