.TH "KArtsServer" kde3 "11 Jun 2005" "Version Version 3.4.1" "arts Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KArtsServer \- KArtsServer is a wrapper to conveniently get a reference to a SoundServer, and restart artsd when necessary, using the kcontrol settings.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kartsserver.h>\fP
.PP
Inherits \fBQObject\fP.
.PP
.SS "Signals"

.in +1c
.ti -1c
.RI "void \fBrestartedServer\fP (void)"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKArtsServer\fP (\fBQObject\fP *\fBparent\fP=0, const char *\fBname\fP=0)"
.br
.ti -1c
.RI "Arts::SoundServerV2 \fBserver\fP (void)"
.br
.in -1c
.SH "Detailed Description"
.PP 
KArtsServer is a wrapper to conveniently get a reference to a SoundServer, 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 \fBKDE\fP startup, but at the very least there will always be third party PlayObjects that will crash. So, this is necessary. 
.PP
Definition at line 37 of file kartsserver.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KArtsServer::KArtsServer (\fBQObject\fP * parent = \fC0\fP, const char * name = \fC0\fP)"
.PP
Create a new KArtsServer. 
.PP
Don't forget to create a \fBKArtsDispatcher\fP before using KArtsServer.
.PP
Definition at line 34 of file kartsserver.cpp.
.SH "Member Function Documentation"
.PP 
.SS "Arts::SoundServerV2 KArtsServer::server (void)"
.PP
Get a verified reference to the SoundServerV2, (re)starting artsd using the kcontrol-specified settings if necessary. 
.PP
If the soundserver has changed since you called this method the last time (meaning artsd was restarted) \fBrestartedServer()\fP will be emitted.
.PP
Definition at line 47 of file kartsserver.cpp.
.PP
References QFile::encodeName(), KProcess::normalExit(), KConfigBase::readBoolEntry(), KConfigBase::readEntry(), restartedServer(), KConfigBase::setGroup(), QStringList::split(), KProcess::start(), KSimpleConfig::sync(), and KConfigBase::writeEntry().
.SS "void KArtsServer::restartedServer (void)\fC [signal]\fP"
.PP
This is emitted when the soundserver has been restarted (by this KArtsServer instance or outside). 
.PP
It is not emitted automatically when the soundserver comes up but only after your code calls \fBserver()\fP.
.PP
Referenced by server().

.SH "Author"
.PP 
Generated automatically by Doxygen for arts Library from the source code.
