Name

enabled, scheduler.enabled, kPMRPCSchedulerEnabled, kPMObserveSchedulerEnabled — Can events be triggered.

Synopsis

boolean scheduler.enabled( );

Description

Can events be triggered.

If true, events can be triggered by their respective triggers. If false, no event will be triggered, regardless of triggers firing.

Use enabled to effectively enable and disable the Power Manager Engine.

When enabled is set to false, the engine will continue to respond to requests and return information to clients. enabled only affects the triggering of events.

Returns

enabled is a boolean. If enabled is omitted, the default true is used.

Observable

Changes to enabled can be observed, without polling, using scheduler.enabled, kPMObserveSchedulerEnabled.

Security

enabled can be requested by any authenticated client.

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

Availablility

pmdctl

Examples

Example 107. C: scheduler.enabled

CFMutableDictionaryRef myRequest = PMRequestCreate(kCFAllocatorDefault,kPMRPCSchedulerEnabled);


Example 108. Objective-C: scheduler.enabled

DSSWPMRequest* myRequest = [DSSWPMRequest requestWithRequest:kPMRPCSchedulerEnabled];


Example 109. AppleScript: scheduler.enabled

tell application "Power Manager Scripting"
    set myResult to enabled of Scheduler
end tell


Example 110. Shell: scheduler.enabled

./pmctl scheduler.enabled