Re: libeventdb question (list events)

"Martin Felis" <[email protected]> Sun, 13 Aug 2006 21:19:18 +1200
Newsgroups gmane.comp.handhelds.gpe
Message-ID <[email protected]>
Hi Neal

> event_db_list_for_period not only lists the events that occur between
> two times but it also expands the recurrences.  What you want is a
> function which returns all of the events in the database.  This could
> be added but it is already basically available: list all the calendars
> (event_db_list_event_calendars) and then get the list of events in
> each calendar (event_calendar_list_events).
>
> I'm interested in what you are trying to do.  libeventdb does not work
> well with multiple readers or writers (yet).

I'm the syncing guy (gpesyncd + opensync plugin) and I currently try
to get the categories working. Through this I saw some changes in the
database and your improvements on the libeventdb.

The basic syncing process is that the plugin from the hosts connects
to the gpesyncd which in return converts all the pim data in the
sqlite database to the vcard, vevent and vtodos by using the
libgpevtype.

Now I'll try to convince the gpesyncd to use libeventdb for all the
stuff I queried the database manually and therefore I need all the
events and convert them to vevents, which works (I currently use the
time period from 0, to 2^31 -1 but I'll try your suggestion) .

However there is another issue: Do you have already plans how to
import a vevent to the database? Because to create a new event you
have to have a database which would be another parameter if the
implementation would be in the libgpevtype. Another approach could be
to do all the conversion in libeventdb.

Currently the syncing is broken due to this and I really would like to
change that. I am really willing to help you but I don't want to mess
randomly in your code so just tell me what your ideas are and I'll do
it, if you like.

Cheers, Martin