Name
set notify period, notifications.setnotifyperiod, kPMRPCNotificationsSetNotifyPeriod — Sets seconds before an Event the user is notified.
Synopsis
void notifications.setnotifyperiod( |
seconds); |
|
seconds : integer, default, range 0..86400;
Description
Sets seconds before an Event the user is notified.
NotifyPeriod is the number of seconds before an Event that a notification should be displayed to active users.
Changing the notify period does not affect the existing queued triggers in current.
Parameters
seconds. Seconds to display notifications. seconds is an integer. If seconds is omitted, the default 900 is used. seconds must be between 0 and 86400, inclusive.
Security
set notify period can be requested by any authenticated client.
Unauthenticated clients are authorized using the uk.co.dssw.powermanager.notifications.setnotifyperiod right. By default, only local processes belonging to administrator can send a set notify period request.
Examples
Example 91. C: Minimal notifications.setnotifyperiod
CFMutableDictionaryRef myRequest = PMRequestCreate(kCFAllocatorDefault, kPMRPCNotificationsSetNotifyPeriod);