Re: GnomeCard conduit for gnome-pilot



> Miguel de Icaza wrote:
> > 
> > > Ideally, the CORBA interfaces should be useful for non-gnome apps as
> > > well. This step makes that harder.
> > 
> > This indeed makes sense, but the current way the vCard structure is
> > defined is just not extensible.
> > 
> > Probably having an interface like this would make sense:
> > 
> > vCard {
> >       string get_value (in string key);
> > }
> > 
> 
> This does make more sense than just returning the entire vCard. We'll
> need some sort of iterator though (sorry for stating the obvious). We
> should also remember that there may be more than one email address, the
> same goes for most of the fields (as I recall, it's been a while since I
> read the vCard spec).

I know the discussion is mostly about vCard, but if we want to have a 
uniform IDL for gnome-pim, it's worth noting that the interface 
described above is a very natural mapping onto the iCalendar parsing 
library (libical)...
 
It provides a get method (with an enum argument for the property 
name) and iterators to work through multiple values...

(Feel free to disregard this entirely, since I have little 
familiarity with the current gnomecal IDL.)

-Russell


-- 
Russell Steinthal		Columbia Law School, Class of 2002
<rms39@columbia.edu>		Columbia College, Class of 1999
<steintr@nj.org>		UNIX System Administrator, nj.org




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]