creating calendar object | developer.brewmp.com creating calendar object | developer.brewmp.com

Developer

creating calendar object

Forums:

need some help in creating and inserting entries in the device' calender...
'm not able to create the "IvCalObject" itself :(

also how can we do buffer parsing for IvCalObject :confused:

regards
v v s

IvProperty_InitProperty and IvCalObject_AddProperty APIs to create calendar entry.
Parsing:
create IForceFeed object from parser object. (IvObjectParser_QueryInterface for AEEIID_FORCEFEED)
feed the data from stream into parser object. (IFORCEFEED_Write)
get Ivobject from parser object. (IvObjectParser_GetNumberOfParsedObjects, IvObjectParser_GetObjectAtIndex)
parse the value.

IvProperty_InitProperty and IvCalObject_AddProperty APIs to create calendar entry.
Parsing:
create IForceFeed object from parser object. (IvObjectParser_QueryInterface for AEEIID_FORCEFEED)
feed the data from stream into parser object. (IFORCEFEED_Write)
get Ivobject from parser object. (IvObjectParser_GetNumberOfParsedObjects, IvObjectParser_GetObjectAtIndex)
parse the value.

adhudase wrote:IvProperty_InitProperty and IvCalObject_AddProperty APIs to create calendar entry.
Parsing:
create IForceFeed object from parser object. (IvObjectParser_QueryInterface for AEEIID_FORCEFEED)
feed the data from stream into parser object. (IFORCEFEED_Write)
get Ivobject from parser object. (IvObjectParser_GetNumberOfParsedObjects, IvObjectParser_GetObjectAtIndex)
parse the value.
My question is wether there is any limit on creating the vCalendar objects ? Is it device specific ?
vCalStore seems to maintain the list of vCalendar obj, is there any specific folder.
Thanks

adhudase wrote:IvProperty_InitProperty and IvCalObject_AddProperty APIs to create calendar entry.
Parsing:
create IForceFeed object from parser object. (IvObjectParser_QueryInterface for AEEIID_FORCEFEED)
feed the data from stream into parser object. (IFORCEFEED_Write)
get Ivobject from parser object. (IvObjectParser_GetNumberOfParsedObjects, IvObjectParser_GetObjectAtIndex)
parse the value.
My question is wether there is any limit on creating the vCalendar objects ? Is it device specific ?
vCalStore seems to maintain the list of vCalendar obj, is there any specific folder.
Thanks

You can create as many vCalendar objects as you want no limit on creating vCalendar objects. It is totally device independent.
Not sure what exactly you are looking for. Anyways, vCalStore is repository in which different vCalObjects can be stored by different apps mainly calendaring app. vCalObjects nothing but different components of calendar object, such as event, todo, journal etc.

You can create as many vCalendar objects as you want no limit on creating vCalendar objects. It is totally device independent.
Not sure what exactly you are looking for. Anyways, vCalStore is repository in which different vCalObjects can be stored by different apps mainly calendaring app. vCalObjects nothing but different components of calendar object, such as event, todo, journal etc.

adhudase wrote:You can create as many vCalendar objects as you want no limit on creating vCalendar objects. It is totally device independent.
Not sure what exactly you are looking for. Anyways, vCalStore is repository in which different vCalObjects can be stored by different apps mainly calendaring app. vCalObjects nothing but different components of calendar object, such as event, todo, journal etc.
Thank you Atul. Does the SDK
1. Support multiple vcalendar objects with UID's such as a calendar for work and another calendar for personal which have different event objects (vCalObjects)
2. Have multiple vCal stores available
Thanks

adhudase wrote:You can create as many vCalendar objects as you want no limit on creating vCalendar objects. It is totally device independent.
Not sure what exactly you are looking for. Anyways, vCalStore is repository in which different vCalObjects can be stored by different apps mainly calendaring app. vCalObjects nothing but different components of calendar object, such as event, todo, journal etc.
Thank you Atul. Does the SDK
1. Support multiple vcalendar objects with UID's such as a calendar for work and another calendar for personal which have different event objects (vCalObjects)
2. Have multiple vCal stores available
Thanks

Is vCalStore persistent storage ?

Is vCalStore persistent storage ?

Each calendar object will be having a unique UID. All calendar object will store in vcalstore only. There will be only one vcalstore available which will be shared by different apps. It is persistent storage.

Each calendar object will be having a unique UID. All calendar object will store in vcalstore only. There will be only one vcalstore available which will be shared by different apps. It is persistent storage.

Hello
can any one tell how to create instance for IvCalobj?!? Iam unable to create instance for that......

Hello
can any one tell how to create instance for IvCalobj?!? Iam unable to create instance for that......

nResult = ISHELL_CreateInstance(ps,
AEECLSID_vProperty,
(void **)&pIvProperty);
In API Reference to create instance for IvProperty, they gave ISHELL_CreateInstance. But in this function they mentioned AEECLSID_vProperty as class id which is throwing an error stating AEECLSID_vProperty undeclared identifier.
Is there any alternative to create instances for IvCalobject and IvProperty.....
Thanks.

nResult = ISHELL_CreateInstance(ps,
AEECLSID_vProperty,
(void **)&pIvProperty);
In API Reference to create instance for IvProperty, they gave ISHELL_CreateInstance. But in this function they mentioned AEECLSID_vProperty as class id which is throwing an error stating AEECLSID_vProperty undeclared identifier.
Is there any alternative to create instances for IvCalobject and IvProperty.....
Thanks.

AEEvProperty.bid file is in "C:\Program Files\BREW 3.1.5\inc". You need to include that file.

AEEvProperty.bid file is in "C:\Program Files\BREW 3.1.5\inc". You need to include that file.

Thanks Atul.. It is working man........................................

Thanks Atul.. It is working man........................................

Hi every one,
Can any one say how to create instance for IvCalobject?!?

Hi every one,
Can any one say how to create instance for IvCalobject?!?

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? Any one can help.
Thanks.

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? Any one can help.
Thanks.

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

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?!? I did IFORCEFEED_Write is aslo getting success. Need help.
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?!? I did IFORCEFEED_Write is aslo getting success. Need help.
Thanks in advance.

Hi,
Iam trying to add the calendar event from third party app to native calendar. But iam facing a problem. This is my code.
// Geting number of parse object parse
nResult = IvObjectParser_GetNumberOfParsedObjects(pIvObjectParser, &nNumObjects, &dwObjectId);
if( AEECLSID_vCalendar == dwObjectId )
{
DBGPRINTF("Found dwObjectId");
nResult = IvObjectParser_GetObjectAtIndex(pIvObjectParser,
0,
(IvObject **)&pIvCalObject);
if(pIvCalObject)
DBGPRINTF("pIvCalObject Created");
else
DBGPRINTF("pIvCalObject failed");
}
else
{
DBGPRINTF("Not Found dwObjectId");
return FALSE;
}
errCode = IvCalObject_GetObjectAtIndex(pIvCalObject,0, AEECLSID_vEvent , &pIvCalEventObject);
DBGPRINTF("errorcode = %d",errCode);
if(IvCalObject_AddObject(pIvCalObjectInterface , pIvCalEventObject) == AEE_EBADPARM)
DBGPRINTF("AEE_EBADPARM");
IvCalStore_IsCalendarLocked(pIvCalStore, &boole);
if(boole)
{
DBGPRINTF("Calendar locked");
if(IvCalStore_UnlockCalendar(pIvCalStore) == AEE_SUCCESS)
DBGPRINTF("Unlock Success");
else
DBGPRINTF("Unlock Failed");
}
else
DBGPRINTF("Calendar is not locked");
if(pIvCalStore && pIvCalEventObject)
{
if(IvCalStore_AddObject(pIvCalStore , pIvCalEventObject , &pnAEEPropertyOID) == AEE_SUCCESS)
DBGPRINTF("AEE_SUCCESS");
}
Here it is returning SUCCESS. But it is not storing in native calendar.
Note: i found the content which iam sending using IFORCEFEED_Write is getting stored in Calendar.db file in shared folder.The content which iam passing starts with BEGIN: VCALENDAR( This is the data which iam passing using IFORCEFEED_Write).
Can any one help why it is not storing in Native Calendar. Or else are there any extra API need to use to store the event?

Hi,
Iam trying to add the calendar event from third party app to native calendar. But iam facing a problem. This is my code.
// Geting number of parse object parse
nResult = IvObjectParser_GetNumberOfParsedObjects(pIvObjectParser, &nNumObjects, &dwObjectId);
if( AEECLSID_vCalendar == dwObjectId )
{
DBGPRINTF("Found dwObjectId");
nResult = IvObjectParser_GetObjectAtIndex(pIvObjectParser,
0,
(IvObject **)&pIvCalObject);
if(pIvCalObject)
DBGPRINTF("pIvCalObject Created");
else
DBGPRINTF("pIvCalObject failed");
}
else
{
DBGPRINTF("Not Found dwObjectId");
return FALSE;
}
errCode = IvCalObject_GetObjectAtIndex(pIvCalObject,0, AEECLSID_vEvent , &pIvCalEventObject);
DBGPRINTF("errorcode = %d",errCode);
if(IvCalObject_AddObject(pIvCalObjectInterface , pIvCalEventObject) == AEE_EBADPARM)
DBGPRINTF("AEE_EBADPARM");
IvCalStore_IsCalendarLocked(pIvCalStore, &boole);
if(boole)
{
DBGPRINTF("Calendar locked");
if(IvCalStore_UnlockCalendar(pIvCalStore) == AEE_SUCCESS)
DBGPRINTF("Unlock Success");
else
DBGPRINTF("Unlock Failed");
}
else
DBGPRINTF("Calendar is not locked");
if(pIvCalStore && pIvCalEventObject)
{
if(IvCalStore_AddObject(pIvCalStore , pIvCalEventObject , &pnAEEPropertyOID) == AEE_SUCCESS)
DBGPRINTF("AEE_SUCCESS");
}
Here it is returning SUCCESS. But it is not storing in native calendar.
Note: i found the content which iam sending using IFORCEFEED_Write is getting stored in Calendar.db file in shared folder.The content which iam passing starts with BEGIN: VCALENDAR( This is the data which iam passing using IFORCEFEED_Write).
Can any one help why it is not storing in Native Calendar. Or else are there any extra API need to use to store the event?

We are storing vcf( VCARD) file content in address book (phbk). Retrieving records and creating vcf filesfrom address book. Like the same way we can store vcs( VCAL) file content. In which location we can store the content of vcs files?.
Kindly do the needful

We are storing vcf( VCARD) file content in address book (phbk). Retrieving records and creating vcf filesfrom address book. Like the same way we can store vcs( VCAL) file content. In which location we can store the content of vcs files?.
Kindly do the needful

Hi I am unable to create the instance on the device.
code I hv weritten is:
IvProperty *pIvProperty = NULL;
nResult = ISHELL_CreateInstance(pMe->applet.m_pIShell,AEECLSID_vProperty,(void **)&pIvProperty);
also same is the case with IvCalStore and IvCalObject.
Their instance are also not created.
IvCalStore* pIvCalStore = NULL;
IvCalObject* pIVcalObj = NULL;
int nRetVAl = -1;
nRetVAl = ISHELL_CreateInstance(pMe->applet.m_pIShell,AEECLSID_vCalStore,(void**)(&pIvCalStore));
nRetVAl = ISHELL_CreateInstance(pMe->applet.m_pIShell,AEECLSID_vCalendar,(void**)(&pIVcalObj));
Please suggest me if anybody has some input.
Thanks

Hi I am unable to create the instance on the device.
code I hv weritten is:
IvProperty *pIvProperty = NULL;
nResult = ISHELL_CreateInstance(pMe->applet.m_pIShell,AEECLSID_vProperty,(void **)&pIvProperty);
also same is the case with IvCalStore and IvCalObject.
Their instance are also not created.
IvCalStore* pIvCalStore = NULL;
IvCalObject* pIVcalObj = NULL;
int nRetVAl = -1;
nRetVAl = ISHELL_CreateInstance(pMe->applet.m_pIShell,AEECLSID_vCalStore,(void**)(&pIvCalStore));
nRetVAl = ISHELL_CreateInstance(pMe->applet.m_pIShell,AEECLSID_vCalendar,(void**)(&pIVcalObj));
Please suggest me if anybody has some input.
Thanks

I wanna say that there is two different way while using IVcalstore.
One is used by saving data to fs:/share/calendar.db.
Anther is used when parsed the properties from *.db file to vcs file or from vcf file to *.db file.

I wanna say that there is two different way while using IVcalstore.
One is used by saving data to fs:/share/calendar.db.
Anther is used when parsed the properties from *.db file to vcs file or from vcf file to *.db file.

Hi buddy,
1 create IvCalObject instance accordingly.
nResult= ISHELL_CreateInstance(pme->m_pShell,
AEECLSID_vEvent,
(void **)&pCalObject
);
2 ISHELL_CreateInstance(ps, AEECLSID_vProperty, (void **)&pIvProperty);
3 IvProperty_InitProperty(pIvProperty,....)
4 IvCalObject_AddProperty(pObject,pIProperty)
5 IvCalStore_AddObject(pme->pIVCalStore,pCalObject ,dwOID);
BR,
Ivon chan

Hi buddy,
1 create IvCalObject instance accordingly.
nResult= ISHELL_CreateInstance(pme->m_pShell,
AEECLSID_vEvent,
(void **)&pCalObject
);
2 ISHELL_CreateInstance(ps, AEECLSID_vProperty, (void **)&pIvProperty);
3 IvProperty_InitProperty(pIvProperty,....)
4 IvCalObject_AddProperty(pObject,pIProperty)
5 IvCalStore_AddObject(pme->pIVCalStore,pCalObject ,dwOID);
BR,
Ivon chan