How to use vCal/vCard in BREW3.1.5SP01 to Parsing/Generating vCal/vCard stream | developer.brewmp.com How to use vCal/vCard in BREW3.1.5SP01 to Parsing/Generating vCal/vCard stream | developer.brewmp.com

Developer

How to use vCal/vCard in BREW3.1.5SP01 to Parsing/Generating vCal/vCard stream

Forums:

As you know, in BREW3.1.5 SP01, it support vCalendar & vCard function by introducing IvCalObject, IvCard, IObjectParser,etc Interface.

BUT, No enough info about how to use them be available, The SDK explained so simple.

Our typical use scenarios is:

1. Parse vCalendar/vCard Stream(Buffer) to retrieve related records/fields, then add to native PB or Calendar

2. Generate the formatted vCalendar/vCard stream(Buffer) from some records/fields, then send the stream to another handset.

So, Which Interfaces & which APIs should be used to reach above purpose? How to use? Could you give some typical sample code?

Thx a lot.

Anyone can help me ?

Anyone can help me ?

encoder:
create IParam,IProperty,IvCard objects.
get data stream from IvObject_getbufferfromObject()
send the stream containing vcard data.
decoder:
create IForceFeed object from parser object.
feed the data from stream into parser object.
get Ivobject from parser object.
parse the value.

encoder:
create IParam,IProperty,IvCard objects.
get data stream from IvObject_getbufferfromObject()
send the stream containing vcard data.
decoder:
create IForceFeed object from parser object.
feed the data from stream into parser object.
get Ivobject from parser object.
parse the value.