Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

X-MOZILLA-SYNCID

1 view
Skip to first unread message

ivo

unread,
Aug 24, 2005, 8:35:14 AM8/24/05
to
Hi,

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

Michiel van Leeuwen

unread,
Aug 24, 2005, 12:45:13 PM8/24/05
to

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

ivo

unread,
Aug 25, 2005, 3:20:13 AM8/25/05
to
I am not currently writing a sync exstension actually. The extension is
used to couple events with external projects. I just need an attribute
to store the id used to identify a project in a database.
Do you perhaps know if the xpcomm interfaces in the trunk builds allow a
custum attribute that I can use?
As soon as I've downloaded an irc-client I'll join you.

Dan Mosedale

unread,
Aug 26, 2005, 4:04:11 PM8/26/05
to
ivo wrote:
> I am not currently writing a sync exstension actually. The extension is
> used to couple events with external projects. I just need an attribute
> to store the id used to identify a project in a database.
> Do you perhaps know if the xpcomm interfaces in the trunk builds allow a
> custum attribute that I can use?
> As soon as I've downloaded an irc-client I'll join you.

Using the setProperty method on calIItemBase should allow cause anything
you put there to be serialized into ICS at the appropriate time.

Dan

Justin Wood (Callek)

unread,
Aug 28, 2005, 4:38:44 AM8/28/05
to
ivo wrote:
> As soon as I've downloaded an irc-client I'll join you.

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)

Ivo van Dongen

unread,
Aug 29, 2005, 4:14:16 AM8/29/05
to
Thanks for the hint. I've tried to use setProperty on the event object,
but the only effect that has is an error saying that gEvent.setProperty
is not a function. I've tried:

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

W http://www.func.nl

T +31 30 2109750

F +31 30 2109751

Dan Mosedale

unread,
Aug 30, 2005, 5:23:05 PM8/30/05
to
Ivo van Dongen wrote:
> Dan Mosedale wrote:
>> ivo wrote:
>>
>>> I am not currently writing a sync exstension actually. The extension
>>> is used to couple events with external projects. I just need an
>>> attribute to store the id used to identify a project in a database.
>>> Do you perhaps know if the xpcomm interfaces in the trunk builds
>>> allow a custum attribute that I can use?
>>> As soon as I've downloaded an irc-client I'll join you.
>>
>>
>> Using the setProperty method on calIItemBase should allow cause
>> anything you put there to be serialized into ICS at the appropriate time.
>>
>> Dan
> Thanks for the hint. I've tried to use setProperty on the event object,
> but the only effect that has is an error saying that gEvent.setProperty
> is not a function. I've tried:
>
> 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.

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

Ivo van Dongen

unread,
Aug 31, 2005, 3:31:59 AM8/31/05
to
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.

>
>> 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.
I was looking at oeICalEventImpl.cpp thinking it was the implementation
of an event. Does calIEvent.idl support custom attributes?
>
> Dan

Simon Paquet

unread,
Aug 31, 2005, 4:54:26 AM8/31/05
to
Ivo van Dongen wrote on 31.08.2005:

>> 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

Dan Mosedale

unread,
Aug 31, 2005, 12:56:01 PM8/31/05
to

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

0 new messages