Class: TRequestFileSystemEntityDialogState

Declaration: CommonDialogs.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

MCollectible

Inherited By:

TRequestExistingDirectoryDialogState TRequestExistingFileDialogState TRequestNewDirectoryDialogState TRequestNewFileDialogState TRequestVolumeDialogState

Purpose:

TRequestFileSystemEntityDialogState is a class that represents the state of a file system entity dialog.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Derive classes from TRequestFileSystemEntityDialogState and override Accept/Cancel/Verify member functions to create customized dialog behavior.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TRequestFileSystemEntityDialogState::Verify

virtual bool Verify (TPathName & pathName, TFileSystemEntity & entity, TText & errorMessage)

Interface Category:

API.

Purpose:

Verifies that the specified file system entity exists or can be created.

Calling Context:

Called by HandleAcceptButton.

Parameters:

Return Value:

Returns true if the specified file system entity exists or can be created. Returns false if it does not exist or cannot be created.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TRequestFileSystemEntityDialogState::PermitReplacementOfFileSystemEntity

virtual bool PermitReplacementOfFileSystemEntity (TPathName & pathName, TStandardText & replacementMessage)

Interface Category:

API.

Purpose:

Returns true if the specified entity may be replaced. The default implementation always returns false.

Calling Context:

Called by HandleAcceptButton.

Parameters:

Return Value:

Always returns false.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

Deriving classes may override this member function to define the policy of replacing file system entities.

Member Function: TRequestFileSystemEntityDialogState::Accept

virtual void Accept (const TFileSystemEntity & entity)

Interface Category:

API.

Purpose:

Accepts the specified file system entity. The default implementation does nothing.

Calling Context:

Called when the accept button is pressed. Called By TDialogView::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: TRequestFileSystemEntityDialogState::Cancel

virtual void Cancel ()

Interface Category:

API.

Purpose:

Cancels the dialog. The default implementation does nothing.

Calling Context:

Called when the cancel button is pressed. Called by TDialogView::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: TRequestFileSystemEntityDialogState::TRequestFileSystemEntityDialogState

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

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Copy constructor.

Calling Context:

  1. Called to create an object 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: TRequestFileSystemEntityDialogState::~TRequestFileSystemEntityDialogState

virtual ~ TRequestFileSystemEntityDialogState ()

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: TRequestFileSystemEntityDialogState::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: TRequestFileSystemEntityDialogState::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 from which the object streams itself.

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.