\section{KNFSShare Class Reference}
\label{classKNFSShare}\index{KNFSShare@{KNFSShare}}
Similar functionality like {\bf KFile\-Share}{\rm (p.\,\pageref{classKFileShare})}, but works only for NFS and do not need any suid script.  


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

Inheritance diagram for KNFSShare:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=52pt]{classKNFSShare__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KNFSShare:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=82pt]{classKNFSShare__coll__graph}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf changed} ()
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
bool {\bf is\-Directory\-Shared} (const {\bf QString} \&path) const 
\item 
{\bf QString\-List} {\bf shared\-Directories} () const 
\item 
virtual {\bf $\sim$KNFSShare} ()
\item 
{\bf QString} {\bf exports\-Path} () const 
\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static {\bf KNFSShare} $\ast$ {\bf instance} ()
\end{CompactItemize}


\subsection{Detailed Description}
Similar functionality like {\bf KFile\-Share}{\rm (p.\,\pageref{classKFileShare})}, but works only for NFS and do not need any suid script. 

It parses the /etc/exports file to get its information. Singleton class, call {\bf instance()}{\rm (p.\,\pageref{classKNFSShare_e0})} to get an instance. 



Definition at line 35 of file knfsshare.h.

\subsection{Constructor \& Destructor Documentation}
\index{KNFSShare@{KNFSShare}!~KNFSShare@{$\sim$KNFSShare}}
\index{~KNFSShare@{$\sim$KNFSShare}!KNFSShare@{KNFSShare}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KNFSShare::$\sim${\bf KNFSShare} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKNFSShare_a2}


KNFSShare destructor. 

Do not call! The instance is destroyed automatically! 

Definition at line 170 of file knfsshare.cpp.

\subsection{Member Function Documentation}
\index{KNFSShare@{KNFSShare}!instance@{instance}}
\index{instance@{instance}!KNFSShare@{KNFSShare}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KNFSShare} $\ast$ KNFSShare::instance ()\hspace{0.3cm}{\tt  [static]}}\label{classKNFSShare_e0}


Returns the one and only instance of KNFSShare. 



Definition at line 208 of file knfsshare.cpp.

Referenced by KFile\-Item::overlays().\index{KNFSShare@{KNFSShare}!isDirectoryShared@{isDirectoryShared}}
\index{isDirectoryShared@{isDirectoryShared}!KNFSShare@{KNFSShare}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KNFSShare::is\-Directory\-Shared (const {\bf QString} \& {\em path}) const}\label{classKNFSShare_a0}


Wether or not the given path is shared by NFS. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em path}]the path to check if it is shared by NFS. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]wether the given path is shared by NFS. \end{Desc}


Definition at line 175 of file knfsshare.cpp.

References QString::find().

Referenced by KFile\-Item::overlays().\index{KNFSShare@{KNFSShare}!sharedDirectories@{sharedDirectories}}
\index{sharedDirectories@{sharedDirectories}!KNFSShare@{KNFSShare}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString\-List} KNFSShare::shared\-Directories () const}\label{classKNFSShare_a1}


Returns a list of all directories shared by NFS. 

The resulting list is not sorted. \begin{Desc}
\item[Returns:]a list of all directories shared by NFS. \end{Desc}


Definition at line 183 of file knfsshare.cpp.\index{KNFSShare@{KNFSShare}!exportsPath@{exportsPath}}
\index{exportsPath@{exportsPath}!KNFSShare@{KNFSShare}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KNFSShare::exports\-Path () const}\label{classKNFSShare_a3}


Returns the path to the used exports file, or null if no exports file was found. 



Definition at line 192 of file knfsshare.cpp.\index{KNFSShare@{KNFSShare}!changed@{changed}}
\index{changed@{changed}!KNFSShare@{KNFSShare}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KNFSShare::changed ()\hspace{0.3cm}{\tt  [signal]}}\label{classKNFSShare_l0}


Emitted when the /etc/exports file has changed. 



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