.PP
.TH "KArtsDispatcher" kde3 "11 Jun 2005" "Version Version 3.4.1" "arts Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KArtsDispatcher \- KArtsDispatcher ensures that an instance of Arts::Dispatcher using an Arts::QIOManager exists.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kartsdispatcher.h>\fP
.PP
Inherits \fBQObject\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKArtsDispatcher\fP (\fBQObject\fP *\fBparent\fP=0, const char *\fBname\fP=0)"
.br
.ti -1c
.RI "\fB~KArtsDispatcher\fP ()"
.br
.in -1c
.SH "Detailed Description"
.PP 
KArtsDispatcher ensures that an instance of Arts::Dispatcher using an Arts::QIOManager exists. 

When the last KArtsDispatcher is deleted, the Arts::Dispatcher is released as well.
.PP
Using KArtsDispatcher is especially useful in setups where another plugin might also already use an Arts::Dispatcher, for instance in konqueror.
.PP
.PP
.nf
 {
   // old code
   Arts::QIOManager qiomanager;
   Arts::Dispatcher dispatcher(&qiomanager);

   Arts::SoundServer server = Arts::Reference('global:Arts_SoundServer');
   server.play('/usr/share/sounds/pop.wav');
 }
.fi
.PP
.PP
.PP
.nf
 {
   // new code
   KArtsDispatcher dispatcher;

   Arts::SoundServer server = Arts::Reference('global:Arts_SoundServer');
   server.play('/usr/share/sounds/pop.wav');
 }
.fi
.PP
 
.PP
Definition at line 64 of file kartsdispatcher.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KArtsDispatcher::KArtsDispatcher (\fBQObject\fP * parent = \fC0\fP, const char * name = \fC0\fP)"
.PP
Constructor. 
.PP
\fBParameters:\fP
.RS 4
\fIparent\fP the parent \fBQt\fP object 
.br
\fIname\fP the \fBQt\fP object name of this object
.RE
.PP

.PP
Definition at line 33 of file kartsdispatcher.cc.
.PP
References endl(), and kdWarning().
.SS "KArtsDispatcher::~\fBKArtsDispatcher\fP ()"
.PP
Destructor. 
.PP
Definition at line 49 of file kartsdispatcher.cc.

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