enum { /* electronics mechanical */ kAllOff = 0, /* OFF OFF */ kElectronicsOn = 1, /* ON OFF */ kAllOn = 2, /* ON ON */ kNumberOfPowerStates = 3 };
We define and understand three basic, generic power states. A subclass may change the power management logic, but all power-management routines should be examined if anything is changed. The only routines that deal directly with these values are directly related to power management. All other functions merely ask for and pass along power state values.
Name Description kAllOff The power state for an all-off condition. kElectronicsOn The power state for the electronics on, but the media off. kAllOn The power state for the electronics and media on. kNumberOfPowerStates The maximum enum value.
© 2000 Apple Computer, Inc. (Last Updated 2/23/2000)