class KRecentDirs

# class KRecentDirs | The goal of this class is to make sure that, when the user needs to specify a file via the file selection dialog, this dialog will start in the directory most likely to contain the desired files. More...
Definition | `#include <krecentdirs.h>`
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Static Methods

- static QStringList list (const QString &fileClass)
- static QString dir (const QString &fileClass)
- static void add (const QString &fileClass, const QString &directory)

## Detailed Description

The goal of this class is to make sure that, when the user needs to specify a file via the file selection dialog, this dialog will start in the directory most likely to contain the desired files.

This works as follows: Each time the file selection dialog is shown, the programmer can specify a "file-class". The file-dialog will then start with the directory associated with this file-class. When the dialog closes, the directory currently shown in the file-dialog will be associated with the file-class.

A file-class can either start with ':' or with '::'. If it starts with a single ':' the file-class is specific to the current application. If the file-class starts with '::' it is global to all applications.

QStringList list (const QString &fileClass) | ### list

[static]

Returns a list of directories associated with this file-class. The most recently used directory is at the front of the list.

QString dir (const QString &fileClass) | ### dir

[static]

Returns the most recently used directory accociated with this file-class.

void add (const QString &fileClass, const QString &directory) | ### add

[static]

Associates `directory` with `fileClass`

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:37:17 2003, using kdoc 2.0a54.