KArtsDispatcher Class Reference
#include <kartsdispatcher.h>
Inherits TQObject.
Public Member Functions | |
KArtsDispatcher (TQObject *parent=0, const char *name=0) | |
~KArtsDispatcher () | |
Detailed Description
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.
Using KArtsDispatcher is especially useful in setups where another plugin might also already use an Arts::Dispatcher, for instance in konqueror.
{
// old code
Arts::QIOManager qiomanager;
Arts::Dispatcher dispatcher(&qiomanager);
Arts::SoundServer server = Arts::Reference("global:Arts_SoundServer");
server.play("/usr/share/sounds/pop.wav");
}
{
// new code
KArtsDispatcher dispatcher;
Arts::SoundServer server = Arts::Reference("global:Arts_SoundServer");
server.play("/usr/share/sounds/pop.wav");
}
KArtsDispatcher ensures that an instance of Arts::Dispatcher using an Arts::QIOManager exists.
Definition: kartsdispatcher.h:65
Definition at line 64 of file kartsdispatcher.h.
Constructor & Destructor Documentation
◆ KArtsDispatcher()
KArtsDispatcher::KArtsDispatcher | ( | TQObject * | parent = 0 , |
const char * | name = 0 |
||
) |
Constructor.
- Parameters
-
parent the parent Qt object name the Qt object name of this object
Definition at line 33 of file kartsdispatcher.cpp.
◆ ~KArtsDispatcher()
KArtsDispatcher::~KArtsDispatcher | ( | ) |
Destructor.
Definition at line 49 of file kartsdispatcher.cpp.
The documentation for this class was generated from the following files: