Class: TGUIMessageLog

Declaration: GUICompoundDocument.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

None.

Inherited By:

None.

Purpose:

TGUIMessageLog is used to send messages to the user. This is the standard way to report warnings, errors, and information to the user. The default implementation displays dialog boxes containing the messages.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Developers are not expected to derive from this class.

Concurrency:

Multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TGUIMessageLog::TGUIMessageLog

  1. TGUIMessageLog (TWindowGroup * theWindowGroupToAlias)
  2. TGUIMessageLog (TWindowGroup * theWindowGroupToAlias, TLocale theCurrentLocale)

Interface Category:

API.

Purpose:

  1. Constructor. Not normally called by clients.
  2. Constructor. Not normally called by clients.

Calling Context:

  1. Called by Presentation framework to create the message log.
  2. Called by Presentation framework to create the message log.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TGUIMessageLog::~TGUIMessageLog

virtual ~ TGUIMessageLog ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object. Not normally called by clients.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TGUIMessageLog::PostMessage

virtual void PostMessage (EMessage, const TText & theMessage) const

Interface Category:

API.

Purpose:

Posts the message to the user. The exact way the message is posted is a private implementation detail. The current implementation puts up an alert window. In addition, if the message type is kError, the message is echoed to the console.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TGUIMessageLog::ReportException

  1. virtual void ReportException (const TStandardException & e) const
  2. virtual void ReportException (const TStandardException & e, const TText & additionalInfo) const

Interface Category:

API.

Purpose:

  1. Reports an exception to the user.
  2. Reports an exception to the user. Allows client to specify additional information.

Calling Context:

  1. Usually called from a catch block.
  2. Usually called from a catch block.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TGUIMessageLog::GetWindowGroup

TWindowGroup * GetWindowGroup () const

Interface Category:

API.

Purpose:

Used internally to get the window group. New message dialog boxes will be placed into this window group.

Calling Context:

Called internally and by derived classes wishing to put up custom windows.

Parameters:

Return Value:

The window group associated with this message log.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

This function is protected.

Member Function: TGUIMessageLog::FormatMessage

virtual void FormatMessage (TText & result, const TStandardException & e, const TText * additionalInfo) const

Interface Category:

API.

Purpose:

Used internally to compose a human-readable message reporting an exception.

Calling Context:

Called internally and by derived classes wishing to report exceptions.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

This function is protected.

Member Function: TGUIMessageLog::HandleWindowClosed

virtual void HandleWindowClosed (const TNotification & notification)

Interface Category:

API.

Purpose:

Deletes a message window after it has been closed.

Calling Context:

Used internally. Not to be called by clients.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

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