mirror of
https://github.com/gnustep/libs-ec.git
synced 2025-02-15 16:11:01 +00:00
More alarm info in event dictionary
This commit is contained in:
parent
a34932cac4
commit
daa3095872
1 changed files with 14 additions and 0 deletions
14
EcAlerter.m
14
EcAlerter.m
|
@ -1549,6 +1549,20 @@ replaceFields(NSDictionary *fields, NSString *template)
|
|||
[m setObject: event->text forKey: @"Message"];
|
||||
[m setObject: event->text forKey: @"Original"];
|
||||
|
||||
if (alarm)
|
||||
{
|
||||
[m setObject: [alarm moComponent]
|
||||
forKey: @"AlarmComponent"];
|
||||
[m setObject: [EcAlarm stringFromProbableCause: [alarm probableCause]]
|
||||
forKey: @"AlarmProbableCause"];
|
||||
[m setObject: [alarm specificProblem]
|
||||
forKey: @"AlarmSpecificProblem"];
|
||||
[m setObject: [alarm proposedRepairAction]
|
||||
forKey: @"AlarmProposedRepairAction"];
|
||||
[m setObject: [alarm additionalText]
|
||||
forKey: @"AlarmAdditionalText"];
|
||||
}
|
||||
|
||||
if (YES == event->isAlarm && NO == quiet)
|
||||
{
|
||||
NSLog(@"Handling %@ ... %@", [event alarmText], alarm);
|
||||
|
|
Loading…
Reference in a new issue