\section{KArts\-Server Class Reference}
\label{classKArtsServer}\index{KArtsServer@{KArtsServer}}
KArts\-Server is a wrapper to conveniently get a reference to a Sound\-Server, and restart artsd when necessary, using the kcontrol settings.  


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

Inheritance diagram for KArts\-Server:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=53pt]{classKArtsServer__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KArts\-Server:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=53pt]{classKArtsServer__coll__graph}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf restarted\-Server} (void)
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KArts\-Server} ({\bf QObject} $\ast${\bf parent}=0, const char $\ast${\bf name}=0)
\item 
Arts::Sound\-Server\-V2 {\bf server} (void)
\end{CompactItemize}


\subsection{Detailed Description}
KArts\-Server is a wrapper to conveniently get a reference to a Sound\-Server, and restart artsd when necessary, using the kcontrol settings. 

Of course we'd rather that artsd never crashed, and that all users start artsd on {\bf KDE} startup, but at the very least there will always be third party Play\-Objects that will crash. So, this is necessary. 



Definition at line 37 of file kartsserver.h.

\subsection{Constructor \& Destructor Documentation}
\index{KArtsServer@{KArts\-Server}!KArtsServer@{KArtsServer}}
\index{KArtsServer@{KArtsServer}!KArtsServer@{KArts\-Server}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KArts\-Server::KArts\-Server ({\bf QObject} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKArtsServer_a0}


Create a new KArts\-Server. 

Don't forget to create a {\bf KArts\-Dispatcher}{\rm (p.\,\pageref{classKArtsDispatcher})} before using KArts\-Server.

Definition at line 34 of file kartsserver.cpp.

\subsection{Member Function Documentation}
\index{KArtsServer@{KArts\-Server}!server@{server}}
\index{server@{server}!KArtsServer@{KArts\-Server}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Arts::Sound\-Server\-V2 KArts\-Server::server (void)}\label{classKArtsServer_a2}


Get a verified reference to the Sound\-Server\-V2, (re)starting artsd using the kcontrol-specified settings if necessary. 

If the soundserver has changed since you called this method the last time (meaning artsd was restarted) {\bf restarted\-Server()}{\rm (p.\,\pageref{classKArtsServer_l0})} will be emitted.

Definition at line 47 of file kartsserver.cpp.

References QFile::encode\-Name(), KProcess::normal\-Exit(), KConfig\-Base::read\-Bool\-Entry(), KConfig\-Base::read\-Entry(), restarted\-Server(), KConfig\-Base::set\-Group(), QString\-List::split(), KProcess::start(), KSimple\-Config::sync(), and KConfig\-Base::write\-Entry().\index{KArtsServer@{KArts\-Server}!restartedServer@{restartedServer}}
\index{restartedServer@{restartedServer}!KArtsServer@{KArts\-Server}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KArts\-Server::restarted\-Server (void)\hspace{0.3cm}{\tt  [signal]}}\label{classKArtsServer_l0}


This is emitted when the soundserver has been restarted (by this KArts\-Server instance or outside). 

It is not emitted automatically when the soundserver comes up but only after your code calls {\bf server()}{\rm (p.\,\pageref{classKArtsServer_a2})}.

Referenced by server().

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