Name

available, ondemand.available, kPMRPCOnDemandAvailable, kPMObserveOnDemandAvailable — Available on demand events.

Synopsis

array of event structures ondemand.available( );

Description

Available on demand events.

events supporting the on demand behaviour and are available to perform.

To appear in this list an event must support on demand. The event must be immediately available to perform. The scheduler must be enabled; thus able to actually perform.

Returns

available is an array of event structures. Each item in available must be unique.

Observable

Changes to available can be observed, without polling, using ondemand.available, kPMObserveOnDemandAvailable.

Security

available can be requested by any authenticated client.

Unauthenticated clients are authorized using the uk.co.dssw.powermanager.ondemand.available right. By default, any local process can request available.

Availablility

pmdctl

Examples

Example 98. C: ondemand.available

CFMutableDictionaryRef myRequest = PMRequestCreate(kCFAllocatorDefault,kPMRPCOnDemandAvailable);


Example 99. Objective-C: ondemand.available

DSSWPMRequest* myRequest = [DSSWPMRequest requestWithRequest:kPMRPCOnDemandAvailable];


Example 100. AppleScript: ondemand.available

tell application "Power Manager Scripting"
    set myResult to available of On Demand
end tell


Example 101. Shell: ondemand.available

./pmctl ondemand.available