24 #include "kartsfloatwatch.moc"
29 class KArtsFloatWatchPrivate {
31 KFloatWatchProxy proxy;
36 class KFloatWatchProxy_impl :
public KFloatWatchProxy_skel {
42 float value() {
return 0.0; }
43 void value(
float newValue) { watch->change(newValue); }
49 TQObject *parent,
const char *name) : TQObject(parent, name)
51 d =
new KArtsFloatWatchPrivate();
52 d->proxy = KFloatWatchProxy::_from_base(
new KFloatWatchProxy_impl(
this));
53 Arts::connect(
object, stream, d->proxy,
"value");
61 void KArtsFloatWatch::change(
float newValue)
KArtsFloatWatch offers an easy way to watch aRts streams via Qt signals.
void valueChanged(float newValue)
this signal will be emitted with values of the aRts stream
KArtsFloatWatch(Arts::Object object, const char *stream, TQObject *parent=0, const char *name=0)
Constructor.
~KArtsFloatWatch()
Destructor.