set warning period, notifications.setwarningperiod, kPMRPCNotificationsSetWarningPeriod — Set the seconds to display warnings.
seconds : integer, default, range 2..60;
Set the seconds to display warnings.
set warning period adjusts how many seconds before a host affecting action is performed. It is not expected that the user will have the opportunity to affect the action, but instead the warning period allows the user to understand why an action is occuring.
seconds. Seconds to display warnings.
seconds is an integer. If
seconds is omitted, the default
3 is used.
seconds must be between
set warning period can be requested by any authenticated client.
Unauthenticated clients are authorized using the
uk.co.dssw.powermanager.notifications.setwarningperiod right. By default, only local processes belonging to
administrator can send a
set warning period request.
Example 96. C: Minimal notifications.setwarningperiod
CFMutableDictionaryRef myRequest = PMRequestCreate(kCFAllocatorDefault, kPMRPCNotificationsSetWarningPeriod);