class KArtsFloatWatch

KArtsFloatWatch offers an easy way to watch aRts streams via Qt signals. More...

Definition#include <arts/kartsfloatwatch.h>
InheritsQObject (unknown) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Signals


Detailed Description

KArtsFloatWatch offers an easy way to watch aRts streams via Qt signals. For instance, if you have an object of the following type:


 interface StereoVolumeControl : StereoEffect {
   attribute float scaleFactor;
   readonly attribute float currentVolumeLeft;
   readonly attribute float currentVolumeRight;
 };

and you want to get notified when scaleFactor changes, you could do it like this:


   StereoVolumeControl stereoVolumeControl = ...;
   KArtsFloatWatch *w = new KArtsFloatWatch(stereoVolumeControl, "scaleFactor_changed", this);
   connect(w, SIGNAL(valueChanged(float)), this, SLOT(setValue(float)));

 KArtsFloatWatch (Arts::Object object, const char *stream, QObject *parent = 0, const char *name = 0)

KArtsFloatWatch

Constructor.

Parameters:
objectthe aRts object that should be watched
streamthe aRts stream that should be watched
parentthe parent Qt object
namethe Qt object name of this object

 ~KArtsFloatWatch ()

~KArtsFloatWatch

Destructor

void  valueChanged (float newValue)

valueChanged

[signal]

this signal will be emitted with values of the aRts stream


Generated by: stefan on stefan on Sat Jun 2 23:13:28 2001, using kdoc 2.0a53.