\section{KRecent\-Dirs Class Reference}
\label{classKRecentDirs}\index{KRecentDirs@{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.  


{\tt \#include $<$krecentdirs.h$>$}

\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
{\bf QString\-List} {\bf list} (const  {\bf QString} \&file\-Class)
\begin{CompactList}\small\item\em Returns a list of directories associated with this file-class. \item\end{CompactList}\item 
{\bf QString} {\bf dir} (const  {\bf QString} \&file\-Class)
\begin{CompactList}\small\item\em Returns the most recently used directory accociated with this file-class. \item\end{CompactList}\item 
void {\bf add} (const  {\bf QString} \&file\-Class, const  {\bf QString} \&directory)
\begin{CompactList}\small\item\em Associates {\tt directory} with {\tt file\-Class}. \item\end{CompactList}\end{CompactItemize}


\subsection{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 \char`\"{}file-class\char`\"{}. 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 48 of file krecentdirs.h.

\subsection{Member Function Documentation}
\index{KRecentDirs@{KRecent\-Dirs}!list@{list}}
\index{list@{list}!KRecentDirs@{KRecent\-Dirs}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString\-List} KRecent\-Dirs::list (const {\bf QString} \& {\em file\-Class})\hspace{0.3cm}{\tt  [static]}}\label{classKRecentDirs_e0}


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.

References KStd\-Accel::key().

Referenced by dir().\index{KRecentDirs@{KRecent\-Dirs}!dir@{dir}}
\index{dir@{dir}!KRecentDirs@{KRecent\-Dirs}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KRecent\-Dirs::dir (const {\bf QString} \& {\em file\-Class})\hspace{0.3cm}{\tt  [static]}}\label{classKRecentDirs_e1}


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



Definition at line 80 of file krecentdirs.cpp.

References list().

Referenced by KFile\-Dialog::get\-Start\-URL().\index{KRecentDirs@{KRecent\-Dirs}!add@{add}}
\index{add@{add}!KRecentDirs@{KRecent\-Dirs}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KRecent\-Dirs::add (const {\bf QString} \& {\em file\-Class}, const {\bf QString} \& {\em directory})\hspace{0.3cm}{\tt  [static]}}\label{classKRecentDirs_e2}


Associates {\tt directory} with {\tt file\-Class}. 



Definition at line 86 of file krecentdirs.cpp.

References KStd\-Accel::key(), and KConfig\-Base::write\-Entry().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
krecentdirs.h\item 
krecentdirs.cpp\end{CompactItemize}
