Re: ContactDb implementation

[David: is it just me, or do you seem to be posting messages with messed
up Reply-To headers?]

On Sun, 28 Jan 2007 22:52:34 EST., David Desrosiers wrote:
> On Sun, 2007-01-28 at 17:07 +0100, Tom Billiet wrote:
> > Does gnome-pilot offer a function like "get_pda_version(pilot_id)" or
> > something similar? I can't find it.
> The SysInfo struct in libpisock will be able to do that for you..

This is available during a sync, but Tom's problem is that he needs
to register a db with gnome-pilot when the application starts, and
at that stage a sync is not available.

The 'romversion' is available as part of the stored per-device 'pilot'
configuration structure, so you can probably retrieve that, but the
problem is that you could have more than one pilot device defined, one
OS5 and one OS3, and you'd want to register for both ContactsDb-Padd and

David laid out the version info that should be checked at runtime
with more detail than I'm aware of.

What I'd hoped was that 'AddressDb' would be available as a 'fake' Db
on OS5.  If that is the case, then you could register for AddressDb,
but switch to using Contact-Padd at runtime if appropriate.

If that is not workable, then we should probably extend the gnome-pilot
conduit API to allow a conduit to register for more than one database,
or else for a 'special' dummy database that has semantics 'run once per
sync'.  This should be doable.  The conduit would be responsible for not
running more than once per sync even if called twice for different DBs.


Matt Davey		I stopped believing in Santa Claus when I was six. 
mcdavey mrao cam ac uk 	Mother took me to see him in a department store and
			he asked for my autograph.  -- Shirley Temple Black

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