[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: KAudioPlayer::play()
From:       Arnold Krille <kde () arnoldarts ! de>
Date:       2003-03-25 19:44:18
[Download RAW message or body]

One addition:

<snip kdemultimedia/arts/tools/main.cpp>
void ArtsStatusView::updateStatus()
{
·       long seconds= server.secondsUntilSuspend();
·       if (seconds<0)
·       ·       suspendLabel->setText(i18n("The aRts sound daemon will not 
autosuspend right\n"
·       ·       ·       ·       ·       ·       ·       ·         "now since 
there are active modules."));
·       else if (seconds==0)
·       ·       suspendLabel->setText(i18n("The aRts sound daemon is 
suspended. Legacy\n "
·       ·       ·       ·       ·       ·       ·       ·         
"applications can use the sound card now."));
·       else
·       ·       suspendLabel->setText(i18n("Autosuspend will happen in %1 
seconds.").
·       ·       ·       ·       ·       ·       ·        arg(seconds));
·       suspendButton->setEnabled(seconds>0);
}
</snip>

Thats how suspend-status is checked in artscontrol. If you have a reference to 
a KArtsServer you can get a reference to a server with KArtsServer::server() 
(note: its not a static method).

Arnold
[Attachment #3 (application/pgp-signature)]
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic