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.
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.
Examples
Example 101. C: scheduler.enabled
CFMutableDictionaryRef myRequest = PMRequestCreate(kCFAllocatorDefault,kPMRPCSchedulerEnabled);
Example 102. Objective-C: scheduler.enabled
DSSWPMRequest* myRequest = [DSSWPMRequest requestWithRequest:kPMRPCSchedulerEnabled];
Example 103. AppleScript: scheduler.enabled
tell application "Power Manager Scripting"
set myResult to enabled of Scheduler
end tell