Re: DisableSuspend - is this how it is done?

Balatoni Denes <[email protected]> Fri, 13 Sep 2002 19:19:55 +0200
Newsgroups gmane.comp.handhelds.zaurus.devel
Organization dolOps
Message-ID <0209131919551C.01016@denes>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!
Thanks a lot, I found what I waas looking for in the forum you gave a link to!
(at 
http://www.zauruszone.farplanet.net/invboard/index.php?act=ST&f=1&t=61&hl=suspend&s=4afa2dbcfa396f3d6b705a035f9d4839)

So it appears to me the piece of code is correct. It was infact "isnpired" my 
the media player, I just didn't know whether there was something else left 
out.

Thanks again
Denes

2002. szeptember 13. 18:39 dĂĄtummal Arnaud Rouanet ezekkel a bĂślcs 
gondolatokkal ajĂĄndĂŠkozott meg:
$$$ 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::Disabl
eSuspend; $$$ >       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.
$$$

- -- 
"Use the source Luke !"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9gh47aQToeq3jgogRAoC8AJwMDiMhACxpuotcn2WQWJ9dyrtLQwCgghi1
aOue3U4a4tt6nJxBp6DtDCk=
=9hTD
-----END PGP SIGNATURE-----


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf