Re: DisableSuspend - is this how it is done?
Arnaud Rouanet <[email protected]> Fri, 13 Sep 2002 11:39:21 -0500
| Newsgroups | gmane.comp.handhelds.zaurus.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Denes,
Good luck on getting an answer to a technical question on that
list! I'm afraid that very few people actually subscribed to it.
You should definitely consider asking your question on
ZaurusZone.
http://www.zauruszone.farplanet.net/invboard/index.php?act=SF&f=1
> So I am trying to disable and enable suspend, is this function missing
> something in your opinion? (I have no zaurus that's why I can't check, but
> I have reports saying it is not working correctly)
>
> static void disablesuspend(bool off)
> {
> if (off && !nosuspend)
> {
> nosuspend=TRUE;
>
> QCopEnvelope("QPE/System","setScreenSaverMode(int)")<<QPEApplication::DisableSuspend;
> printf("Disabled suspend \n");
> }
> else if (!off && nosuspend)
> {
> nosuspend=FALSE;
>
> QCopEnvelope("QPE/System","setScreenSaverMode(int)")<<QPEApplication::Enable;
> printf("Enabled suspend \n");
> }
> }
I don't know myself, but it looks very much like the code used in
Qtopia Media Player, so I think that's the idea. If I have some
time tonight, I will try to compile it on the Zaurus and see what
happens.
--
Arnaud Rouanet
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf