discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Application Controller/ Notifications For Power Managment


From: BTS
Subject: Application Controller/ Notifications For Power Managment
Date: Wed, 7 Sep 2011 10:17:56 -0700 (PDT)

Just some suggestions for app controller messages, it is written lasily in
pseudo code, my objective-c is pretty weak at the moment.

AppController.m

/*These methods are called if the system battery is low on laptops, or the
power has failed and a UPS has kicked in.  
*/

//This method tells the notification center that the program wishes to be
notified about power events
[NSNotificationCenter RegisterForPMNotifications With:Self]

//Called if power is being drawn from UPS
//or if the laptop battery has less time than is defined in NSDefaults
Global Domain MayLosePowerThreshold.
-(void) SystemMayLosePower()
//Called if all UPSs are deemed near dead
//or if the system has requested time to preform safe power loss
-(void) SystemWillLosePower()
-- 
View this message in context: 
http://old.nabble.com/Application-Controller--Notifications-For-Power-Managment-tp32417946p32417946.html
Sent from the GNUstep - General mailing list archive at Nabble.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]