Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hello,

I have this format need to use using IvCalObject.

BEGIN:VCALENDAR
PRODID:-//Foo Bar//EN
VERSION:2.0
METHOD:PUBLISH
BEGIN:VEVENT
ORGANIZER:MAILTO:anyone@anywhere.com
DTSTART:20071003T063000Z
DTEND:20071003T070000Z
SEQUENCE:0
UID:040000008200E00074C5B7101A82E00800000000100C47396304C8010000000000000
00010000000430E90713A99A345BD3C8FF5EBBFC655
DTSTAMP:20071003T090837Z
DESCRIPTION:1. Test the IvCalObject interface
SUMMARY:Tasks
PRIORITY:5
CLASS:PUBLIC
BEGIN:VALARM
TRIGGER:-PT15M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM
END:VEVENT
END:VCALENDAR

Where to pass this buffer? I mean which API we have to use?Any one can help.

Thanks.

nResult = ISHELL_CreateInstance(pMe->a.m_pIShell, AEECLSID_vObjectParser, (void **)&pMe->pIvObjectParser);
if(NULL == pMe->pIForceFeed)
{
if(AEE_SUCCESS != IvObjectParser_QueryInterface(pMe->pIvObjectParser, AEEIID_FORCEFEED, (void **)&pMe->pIForceFeed))
{
return;
}
}
else
{
IFORCEFEED_Reset(pMe->pIForceFeed);
}
nResult = IFORCEFEED_Write(pMe->pIForceFeed, pBuf, STRLEN(pBuf));
nResult = IFORCEFEED_Write(pMe->pIForceFeed, NULL, 0);
// Geting number of parse object parse
nResult = IvObjectParser_GetNumberOfParsedObjects(pMe->pIvObjectParser, &nNumObjects, &dwObjectId);
if( AEECLSID_vCalendar != dwObjectId )
{
return;
}
nResult = IvObjectParser_GetObjectAtIndex(pMe->pIvObjectParser, 0, (IvObject **)pMe->pICal);
if(AEE_SUCCESS != nResult || NULL == pMe->pIvCal)
{
return;
}

nResult = ISHELL_CreateInstance(pMe->a.m_pIShell, AEECLSID_vObjectParser, (void **)&pMe->pIvObjectParser);
if(NULL == pMe->pIForceFeed)
{
if(AEE_SUCCESS != IvObjectParser_QueryInterface(pMe->pIvObjectParser, AEEIID_FORCEFEED, (void **)&pMe->pIForceFeed))
{
return;
}
}
else
{
IFORCEFEED_Reset(pMe->pIForceFeed);
}
nResult = IFORCEFEED_Write(pMe->pIForceFeed, pBuf, STRLEN(pBuf));
nResult = IFORCEFEED_Write(pMe->pIForceFeed, NULL, 0);
// Geting number of parse object parse
nResult = IvObjectParser_GetNumberOfParsedObjects(pMe->pIvObjectParser, &nNumObjects, &dwObjectId);
if( AEECLSID_vCalendar != dwObjectId )
{
return;
}
nResult = IvObjectParser_GetObjectAtIndex(pMe->pIvObjectParser, 0, (IvObject **)pMe->pICal);
if(AEE_SUCCESS != nResult || NULL == pMe->pIvCal)
{
return;
}

Thanks Atul..
// Geting number of parse object parse
nResult = IvObjectParser_GetNumberOfParsedObjects(pMe->pIvObjectParser, &nNumObjects, &dwObjectId);
if( AEECLSID_vCalendar != dwObjectId )
{
return;

Here iam getting nNumObjects =0 and dwObjectId != AEECLSID_vCalendar. Hence it is returning. Can u say what may be the reason?
IFORCEFEED_Write is failing for me..
IFORCEFEED_Write(pIForceFeed, pCalEng->WorkBuffers->sz6144Buf, STRLEN(pCalEng->WorkBuffers->sz6144Buf));
This is returning FALSE too...
Thanks in advance.

Thanks Atul..
// Geting number of parse object parse
nResult = IvObjectParser_GetNumberOfParsedObjects(pMe->pIvObjectParser, &nNumObjects, &dwObjectId);
if( AEECLSID_vCalendar != dwObjectId )
{
return;

Here iam getting nNumObjects =0 and dwObjectId != AEECLSID_vCalendar. Hence it is returning. Can u say what may be the reason?
IFORCEFEED_Write is failing for me..
IFORCEFEED_Write(pIForceFeed, pCalEng->WorkBuffers->sz6144Buf, STRLEN(pCalEng->WorkBuffers->sz6144Buf));
This is returning FALSE too...
Thanks in advance.

Hi,
I did entire process which u told. After this statement
nResult = IvObjectParser_GetNumberOfParsedObjects(pIvObjectParser, &nNumObjects, &dwObjectId);
Iam getting dwObjectId = AEECLSID_vCalendar. It is fine. But how it will be reflected in mobile calendar or native calendar?!?IFORCEFEED_Write is also getting success. Need help for how it will be reflected in mobile calendar or native calendar?!?.
Thanks in advance.

Hi,
I did entire process which u told. After this statement
nResult = IvObjectParser_GetNumberOfParsedObjects(pIvObjectParser, &nNumObjects, &dwObjectId);
Iam getting dwObjectId = AEECLSID_vCalendar. It is fine. But how it will be reflected in mobile calendar or native calendar?!?IFORCEFEED_Write is also getting success. Need help for how it will be reflected in mobile calendar or native calendar?!?.
Thanks in advance.

Hi everyone,
ISHELL_CreateInstance is failing for IvObjectParser in device 9700... In simulator it is fine.. Can any one say what may be the problem..
Thanks in advance.

Hi everyone,
ISHELL_CreateInstance is failing for IvObjectParser in device 9700... In simulator it is fine.. Can any one say what may be the problem..
Thanks in advance.