Name
set warning period, notifications.setwarningperiod, kPMRPCNotificationsSetWarningPeriod — Set the seconds to display warnings.
Synopsis
void notifications.setwarningperiod( |
seconds); |
|
seconds : integer, default, range 2..60;
Description
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.
Parameters
seconds. Seconds to display warnings. seconds is an integer. If seconds is omitted, the default 3 is used. seconds must be between 2 and 60, inclusive.
Security
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.
Examples
Example 90. C: Minimal notifications.setwarningperiod
CFMutableDictionaryRef myRequest = PMRequestCreate(kCFAllocatorDefault, kPMRPCNotificationsSetWarningPeriod);