\section{KAuto\-Mount Class Reference}
\label{classKAutoMount}\index{KAutoMount@{KAutoMount}}
This class implements synchronous mounting of devices, as well as showing a file-manager window after mounting a device, optionally. This class implements synchronous mounting of devices.  


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

Inheritance diagram for KAuto\-Mount:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=57pt]{classKAutoMount__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KAuto\-Mount:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=105pt]{classKAutoMount__coll__graph}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf finished} ()
\begin{CompactList}\small\item\em Emitted when the directory has been mounted. \item\end{CompactList}\item 
void {\bf error} ()
\begin{CompactList}\small\item\em Emitted in case the directory could not been mounted. \item\end{CompactList}\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KAuto\-Mount} (bool readonly, const  {\bf QString} \&format, const  {\bf QString} \&device, const  {\bf QString} \&mountpoint, const  {\bf QString} \&desktop\-File, bool show\_\-filemanager\_\-window=true)
\begin{CompactList}\small\item\em Mounts a device. \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
void {\bf slot\-Result} ({\bf KIO::Job} $\ast$)\label{classKAutoMount_j0}

\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
{\bf QString} {\bf m\_\-str\-Device}\label{classKAutoMount_p0}

\item 
bool {\bf m\_\-b\-Show\-Filemanager\-Window}\label{classKAutoMount_p1}

\item 
{\bf QString} {\bf m\_\-desktop\-File}\label{classKAutoMount_p2}

\end{CompactItemize}


\subsection{Detailed Description}
This class implements synchronous mounting of devices, as well as showing a file-manager window after mounting a device, optionally. This class implements synchronous mounting of devices. 

It is a wrapper around the asychronous {\bf KIO::special}{\rm (p.\,\pageref{namespaceKIO_a199})}() call for mount, used by {\bf KMime\-Type}{\rm (p.\,\pageref{classKMimeType})}.



Definition at line 36 of file kautomount.h.

\subsection{Constructor \& Destructor Documentation}
\index{KAutoMount@{KAuto\-Mount}!KAutoMount@{KAutoMount}}
\index{KAutoMount@{KAutoMount}!KAutoMount@{KAuto\-Mount}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KAuto\-Mount::KAuto\-Mount (bool {\em readonly}, const {\bf QString} \& {\em format}, const {\bf QString} \& {\em device}, const {\bf QString} \& {\em mountpoint}, const {\bf QString} \& {\em desktop\-File}, bool {\em show\_\-filemanager\_\-window} = true)}\label{classKAutoMount_a0}


Mounts a device. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em readonly}]if true, the device is mounted read-only \item[{\em format}]the file system (e.g. vfat, ext2...) [optional, fstab is used otherwise] \item[{\em device}]the path to the device (e.g. /dev/fd0) \item[{\em mountpoint}]the directory where to mount the device [optional, fstab is used otherwise] \item[{\em desktop\-File}]the file the user clicked on - to notify {\bf KDir\-Watch}{\rm (p.\,\pageref{classKDirWatch})} of the fact that it should emit file\-Dirty for it (to have the icon change) \item[{\em show\_\-filemanager\_\-window}]if true, a file-manager window for that mountpoint is shown after the mount, if successful. \end{description}
\end{Desc}


Definition at line 32 of file kautomount.cpp.

References QString::ascii(), QObject::connect(), and KIO::mount().

\subsection{Member Function Documentation}
\index{KAutoMount@{KAuto\-Mount}!finished@{finished}}
\index{finished@{finished}!KAutoMount@{KAuto\-Mount}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KAuto\-Mount::finished ()\hspace{0.3cm}{\tt  [signal]}}\label{classKAutoMount_l0}


Emitted when the directory has been mounted. 

\index{KAutoMount@{KAuto\-Mount}!error@{error}}
\index{error@{error}!KAutoMount@{KAuto\-Mount}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KAuto\-Mount::error ()\hspace{0.3cm}{\tt  [signal]}}\label{classKAutoMount_l1}


Emitted in case the directory could not been mounted. 



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