Enumerations



Power

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.

Constants

NameDescription
kAllOffThe power state for an all-off condition.
kElectronicsOnThe power state for the electronics on, but the media off.
kAllOnThe power state for the electronics and media on.
kNumberOfPowerStatesThe maximum enum value.

© 2000 Apple Computer, Inc. — (Last Updated 2/23/2000)