Commit Graph

97 Commits

Author SHA1 Message Date
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
vladimir%pobox.com
6e4a6613d6 removed obsolete contacts IDL attribute from calICalendar (npotb) 2004-12-08 23:15:19 +00:00
mvl%exedo.nl
d064a37503 export valid ics by using the right libical functions
bug 273440, r=shaver
2004-12-07 18:33:10 +00:00
shaver%mozilla.org
b4a3b00ed5 Bug 273438: createInstance() of events was always returning the same object
(the calEvent.prototype object, in fact).  Use .apply to get the behaviour
I meant all along.

(Also, some partial ICS-string setting/getting pieces, too lazy to extract
them from my tree.)
2004-12-07 17:34:35 +00:00
dmose%mozilla.org
77ba345bc1 Included readOnly attribute on suggestion from mvl/ago. Not part of build. 2004-12-02 20:48:09 +00:00
pavlov%pavlov.net
84dee1b4db updating eventDialog to use the new calendar APIs
revamp of the event dialog by mattwillis@gmail.com
bug 272732 r=shaver
2004-12-02 17:41:13 +00:00
dmose%mozilla.org
3563201311 Be sure to stop the event pump once we've received a response. 2004-12-02 01:42:09 +00:00
vladimir%pobox.com
c77a324d89 added calRecurrenceInfo, using libical to calculate recurrence; fixed calDateTime jsDate timezone handling; added calTodo implementation 2004-12-01 23:36:16 +00:00
shaver%mozilla.org
c2768a9ef2 Bug 272640: attendee support, and some cleanups.
- calIAttendee interface
- calAttendee impl
- attendee-related methods on calIItemBase
- basic test suite for attendee stuff
- data-driven component/module/script loading and factory stuff
- suppress component loader error from it trying to load calEvent.js as a
  component
- "make rebuild" target to rebuild .js from .js.pre
- chain calEvent's QI through its proto's

r=vlad,tab-police=mvl
2004-12-01 20:52:31 +00:00