Commit Graph

305 Commits

Author SHA1 Message Date
vladimir%pobox.com
d4e623044f fix setTimeInTimezone with null timezone for duration 2005-05-23 21:10:54 +00:00
vladimir%pobox.com
ab222a8f83 oops, stray %s 2005-05-20 22:00:47 +00:00
pavlov%pavlov.net
a313abb9da removing bogus css rule and old alarm setting code 2005-05-20 19:01:25 +00:00
pavlov%pavlov.net
ee351fc436 fixing typo 2005-05-20 18:50:24 +00:00
pavlov%pavlov.net
d7012576a3 new event editing dialog. bug 293970. r=vlad 2005-05-20 18:47:18 +00:00
vladimir%pobox.com
41d1a31363 b=294104, remove isUtc to explicit 'UTC' timezone, and change null timezone -> 'floating', r=shaver+pav 2005-05-19 21:14:24 +00:00
mvl%exedo.nl
c103e99be0 more valid->isValid changes. bug 290761 2005-05-19 14:47:02 +00:00
mvl%exedo.nl
4a03424f60 Bug 290761 calIDateTime: rename valid to isValid.
patch by gekacheka@yahoo.com, r=vladimir
2005-05-19 13:29:48 +00:00
vladimir%pobox.com
79e066cf27 b=293707, updates to storage provider; calendar manager database locked fix, rish=shaver 2005-05-12 05:54:44 +00:00
pavlov%pavlov.net
a3f6fb3d1c adding publish to lightning. bug 293545 r=shaver,mvl 2005-05-11 05:04:40 +00:00
vladimir%pobox.com
c2b8e6122f b=293549, add minimonths to lightning, r=shaver, 2005-05-10 02:45:18 +00:00
vladimir%pobox.com
76c03de98e previous caldatetime fix wasn't so much, now real fix, with test suite coming soon 2005-05-08 00:44:30 +00:00
vladimir%pobox.com
2f53fa9249 some datetime fixes 2005-05-07 01:01:06 +00:00
pavlov%pavlov.net
1d74cd7bcb minor typo cleanups 2005-05-06 20:47:14 +00:00
pavlov%pavlov.net
014aaace17 changing snooze to modify the event's alarmTime 2005-05-06 20:46:56 +00:00
pavlov%pavlov.net
388da891d7 hooking up new alarm framework and hooking it in to lightning bug 292704 r=shaver 2005-05-06 00:05:42 +00:00
shaver%mozilla.org
3ea4f0e25c Silly notification typo, missed by my lazy reviewer. *whistle*
npotb
2005-05-05 22:10:41 +00:00
shaver%mozilla.org
8b05923a15 Bug 292676: save and restore in-composite and default-calendar state within the
composite calendar. r=vlad, npotb.
2005-05-03 00:20:14 +00:00
vladimir%pobox.com
029469be97 fix misc dragging issues, r=snoopy 2005-04-29 23:39:36 +00:00
mvl%exedo.nl
463ce05cff set .valid after setting time. bug 287985, r=vlad 2005-04-29 23:34:33 +00:00
vladimir%pobox.com
0519ef6bef clear mIsUtc when a non-null non-utc timezone is assigned, r=pav 2005-04-29 23:11:17 +00:00
shaver%mozilla.org
f0c4b37854 Unify observer notification to suppress exceptions _and_ show off
JS_HAS_ARRAY_EXTRAS a little.  r=pavlov, npotb.
2005-04-29 22:26:21 +00:00
pavlov%pavlov.net
5a2dbddb80 remove the calendar from the cache in unregisterCalendar 2005-04-29 19:06:35 +00:00
pavlov%pavlov.net
0c258eb4e7 force pref names to be lowercase 2005-04-29 18:23:36 +00:00
pavlov%pavlov.net
0808225ba2 delete user prefs associated with a calendar with you unregister it 2005-04-29 18:16:52 +00:00
mvl%exedo.nl
995dce9a31 Make overwriting a pref really overwrite, not store a new pref.
bug 291596, r=pavlov
2005-04-28 22:55:00 +00:00
mvl%exedo.nl
bf7b9a3d5b Add getCalendar. Add a few lines of extra documentation. r=dmose 2005-04-28 21:28:38 +00:00
mvl%exedo.nl
8bc7d9f0ad Add getCalendar. Add a few lines of extra documentation. r=dmose 2005-04-28 21:26:47 +00:00
pavlov%pavlov.net
0f0b74e420 persisting calendar name and name changes using calendar prefs (bug 292097) r=shaver 2005-04-27 21:13:48 +00:00
dmose%mozilla.org
59c2441a74 Meta-interface for calICalendar providers to implement. r=stuart; NPOTB. 2005-04-27 18:15:18 +00:00
shaver%mozilla.org
69636af76a Syntax error fix; NPOTB. 2005-04-26 19:01:26 +00:00
vladimir%pobox.com
17e6f88189 b=291721, add classinfo to calendar components for less painful JS-ing 2005-04-25 22:04:59 +00:00
shaver%mozilla.org
f031dbf2d8 Nobody cares what the toString method is, fool. (NPOTB) 2005-04-25 13:27:26 +00:00
shaver%mozilla.org
2d5ba6cf4e If we can't create a calendar instance, perhaps because of a bogus id or uri,
just skip the calendar in question, rather than failing to get any calendars.
(Still to do: figure out exactly how we get into this state in the current
code.) NPOTB.
2005-04-25 12:59:52 +00:00
vladimir%pobox.com
c878dc45cc use screen coords instead of client coords for event modification; scrolled views are then handled correctly 2005-04-25 03:57:55 +00:00
vladimir%pobox.com
4fbcbf6141 can move between days now 2005-04-24 18:57:38 +00:00
vladimir%pobox.com
1948bef759 whitespace only changes, get rid of tabs 2005-04-24 18:51:02 +00:00
vladimir%pobox.com
32154cc3bd drag fix for horizontal views 2005-04-24 10:59:07 +00:00
vladimir%pobox.com
780708138b more draggy swoopy goodness in the multiday view 2005-04-24 10:53:33 +00:00
vladimir%pobox.com
b9713d6721 add calIItemOccurrence.equals() 2005-04-24 10:52:27 +00:00
vladimir%pobox.com
a8ddda48f6 Fixed CalendarViewController interface to correctly deal with Occurrences instead of events; selection & event deleting via keyboard 2005-04-24 06:37:18 +00:00
vladimir%pobox.com
c8dff7c48f basic view event selection 2005-04-24 04:45:57 +00:00
vladimir%pobox.com
599dfa411c don't create tiny events 2005-04-24 03:41:48 +00:00
vladimir%pobox.com
36f25cec34 more fixication 2005-04-24 03:16:16 +00:00
vladimir%pobox.com
056336ae56 more view event creation goodness 2005-04-24 03:09:20 +00:00
vladimir%pobox.com
f78d6e1d6b more view fixes 2005-04-24 02:06:55 +00:00
vladimir%pobox.com
7f99b013a8 I dare you to drag out an event in the view. Double dare ya. 2005-04-23 21:48:54 +00:00
vladimir%pobox.com
59fbf4800d some more view prettyness fixes 2005-04-23 00:23:15 +00:00
pavlov%pavlov.net
cfffe0617c fixing event dialog to use use timezone-corrected times when displaying start/end times. adding some code to try to guess what your system timezone is 2005-04-22 22:57:08 +00:00
vladimir%pobox.com
359b185aab Let GetInTimezone return a new calDateTime correctly for dates, by just setting the timezone on the newly created time and not doing anything to the month/day 2005-04-22 21:11:14 +00:00
vladimir%pobox.com
327b528886 add in Reorient button to view 2005-04-22 07:16:16 +00:00
vladimir%pobox.com
04dc7542f7 make the view not look horrible 2005-04-22 04:38:36 +00:00
vladimir%pobox.com
941da16494 make the view not look horrible 2005-04-22 03:07:59 +00:00
vladimir%pobox.com
4b1d96e394 make the view not look horrible 2005-04-22 02:18:34 +00:00
vladimir%pobox.com
15e7adf06d b=290772, make calendar getItems() use non-inclusive end date, r=shaver 2005-04-21 21:03:12 +00:00
vladimir%pobox.com
476b5bf755 remove some dump()s 2005-04-19 07:50:38 +00:00
vladimir%pobox.com
b334d9c85d fix getOccurrencesBetween 2005-04-19 07:50:08 +00:00
vladimir%pobox.com
9aca7e3af9 fix event title display 2005-04-19 07:13:27 +00:00
vladimir%pobox.com
a196556919 more multiday view stuff, now with timezone handling and correct calendar observing 2005-04-19 06:50:13 +00:00
pavlov%pavlov.net
3aa35edeaf try to find a good start time before opening the event dialog. 2005-04-19 03:28:58 +00:00
pavlov%pavlov.net
27f6e89169 fixing getInTimezone to return a new mutable object r=vlad 2005-04-19 03:26:32 +00:00
pavlov%pavlov.net
b0f46a53e2 getting event dialog wired up for lightning 2005-04-18 22:55:28 +00:00
vladimir%pobox.com
0f2bb076ba missing file 2005-04-18 22:20:34 +00:00
vladimir%pobox.com
d67a702f55 more multiday view goodness; hooked up controller 2005-04-18 22:11:24 +00:00
vladimir%pobox.com
b88ac91a7c *** empty log message *** 2005-04-16 22:58:25 +00:00
shaver%mozilla.org
8c13f2cd72 Bug 290530: add organizer support to calItemBase. r=dmose, NPOTB. 2005-04-15 22:11:05 +00:00
vladimir%pobox.com
b0005fc860 idl, not .h, teehee 2005-04-15 20:55:24 +00:00
vladimir%pobox.com
6a31aa2612 calendar multiday view 2005-04-15 20:33:29 +00:00
vladimir%pobox.com
de007a8244 remove itemFilter from calICalendar's addObserver method 2005-04-15 18:51:47 +00:00
vladimir%pobox.com
9ca19b78d3 b=289439, lightning and calendar update stuff 2005-04-08 20:57:34 +00:00
shaver%mozilla.org
e585217788 Make the subscript-loading properly detect the installation directory
of the components, so that we work in Lightning as well as Sunbird.  (Had
this in my other tree for ages, *blush*.)

Properly navigate the prototype chain to find the shadowed QI, rather than
just recurring infinitely on ourselves.

Tested in sunbird and lightning, NPOTB, r=dmose.
2005-04-07 15:55:14 +00:00
shaver%mozilla.org
d1d8a2f415 Bug 289272: fix component initialization to let us create calEvents and such
again.  r=mvl, NPOTB.
2005-04-06 18:46:11 +00:00
vladimir%pobox.com
ee34f18b88 Fix component registration order issues 2005-04-04 21:46:09 +00:00
bsmedberg%covad.net
75697e2229 Adding MOZILLA_INTERNAL_API to internal makefiles, bug 288626, rs=darin 2005-04-04 17:05:17 +00:00
mvl%exedo.nl
bc4b95e3d2 make date-like attributes readwrite, to make it possible to edit a todo
bug 287985, r=vlad
2005-03-30 21:21:58 +00:00
mvl%exedo.nl
f467c64f5c Add some documentation
bug 278140, r=vlad
2005-03-28 18:59:33 +00:00
mvl%exedo.nl
8a1c410a8c it is a todo, not an event. 2005-03-25 14:45:58 +00:00
pavlov%pavlov.net
f3842dc8e9 fixing bug 286228. patch by stelian@popies.net. r=pavlov 2005-03-24 20:22:46 +00:00
mvl%exedo.nl
3a24600358 forgot to update this file for bug 286455. 2005-03-22 16:09:50 +00:00
mvl%exedo.nl
6c1e322eba Give this the right classname. Just because it looks better. r=vlad 2005-03-16 18:44:00 +00:00
mvl%exedo.nl
fc61dc5711 another bustage fix. also bug 279189 2005-02-27 15:10:30 +00:00
mvl%exedo.nl
43c67b6a7b bustage fix. fallout from bug 279189 2005-02-27 15:06:54 +00:00
pavlov%pavlov.net
69c5ca4e20 adding prefs api for calendars. bug 279189 r=vlad 2005-02-23 21:50:36 +00:00
mvl%exedo.nl
a08d398d35 make calIDateTime properties like hour to be in the given timezone
bug 280971, r=vlad
(plus off-by-one fix for weekday)
2005-02-04 20:42:08 +00:00
pavlov%pavlov.net
87401ae601 adding support for creating and deleting calendars 2005-02-01 00:56:51 +00:00
pavlov%pavlov.net
e4c33752df adding calendar manager. bug 289189 r=vlad 2005-01-29 01:51:04 +00:00
pavlov%pavlov.net
362306cbe6 partial fix for all day events. bug 278425. patch by jt@nerant.org. r=pavlov 2005-01-29 00:47:51 +00:00
mvl%exedo.nl
647a995428 do the right test.
r=vlad
2005-01-28 21:27:59 +00:00
mvl%exedo.nl
add7ee1614 don't try create a complete rule for exdate.
r=vlad
2005-01-28 20:07:26 +00:00
vladimir%pobox.com
855ab4755c added new maketzdata.pl in this location; regenerated tzdata.c straight from Olson data via vzic, without --pure option. Less carbohydrates and same great taste as the old tzdata.c, but without nasty compatability problems. 2005-01-26 23:05:23 +00:00
vladimir%pobox.com
8c2bf5e062 more timezone conversion fixes 2005-01-17 22:06:24 +00:00
vladimir%pobox.com
95f8c4a64f Generate a timezone on the icaltimetype if one is specified, and the calDatetime isn't in UTC 2005-01-17 21:51:53 +00:00
mvl%exedo.nl
14755e1b4b make calIRecurrenceInfo.getNextOccurrence not return occurences with startTime == aStartTime
bug 278149, r=vlad
2005-01-14 21:02:10 +00:00
dmose%mozilla.org
6407697b8e Removing DTALARM attrib; it doesn't exist. Not part of the build. 2005-01-12 17:35:20 +00:00
shaver%mozilla.org
1180ed6578 Bugs from CalDAV Calconnect interop.
- Use uppercase property names until 277978 is fixed.
- Don't set empty-string properties, because some servers don't like them.
2005-01-12 01:12:00 +00:00
vladimir%pobox.com
c2cab0a3f2 fix tzid generation 2005-01-10 20:22:48 +00:00
vladimir%pobox.com
a0e70632cd updated as per mvl's suggestions, also an offset fix 2005-01-10 20:09:41 +00:00
vladimir%pobox.com
ce595717e5 add timezone handling in output ics files. we currently output dtstart/dtend in the tz specified by the calendar.local-time-zone pref 2005-01-10 02:24:03 +00:00
vladimir%pobox.com
72da4aab89 no, the real tzdata is this one 2005-01-10 02:20:36 +00:00
vladimir%pobox.com
537a8651db newer tzdata that builds on msvc 2005-01-10 02:16:36 +00:00
mvl%exedo.nl
55c4b52577 Don't put rrule and attendee in the property bag, they are handled specially.
bug 277562, r=shaver
2005-01-09 19:01:52 +00:00
mvl%exedo.nl
dbb8a82ed5 don't build libicalss
bug 277570, r=shaver
2005-01-09 18:33:58 +00:00
vladimir%pobox.com
e12df5a87b parse recurrence components on input of icalProperty 2005-01-07 22:11:48 +00:00
mvl%exedo.nl
8fa0aec600 Use new libical. Don't build libxpical anymore
r=dmose. bug 237302 and 273447
2005-01-07 19:16:46 +00:00
vladimir%pobox.com
cdb84a5dc8 more recurrence handling goop: single RDATE/EXDATEs supported (no more dateset); serializing to ICS works correctly; storage handles all item cases now; added compiled-in VTIMEZONE data for olson timezones (generated from libical olson VTIMEZONE files) -- bugs on output, TZ bits disabled for now; updates to storage and caldav for support. 2005-01-03 23:32:28 +00:00
vladimir%pobox.com
9a4362c8f7 thinko. or cutandpasteo, up to you. 2005-01-03 23:24:22 +00:00
vladimir%pobox.com
b56e14b17d Added reset() to calIDateTime; updated Todo back-end bits (cruft fixing). notpartofthebuild 2005-01-03 23:08:13 +00:00
dmose%mozilla.org
8d681690e9 Allow calIDateTime objects to expose an ical-serialized version of the object as an attribute. Not part of the build. 2005-01-02 02:52:11 +00:00
mvl%exedo.nl
1183b38867 don't update lastmodified when setting icalComponent, when cloning or when setting parent
bug 276522, r=shaver
2004-12-31 15:36:10 +00:00
dmose%mozilla.org
3d59974e8a Removed old tests; new copies now exist in mozilla/calendar/test. Not part of the build. 2004-12-27 19:58:43 +00:00
pavlov%pavlov.net
b777f89723 adding new calendar attachment interface -- bug 274966 2004-12-20 18:04:15 +00:00
shaver%mozilla.org
b002b50405 Bugs 275070, 274464:
- remove preprocessing step in favour of some JS dynamism love
- much improved invalid-date/null/etc. argument handling in the ICS service
- better management of stampDate and lastModifiedTime
- unification of immutable checks
- test for attendee cloning
r=mvl.
2004-12-18 22:59:51 +00:00
vladimir%pobox.com
b397544e5e new recurrence system. exceptions supported now, along with everything else ical can throw at us. I hope. 2004-12-18 01:54:30 +00:00
vladimir%pobox.com
48db66a067 fix mAttendees typo 2004-12-17 19:54:54 +00:00
pavlov%pavlov.net
0ef31b4f88 fix toString() to print the correct month r=vlad 2004-12-16 21:18:00 +00:00
mvl%exedo.nl
e511e491c1 fix typo. make this actually work. 2004-12-15 19:19:49 +00:00
mvl%exedo.nl
f44157ebb5 make calIItemBase.icalComponent read/write
bug 274645, r=shaver
2004-12-15 16:22:01 +00:00
shaver%mozilla.org
ace2b612b9 clone attendees properly 2004-12-14 23:47:33 +00:00
vladimir%pobox.com
0fca4ede5c icalrecur_iterator_next doesn't seem to return the first date, so we were off by one when computing a RecurCount. notpartofthebuild 2004-12-14 11:10:42 +00:00
vladimir%pobox.com
a6cd320bbb yet more suckage. notpartofthebuild 2004-12-14 11:02:17 +00:00
vladimir%pobox.com
fa83e790ab i suck. notpartofthebuild. 2004-12-14 09:29:08 +00:00
vladimir%pobox.com
3f629a981b handle durations correctly when recurring recurrence events, notpartofthebuild 2004-12-14 08:37:54 +00:00
vladimir%pobox.com
cc1df5c45c more recurrence fixes, notpartofthebuild 2004-12-14 08:12:10 +00:00
vladimir%pobox.com
2e8ed090fe fixed forever recurrence (-1 count, or null endtime) 2004-12-14 07:53:27 +00:00
vladimir%pobox.com
b55ca7c5bf fix range computation, notpartofthebuild 2004-12-14 04:17:54 +00:00
vladimir%pobox.com
9a9719b366 fixed storage recurrence; notpartofthebuild 2004-12-14 03:27:32 +00:00
shaver%mozilla.org
4714253f86 Recurrence fixes:
- add an icalProperty getter/setter for serialization (yet to come).
 - fix bogus assertion
 - throw NOT_IMPLEMENTED for getOccurrences, rather than NS_OK crash bait.
2004-12-14 02:00:34 +00:00
vladimir%pobox.com
f7f3f88e22 fixed case, notpartofthebuild 2004-12-14 00:51:58 +00:00
shaver%mozilla.org
28c8b5d84d add removeAllAttendees for pav 2004-12-14 00:44:21 +00:00
vladimir%pobox.com
a9c26b6f51 hooked up recurrence to storage; notpartofthebuild 2004-12-14 00:25:58 +00:00
shaver%mozilla.org
2429159487 mMethod cleanup too 2004-12-13 23:52:28 +00:00
shaver%mozilla.org
9dc296acdc more isPrivate fixes 2004-12-13 23:49:42 +00:00
shaver%mozilla.org
9c210babca Fix mPrivacy cloning, don't clone the erstwhile mMethod. 2004-12-13 23:43:16 +00:00
shaver%mozilla.org
97aa9b771e Bug 274336: initialize mIsDate, because we can take some paths through
normalize and whatnot that give us a "valid" date while still having
uninitialized stack garbage in mIsDate. r=vlad
2004-12-13 10:09:38 +00:00
shaver%mozilla.org
c384132735 - Use literal strings instead of integer constants, for better insulation
from libical changes, and a vastly improved debugging experience.
  The requisite data validation is coming once I figure out how best to
  get libical to do that validation in any reasonable fashion whatsoever.

- Remove METHOD from calIItemBase, as it's a bit of ICS specificity that should
  live elsewhere for manipulation in calling code.

- Remove useless getAttendees/setAttendees from calIIcalComponent, now that
  real property/parameter support exists.

- Unify property/x-property interfaces as much as possible.

- Likewise for parameters/x-parameters.

- Real property and parameters support, sufficient at least to whack ATTENDEE
  props in interesting ways.

- Properties on calIAttendee (mapped generally to ICS parameters, though
  somewhat fragilely).

- Round-trip X-WHATEVER ICS properties and params reliably.

- Attendee serialization/deserialization in calItemBase.

- In various places, SetIsVoid on empty strings returned to signify
  missing property/parameters.  Nicer from JS, to be sure.

- Fix test cases and one little spot in Sunbird to keep up.

CalDAV event modification works now.
2004-12-13 09:50:30 +00:00
shaver%mozilla.org
086a3d6388 - Use signed constants for calIIcalComponent, so that we can express
the absence of integer-valued properties consistently.
- Add calIIcalComponent.INVALID_VALUE for just that purpose.
- Use the same constant values for method in calIItemBase as we use in
  calIIcalComponent, for the sake of my sanity.  (Tempted to just remove them
  and have people who care about setting .method do it on the icalComponent
  of their choice.)
- Make calIItemBase.generation unsigned, since 0 means not-stored.
- Voidify string properties returned from calICSService to indicate a missing
  property.
- Don't propagate null or INVALID_VALUE props when copying to/from ICS.
- calIItemBase.generation has precisely nothing to do with ICS VERSION, so
  remove the mapping.
2004-12-11 21:17:36 +00:00
vladimir%pobox.com
3ac937f726 fixed lastModifiedTime type, notpartofthebuild 2004-12-10 11:22:48 +00:00
shaver%mozilla.org
43f7338641 A bouquet garni of fragrant fixes:
- set prodid and version in generated ICS
- don't set empty-valued properties on the icalcomp; it makes some
  parsers sad
- save the listener's "outer this" so that we find it to call the notification
  methods on when adding an item is well and truly done.

Can now create events on a CalDAV server.
2004-12-10 11:00:27 +00:00
shaver%mozilla.org
8b7826b74e A caller may ask us to set a date-valued property to null. Rebuff them
gently, instead of wetting the floor.
2004-12-10 10:00:17 +00:00
vladimir%pobox.com
73864d156f Initialize stampDate on event init, notpartofthebuild 2004-12-10 02:32:30 +00:00
vladimir%pobox.com
b5eb3d4590 Initialize creationDate and lastModifiedDate on itembase init, notpartofthebuild 2004-12-10 02:29:05 +00:00
pavlov%pavlov.net
462ec34b9c fixing compile problem on windows 2004-12-10 01:50:51 +00:00
vladimir%pobox.com
8a5d2024e1 fix calDateTime jsDate conversion, oops; notpartofthebuild 2004-12-10 01:35:48 +00:00
vladimir%pobox.com
8b8224d58b forgot TimezoneOffset getter/setter, notpartofthebuild 2004-12-10 01:05:31 +00:00
vladimir%pobox.com
e4c06a2ed2 Have calIDateTime track the tz offset when going to/from jsdates. npotb 2004-12-10 00:45:04 +00:00
dmose%mozilla.org
712a24b2f8 test for getItem() on a single event. (not part of the build) 2004-12-10 00:35:49 +00:00
shaver%mozilla.org
3b32aa62cb - Basic ICS serialization of events.
- icalComponent getter on calIItemBase to aid in serializing multiple
  components, such as to write out an entire calendar as ICS (say).
- Fix DATE property handling in the ICS service, no thanks at all to libical's
  use of obfuscated void * as its type for everything.
2004-12-10 00:15:22 +00:00
mvl%exedo.nl
87c6dfa88f initial version of a synchronization test. npotb 2004-12-09 19:17:50 +00:00
shaver%mozilla.org
91536ce225 - calIDateTime.isDate.
- warning fixes in calDateTime, calRecurrenceInfo.
- use CalDateTime constructor instead of helper function.
- calEvent.icalString setter basics implemented (no attendees yet)
- simple test case for icalString setter.
2004-12-09 02:53:46 +00:00
dmose%mozilla.org
5dee6b3900 Update calendar testing infrastructure (not part of the build) 2004-12-09 01:01:26 +00:00