Author Topic: QCopEnvelope for power notification  (Read 2498 times)

boosalis

  • Jr. Member
  • **
  • Posts: 78
    • View Profile
    • http://
QCopEnvelope for power notification
« on: April 14, 2004, 07:17:28 pm »
Is there a QCopenvelope class for capturing power notifications on the 5600.  

I\'d like to know if the unit is being powered by the adapter and to be notified if the adapter is unplugged (plugged).  

I know I can check the /proc/apm file but if  I can get around writting my own polling of this file that would be great.

My application starts the network, and if the unit is plugged in then I want to keep  the network on, otherwise I want to only keep it on for a certain amount of time.

Thank you.
Zaurus 6000 with expansion jacket

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
QCopEnvelope for power notification
« Reply #1 on: April 14, 2004, 07:24:37 pm »
No qcopenvelope, but see the PowerStatus class in libqpe.
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

boosalis

  • Jr. Member
  • **
  • Posts: 78
    • View Profile
    • http://
QCopEnvelope for power notification
« Reply #2 on: April 14, 2004, 10:52:02 pm »
Thank you for the PowerStatus class information.  I\'ll look it over

-David
Zaurus 6000 with expansion jacket