I'am trying to create an extension for calendar/sunbird. To do that I
need an attribute in the ical files like X-FUNC-PROJECTID. This is not
possible at the moment seeing that the xpcomm interface does not support
custom attributes. Will this be possible in the future?
In the meanwhile I am using X-MOZILLA-SYNCID to store my information.
What is this attribute used for? Will it be available in future releases?
kind regard,
Ivo van Dongen
i...@func.nl
the syncid might be used to store the id the event has on the handheld.
It is currently not used.
But if you are writing a sync extension, i would really recommond to use
trunk builds. The xpcom interfaces changed a lot after sb0.2. writing
for sb0.2 would mean you have to start all over for 0.3
Also, join us in #calendar to discuss syncing. There are aleady some
docs and lots of thoughts.
--
Michiel
add +moz before the @ for email
Using the setProperty method on calIItemBase should allow cause anything
you put there to be serialized into ICS at the appropriate time.
Dan
You can easily pick up the "lightweight" Chatzilla for
Firefox/Suite/etc. project/extension for IRC use if you have a desire
without needing to grab compiled code.
~Justin Wood (Callek)
gEvent.setProperty(getFieldValue( "projects-field", "value" ));
gEvent.setProperty(getFieldValue( "projects-field", "value" ),
"X-FUNC-PROJECTID");
and
gEvent.setProperty("X-FUNC-PROJECTID", getFieldValue( "projects-field",
"value" ));
I dont know if we are talking about the same object. I'm making my
changes in eventDialog.js in the calendar.jar. I cant find what class
the gEvent Object belongs to.
Do you know what class this is and perhaps tell me how to set an
attribute for this object(or point me in the direction of some more
documentation)?
--
Ivo van Dongen
Func. Internet Integration
I don't see a gEvent object at all in the current trunk code. Are you
sure you're not using an old build?
> Do you know what class this is and perhaps tell me how to set an
> attribute for this object(or point me in the direction of some more
> documentation)?
>
http://lxr.mozilla.org/mozilla/source/calendar/base/public/calIEvent.idl
is what events on the current trunk implement. Note that the interface
inherits from calIItemBase in the same directory.
Dan
>> I don't see a gEvent object at all in the current trunk code. Are you
>> sure you're not using an old build?
>
> I have used the calendar_windows_20050111.xpi as a base. The current
> code has really changed comparing to that. How do I get the current
> source? The instructions on
> http://www.mozilla.org/projects/calendar/sunbird_build.html are for the
> 0.2 branch.
On the referenced page are both instructions to build Sunbird from the
trunk and from the 0.2 branch. Please take a closer look.
--
Simon Paquet
oeICalEventImpl.cpp is the impl of an event on the 0.2 branch.
calIEvent does support custom properties using the setProperty() stuff
that it inherits from calIItemBase. Both of those are implemented in
JavaScript code that lives in calendar/base/src/.
Dan