DisableSuspend - is this how it is done?

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

Hi!

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");
    }
}

thanks for the help
Denes

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

iD4DBQE9gcwPaQToeq3jgogRAqcZAJY9yUywTCaMg1J5e0Gc8UYkhRKjAJ9lfRHO
+IdiFgWbLxrvowhNyzC6KQ==
=a7gx
-----END PGP SIGNATURE-----


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