FileQuery

This class initiates a modal dialogue with the user to obtain a File. The user is presented with a dialogue box into which the user types the name of the File. The FileQuery provides a default filename and a filter indicating the type of filename desired. However, the filter is not enforced and is given only as a hint to the user.

[ Index | Source | Summary | Member Functions ]

Quick Index


Class Summary

class FileQuery
{

public:
FileQuery( char* path, char* filter );
FileQuery( char* path );
FileQuery( );
File AskUser();
~FileQuery();
}; // FileQuery

Back to the top of FileQuery


FileQuery( char* path, char* filter );

Construct a FileQuery object with the default file name and filter to be given as hints to the user when the dialogue is initiated.

   FileQuery( char* path, char* filter );    // prompt with path and filter

Back to the top of FileQuery


FileQuery( char* path );

Construct a FileQuery object with the default file name to be given as a hint to the user when the dialogue is initiated. The filter hint is a default value.

   FileQuery( char* path );                  // prompt with path default filter

Back to the top of FileQuery


FileQuery( );

Construct a FileQuery object with default values for both the filename and filter hints to be shown to the user when the dialogue is initiated.

   FileQuery( );                             // use all defaults

Back to the top of FileQuery


File AskUser();

Initiate the dialogue. This method does not return until the user has dismissed the dialogue box. The method returns a File object describing the result of the users action.

   File AskUser();                           // get file from user via dialog

Back to the top of FileQuery


~FileQuery();

Reclaim all resources associated with the FileQuery object when the object is destructed.

  ~FileQuery();

Back to the top of FileQuery


Member Functions

public:
File AskUser();

Back to the top of FileQuery


Generated from source by the Cocoon utilities on Thu Apr 02 12:40:33 1998 .

Report problems to jkotula@unimax.com