• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kio

KRecentDirs Class Reference

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...

#include <krecentdirs.h>

List of all members.


Static Public Member Functions

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

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.

Definition at line 50 of file krecentdirs.h.


Member Function Documentation

void KRecentDirs::add ( const QString &  fileClass,
const QString &  directory 
) [static]

Associates directory with fileClass.

Definition at line 86 of file krecentdirs.cpp.

QString KRecentDirs::dir ( const QString &  fileClass  )  [static]

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

Definition at line 80 of file krecentdirs.cpp.

QStringList KRecentDirs::list ( const QString &  fileClass  )  [static]

Returns a list of directories associated with this file-class.

The most recently used directory is at the front of the list.

Definition at line 72 of file krecentdirs.cpp.


The documentation for this class was generated from the following files:
  • krecentdirs.h
  • krecentdirs.cpp

kio

Skip menu "kio"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal