Closed Bug 299366 Opened 19 years ago Closed 19 years ago

Reimplement alarm notifications

Categories

(Calendar :: Sunbird Only, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jminta, Assigned: mostafah)

References

Details

Attachments

(1 file, 1 obsolete file)

calAlarmService is currently announcing that alarms are firing, but no one is listening.
Attached patch Alarms patch (obsolete) — Splinter Review
As said in the code comments, this should ideally be a component, but for me using initAlarmMonitor() works fine for now. Note that jar.mn changes have NOT been tested. :-(
Attachment #187929 - Flags: first-review?(mvl)
(something went wrong with your patch, some newlines are missing) I'm not sure about this. I mean, the code to make it a service already is there. Can't we just copy/move the lightning service?
Yes, most of it can be copied, and I can try to do that once I get building working, oris the proper way to replace the following lightningAlarmMonitor.js lines with in the calendar code: 109 catman.addCategoryEntry("alarm-service-startup", "lightning", 110 "service," + this.myContractID, true, true); 111 catman.addCategoryEntry("alarm-service-shutdown", "lightning", 112 "service," + this.myContractID, true, true); and 127 myContractID: "@mozilla.org/lightning/alarm-monitor;1", I don't know these naming conventions, etc. :-(
pav, can we make the service more general, and make the uri of the dialog be point to something different for calendar vs lighting if we ever want the alarms to be different?
(In reply to comment #4) > if we ever want the alarms to be different? Right now it'd already be better if we could put calendar-alarm-dialog.css in skin for calendar/sunbird, so I'll second this.
Attached patch better patchSplinter Review
Done properly as a component. The component stuff is copied straight from lightning (with GUID, etc changes). The actual alarm observer has some changes to help with sunbird's extra options. No email alarms yet.
Attachment #187929 - Attachment is obsolete: true
Attachment #188430 - Flags: first-review?(mvl)
Comment on attachment 188430 [details] [diff] [review] better patch r=mvl, except the Makefile.in part. That is not needed (it is obsolete)
Attachment #188430 - Flags: first-review?(mvl) → first-review+
checked in
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Attachment #187929 - Flags: first-review?(mvl)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: