\section{KFile\-Share Class Reference}
\label{classKFileShare}\index{KFileShare@{KFileShare}}
Common functionality for the file sharing (communication with the backend) \begin{Desc}
\item[Since:]3.1. \end{Desc}
 


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

Collaboration diagram for KFile\-Share:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=67pt]{classKFileShare__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{CompactItemize}
\item 
enum {\bf Authorization} \{ {\bf Not\-Initialized}, 
{\bf Error\-Not\-Found}, 
{\bf Authorized}, 
{\bf User\-Not\-Allowed}
 \}
\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
void {\bf read\-Config} ()
\begin{CompactList}\small\item\em Called on application startup, to initialize authorization and share\-List Can also be called later, when the configuration changes. \item\end{CompactList}\item 
bool {\bf is\-Directory\-Shared} (const  {\bf QString} \&path)
\begin{CompactList}\small\item\em Call this to know if a directory is currently shared. \item\end{CompactList}\item 
Authorization {\bf authorization} ()
\begin{CompactList}\small\item\em Call this to know if the current user is authorized to share directories. \item\end{CompactList}\item 
{\bf QString} {\bf find\-Exe} (const  char $\ast$exe\-Name)\label{classKFileShare_e3}

\item 
bool {\bf set\-Shared} (const  {\bf QString} \&path, bool shared)\label{classKFileShare_e4}

\end{CompactItemize}


\subsection{Detailed Description}
Common functionality for the file sharing (communication with the backend) \begin{Desc}
\item[Since:]3.1. \end{Desc}




Definition at line 49 of file kfileshare.h.

\subsection{Member Function Documentation}
\index{KFileShare@{KFile\-Share}!readConfig@{readConfig}}
\index{readConfig@{readConfig}!KFileShare@{KFile\-Share}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Share::read\-Config ()\hspace{0.3cm}{\tt  [static]}}\label{classKFileShare_e0}


Called on application startup, to initialize authorization and share\-List Can also be called later, when the configuration changes. 



Definition at line 73 of file kfileshare.cpp.

References KProcess::Block, KProcess::exit\-Status(), KProc\-IO::fgets(), QString::is\-Empty(), KProcess::normal\-Exit(), and KProc\-IO::start().

Referenced by KFile\-Share\-Props\-Plugin::apply\-Changes(), authorization(), and is\-Directory\-Shared().\index{KFileShare@{KFile\-Share}!isDirectoryShared@{isDirectoryShared}}
\index{isDirectoryShared@{isDirectoryShared}!KFileShare@{KFile\-Share}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KFile\-Share::is\-Directory\-Shared (const {\bf QString} \& {\em path})\hspace{0.3cm}{\tt  [static]}}\label{classKFileShare_e1}


Call this to know if a directory is currently shared. 



Definition at line 129 of file kfileshare.cpp.

References QString::length(), and read\-Config().

Referenced by KFile\-Item::overlays().\index{KFileShare@{KFile\-Share}!authorization@{authorization}}
\index{authorization@{authorization}!KFileShare@{KFile\-Share}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KFile\-Share::Authorization KFile\-Share::authorization ()\hspace{0.3cm}{\tt  [static]}}\label{classKFileShare_e2}


Call this to know if the current user is authorized to share directories. 



Definition at line 141 of file kfileshare.cpp.

References read\-Config().

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