IOPMKeys.h

Overview

IOPMKeys.h defines C strings for use accessing power management data. Note that all of these C strings must be converted to CFStrings before use. You can wrap them with the CFSTR() macro, or create a CFStringRef (that you must later CFRelease()) using CFStringCreateWithCString()



Macro Definitions

kIOPMAutoPowerOn

Value for scheduled power on from off state.

kIOPMAutoRestart

Value for scheduled restart.

kIOPMAutoShutdown

Value for scheduled shutdown.

kIOPMAutoSleep

Value for scheduled sleep.

kIOPMAutoWake

Value for scheduled wake from sleep.

kIOPMAutoWakeOrPowerOn

Value for scheduled wake from sleep, or power on. The system will either wake OR power on, whichever is necessary.

kIOPMPowerEventAppNameKey

Key for the CFBundleIdentifier of the app that scheduled the power event. Value is a CFStringRef.

kIOPMPowerEventTimeKey

Key for the time of the scheduled power event. Value is a CFDateRef.

kIOPMPowerEventTypeKey

Key for the type of power event. Value is a CFStringRef, with the c-string value of one of the "kIOPMAuto" strings.


kIOPMAutoPowerOn


Value for scheduled power on from off state.

#define kIOPMAutoPowerOn "poweron" 


kIOPMAutoRestart


Value for scheduled restart.

#define kIOPMAutoRestart "restart" 


kIOPMAutoShutdown


Value for scheduled shutdown.


kIOPMAutoSleep


Value for scheduled sleep.

#define kIOPMAutoSleep "sleep" 


kIOPMAutoWake


Value for scheduled wake from sleep.

#define kIOPMAutoWake "wake" 


kIOPMAutoWakeOrPowerOn


Value for scheduled wake from sleep, or power on. The system will either wake OR power on, whichever is necessary.

#define kIOPMAutoWakeOrPowerOn "wakepoweron" 


kIOPMPowerEventAppNameKey


Key for the CFBundleIdentifier of the app that scheduled the power event. Value is a CFStringRef.

#define kIOPMPowerEventAppNameKey "scheduledby" 


kIOPMPowerEventTimeKey


Key for the time of the scheduled power event. Value is a CFDateRef.


kIOPMPowerEventTypeKey


Key for the type of power event. Value is a CFStringRef, with the c-string value of one of the "kIOPMAuto" strings.

#define kIOPMPowerEventTypeKey "eventtype" 

 

Did this document help you? Yes It's good, but... Not helpful...

 

Last Updated: 2009-10-15