[sync] I need some more functions

Anthony Mills amills at gascard.net
Mon Jan 19 21:41:46 PST 2004


I need a way to get uid from locid.  We can use locName(Username), 
target('contacts', 'notes', etc), sourceURI, and targetLocURI(locid).  I 
can write the functions I just need to know where to put the mappings. 
I looked at lib/History.api and I don't think it will work.  One it is 
not in framework, so I can use it, right?  Two, it seems to return a 
list and not just one item.  Could we use prefs?  It seems kind of a 
waste for just a few bits of info.  Here are the functions that I would 
put into State(we can move them out of State later).

     getUID($target, $shared) //returns local id
     setUID($target, $shared, $locid) //returns true/false
     removeUID($target, $locid) //returns $shareid/false

They get locName, and sourceURI from the class that they are declared in.

Thanks,

Anthony





More information about the sync mailing list