About Events in Calendar
Events in calendar inherit from the calIItemBase interface and in order to store them in a cached file i wud need to set up some sort of parsing from an event object to a serializable string which I can then write to a file.
As luck would have it there is an icalString attribute in calItemBase which allows you to get the event string in ical Format. I can store this guy and use it to construct a calItemBase object which I can then write to the cloud when online.
Here are the preliminary results.
http://mxr.mozilla.org/comm-central/source/calendar/base/public/calIItemBase.idl#64
Events in calendar inherit from the calIItemBase interface and in order to store them in a cached file i wud need to set up some sort of parsing from an event object to a serializable string which I can then write to a file.
As luck would have it there is an icalString attribute in calItemBase which allows you to get the event string in ical Format. I can store this guy and use it to construct a calItemBase object which I can then write to the cloud when online.
Here are the preliminary results.
http://mxr.mozilla.org/comm-central/source/calendar/base/public/calIItemBase.idl#64
No comments:
Post a Comment