Closed
Bug 299366
Opened 19 years ago
Closed 19 years ago
Reimplement alarm notifications
Categories
(Calendar :: Sunbird Only, defect)
Calendar
Sunbird Only
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jminta, Assigned: mostafah)
References
Details
Attachments
(1 file, 1 obsolete file)
13.04 KB,
patch
|
mvl
:
first-review+
|
Details | Diff | Splinter Review |
calAlarmService is currently announcing that alarms are firing, but no one is
listening.
Reporter | ||
Comment 1•19 years ago
|
||
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)
Comment 2•19 years ago
|
||
(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?
Reporter | ||
Comment 3•19 years ago
|
||
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. :-(
Comment 4•19 years ago
|
||
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?
Reporter | ||
Comment 5•19 years ago
|
||
(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.
Reporter | ||
Comment 6•19 years ago
|
||
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 7•19 years ago
|
||
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+
Comment 8•19 years ago
|
||
checked in
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Updated•19 years ago
|
Attachment #187929 -
Flags: first-review?(mvl)
You need to log in
before you can comment on or make changes to this bug.
Description
•