Re: [Evolution]: Notify Object Creation
- From: "Kunal/CSE/BMSCE/B'lore" <kunal kr gmail com>
- To: evolution-list gnome org
- Subject: Re: [Evolution]: Notify Object Creation
- Date: Wed, 10 May 2006 15:11:11 +0530
Hi Harish
Thanks for replyin.
Here's wat i m doing to create the event entry...
/* Create calendar client and open the calendar */
ECal *client = e_cal_new_system_calendar();
e_cal_open(*client, TRUE, NULL);
/* Create the calendar component ie. event entry */
ECalComponent *obj = e_cal_component_new();
// after setting the parameters, create the icalcomponent */
icalcomponent *icalcomp = e_cal_component_get_icalcompone
nt (calObj);
// now create object...i.e, add event entry in the calendar
e_cal_create_object (client, icalcomp, &uid, &error);
Now after all this, i actually get event entry in calendar.ics file.
But the gnome-desktop calendar (clock applet) does not shows this.
After logoff/restart, clock applet/evolution calendar shows the event
nicely..
I dont want to logoff/restart the system to get it updated by evolution
calendar/gnome clock applet. How to notify both about the object
creation?
thks
Kunal
On 5/10/06, Harish Krishnaswamy <kharish novell com> wrote:
On Wed, 2006-05-10 at 13:56 +0530, Kunal/CSE/BMSCE/B'lore wrote:
> Hello
>
> I am working on a project which create the calendar event entry using
> the evolution API! Till now i hve been able to create the event entry
> which is stored in calendar.ics (the default system calendar
> database). But to get the same entry details in gnome-desktop calendar
> or evolution calendar also, i hve to log off-login (or restart ) the
> system. It seems that the gnome desktop or evolution data server are
> not being notified by any object (event entry) creation! I just wanted
> to know how to send such signals to evolution dataserver about the
> creation of any new event entry?
>
I am afraid I did not understand your problem much. Using the ecal
libraries (client), you just need to create/use a calendar source
(ESource) and use the APIs to create events. Evolution-Data-Server
actually creates the events in response to your request - hence you do
not have to notify separately.
By gnome-desktop calendar - do you mean the Clock applet ? If yes, make
sure the calendar in which the event was created is enabled.
No, Log-offs and system restarts have no role to play here. Refer to the
test-ecal.c under calendar/tests in evolution-data-server module for
some reference code.
Harish
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]