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


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

Inheritance diagram for KSamba\-Share:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=58pt]{classKSambaShare__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KSamba\-Share:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=88pt]{classKSambaShare__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$KSamba\-Share} ()
\item 
{\bf QString} {\bf smb\-Conf\-Path} () const 
\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static {\bf KSamba\-Share} $\ast$ {\bf instance} ()
\end{CompactItemize}


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

Singleton class, call {\bf instance()}{\rm (p.\,\pageref{classKSambaShare_e0})} to get an instance. 



Definition at line 34 of file ksambashare.h.

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


KSamba\-Share destructor. 

Do not call! The instance is destroyed automatically! 

Definition at line 189 of file ksambashare.cpp.

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


Returns the one and only instance of KSamba\-Share. 



Definition at line 227 of file ksambashare.cpp.\index{KSambaShare@{KSamba\-Share}!isDirectoryShared@{isDirectoryShared}}
\index{isDirectoryShared@{isDirectoryShared}!KSambaShare@{KSamba\-Share}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KSamba\-Share::is\-Directory\-Shared (const {\bf QString} \& {\em path}) const}\label{classKSambaShare_a0}


Whether or not the given path is shared by Samba. 

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


Definition at line 197 of file ksambashare.cpp.

References QString::find().\index{KSambaShare@{KSamba\-Share}!sharedDirectories@{sharedDirectories}}
\index{sharedDirectories@{sharedDirectories}!KSambaShare@{KSamba\-Share}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString\-List} KSamba\-Share::shared\-Directories () const}\label{classKSambaShare_a1}


Returns a list of all directories shared by Samba. 

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


Definition at line 205 of file ksambashare.cpp.\index{KSambaShare@{KSamba\-Share}!smbConfPath@{smbConfPath}}
\index{smbConfPath@{smbConfPath}!KSambaShare@{KSamba\-Share}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KSamba\-Share::smb\-Conf\-Path () const}\label{classKSambaShare_a3}


Returns the path to the used smb.conf file or null if no file was found. 



Definition at line 193 of file ksambashare.cpp.\index{KSambaShare@{KSamba\-Share}!changed@{changed}}
\index{changed@{changed}!KSambaShare@{KSamba\-Share}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KSamba\-Share::changed ()\hspace{0.3cm}{\tt  [signal]}}\label{classKSambaShare_l0}


Emitted when the smb.conf file has changed. 



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