\section{KMount\-Point Class Reference}
\label{classKMountPoint}\index{KMountPoint@{KMountPoint}}
The KMount\-Point class provides information about mounted and unmounted disks.  


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

Inheritance diagram for KMount\-Point:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=54pt]{classKMountPoint__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KMount\-Point:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=161pt]{classKMountPoint__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{CompactItemize}
\item 
typedef {\bf KShared\-Ptr}$<$ {\bf KMount\-Point} $>$ {\bf Ptr}\label{classKMountPoint_w0}

\item 
typedef {\bf QValue\-List}$<$ {\bf Ptr} $>$ {\bf List}\label{classKMountPoint_w1}

\item 
enum \{ {\bf Need\-Mount\-Options} =  1, 
{\bf Need\-Real\-Device\-Name} =  2
 \}
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf QString} {\bf mounted\-From} () const 
\item 
{\bf QString} {\bf real\-Device\-Name} () const 
\item 
{\bf QString} {\bf mount\-Point} () const 
\item 
{\bf QString} {\bf mount\-Type} () const 
\item 
{\bf QString\-List} {\bf mount\-Options} () const 
\item 
{\bf $\sim$KMount\-Point} ()
\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static {\bf KMount\-Point::List} {\bf possible\-Mount\-Points} (int info\-Needed=0)
\item 
static {\bf KMount\-Point::List} {\bf current\-Mount\-Points} (int info\-Needed=0)
\item 
static {\bf QString} {\bf dev\-Name\-From\-Options} (const {\bf QString\-List} \&options)
\end{CompactItemize}


\subsection{Detailed Description}
The KMount\-Point class provides information about mounted and unmounted disks. 

It provides a system independent interface to fstab.

\begin{Desc}
\item[Author:]Waldo Bastian $<${\tt bastian@kde.org}$>$ \end{Desc}
\begin{Desc}
\item[Since:]3.2 \end{Desc}




Definition at line 35 of file kmountpoint.h.

\subsection{Constructor \& Destructor Documentation}
\index{KMountPoint@{KMount\-Point}!~KMountPoint@{$\sim$KMountPoint}}
\index{~KMountPoint@{$\sim$KMountPoint}!KMountPoint@{KMount\-Point}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KMount\-Point::$\sim${\bf KMount\-Point} ()}\label{classKMountPoint_a5}


Destructor. 



Definition at line 103 of file kmountpoint.cpp.

\subsection{Member Function Documentation}
\index{KMountPoint@{KMount\-Point}!possibleMountPoints@{possibleMountPoints}}
\index{possibleMountPoints@{possibleMountPoints}!KMountPoint@{KMount\-Point}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KMount\-Point::List} KMount\-Point::possible\-Mount\-Points (int {\em info\-Needed} = {\tt 0})\hspace{0.3cm}{\tt  [static]}}\label{classKMountPoint_e0}


This function gives a list of all possible mountpoints. 

(fstab) \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em info\-Needed}]Flags that specify which additional information should be fetched. \end{description}
\end{Desc}


Definition at line 129 of file kmountpoint.cpp.

References QValue\-List::append(), QFile::close(), QFile::decode\-Name(), dev\-Name\-From\-Options(), QString::is\-Empty(), m\_\-device, m\_\-mounted\-From, m\_\-mount\-Options, m\_\-mount\-Point, m\_\-mount\-Type, QFile::open(), QText\-Stream::read\-Line(), KStandard\-Dirs::real\-Path(), QString\-List::split(), and QString::starts\-With().

Referenced by KDesktop\-File::read\-URL().\index{KMountPoint@{KMount\-Point}!currentMountPoints@{currentMountPoints}}
\index{currentMountPoints@{currentMountPoints}!KMountPoint@{KMount\-Point}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KMount\-Point::List} KMount\-Point::current\-Mount\-Points (int {\em info\-Needed} = {\tt 0})\hspace{0.3cm}{\tt  [static]}}\label{classKMountPoint_e1}


This function gives a list of all currently used mountpoints. 

(mtab) \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em info\-Needed}]Flags that specify which additional information should be fetched. \end{description}
\end{Desc}


Definition at line 223 of file kmountpoint.cpp.

References QValue\-List::append(), QFile::decode\-Name(), dev\-Name\-From\-Options(), m\_\-device, m\_\-mounted\-From, m\_\-mount\-Options, m\_\-mount\-Point, m\_\-mount\-Type, KStandard\-Dirs::real\-Path(), QString\-List::split(), and QString::starts\-With().\index{KMountPoint@{KMount\-Point}!mountedFrom@{mountedFrom}}
\index{mountedFrom@{mountedFrom}!KMountPoint@{KMount\-Point}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KMount\-Point::mounted\-From () const\hspace{0.3cm}{\tt  [inline]}}\label{classKMountPoint_a0}


Where this filesystem gets mounted from. 

This can refer to a device, a remote server or something else. 

Definition at line 62 of file kmountpoint.h.

Referenced by KDesktop\-File::read\-URL().\index{KMountPoint@{KMount\-Point}!realDeviceName@{realDeviceName}}
\index{realDeviceName@{realDeviceName}!KMountPoint@{KMount\-Point}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KMount\-Point::real\-Device\-Name () const\hspace{0.3cm}{\tt  [inline]}}\label{classKMountPoint_a1}


Canonical name of the device where the filesystem got mounted from. 

(Or empty, if not a device) Only available when the Need\-Real\-Device\-Name flag was set. 

Definition at line 69 of file kmountpoint.h.\index{KMountPoint@{KMount\-Point}!mountPoint@{mountPoint}}
\index{mountPoint@{mountPoint}!KMountPoint@{KMount\-Point}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KMount\-Point::mount\-Point () const\hspace{0.3cm}{\tt  [inline]}}\label{classKMountPoint_a2}


Path where the filesystem is mounted or can be mounted. 



Definition at line 74 of file kmountpoint.h.

Referenced by KDesktop\-File::read\-URL().\index{KMountPoint@{KMount\-Point}!mountType@{mountType}}
\index{mountType@{mountType}!KMountPoint@{KMount\-Point}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KMount\-Point::mount\-Type () const\hspace{0.3cm}{\tt  [inline]}}\label{classKMountPoint_a3}


Type of filesystem. 



Definition at line 79 of file kmountpoint.h.\index{KMountPoint@{KMount\-Point}!mountOptions@{mountOptions}}
\index{mountOptions@{mountOptions}!KMountPoint@{KMount\-Point}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString\-List} KMount\-Point::mount\-Options () const\hspace{0.3cm}{\tt  [inline]}}\label{classKMountPoint_a4}


Options used to mount the filesystem. 

Only available when the Need\-Mount\-Options flag was set. 

Definition at line 85 of file kmountpoint.h.\index{KMountPoint@{KMount\-Point}!devNameFromOptions@{devNameFromOptions}}
\index{devNameFromOptions@{devNameFromOptions}!KMountPoint@{KMount\-Point}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KMount\-Point::dev\-Name\-From\-Options (const {\bf QString\-List} \& {\em options})\hspace{0.3cm}{\tt  [static]}}\label{classKMountPoint_e2}


When using supermount, the device name is in the options field as dev=/my/device \begin{Desc}
\item[Since:]3.4. \end{Desc}




Definition at line 372 of file kmountpoint.cpp.

References QString::remove().

Referenced by current\-Mount\-Points(), and possible\-Mount\-Points().

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