Re: Importing contacts in FSO

2008-07-31 Thread Andreas Bogk
Marco Trevisan (Treviño) schrieb:
 After the infos written about Qtopia/ASU and OM.GTK, how could I import 
 my contacts in FSO? Milestone II is so nice!!
 
 Maybe I should write a python script based on the zhone code or is there 
 already something for doing it?

As far as I know, there's no import code yet.  Be aware that currently 
FSO doesn't have a contacts database, it stores all the contacts on the 
SIM (which usually has limited capacity).

The API for storing contacts is pretty simple at the moment.  If you 
steal the dbus init code from zhone, adding contacts is done using:

   dbus_object.gsm_sim_iface.StoreEntry(reference, name, number)

where reference indicates the slot on the SIM card in which to store the 
entry (between 0 and whatever the maximum for the card is).

Andreas



___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Importing contacts in FSO

2008-07-31 Thread Marco Trevisan (Treviño)
Andreas Bogk wrote:
 As far as I know, there's no import code yet.  Be aware that currently 
 FSO doesn't have a contacts database, it stores all the contacts on the 
 SIM (which usually has limited capacity).
 
 The API for storing contacts is pretty simple at the moment.  If you 
 steal the dbus init code from zhone, adding contacts is done using:
 
dbus_object.gsm_sim_iface.StoreEntry(reference, name, number)
 
 where reference indicates the slot on the SIM card in which to store the 
 entry (between 0 and whatever the maximum for the card is).

Thanks for this, BTW during the past night I looked to the Zhone code 
and I got that it was using only the sim, so I've forced it to use 
only my phonebook hardcoding there my phonebook as shown in the Fake 
phonebook code. What I'd like to do is merging these contacts with the 
one saved on the SIM, so I'll be able to save new contacts (and view 
them) too...

-- 
Treviño's World - Life and Linux
http://www.3v1n0.net/


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Importing contacts in FSO

2008-07-31 Thread Andreas Bogk
Marco Trevisan (Treviño) schrieb:
 Thanks for this, BTW during the past night I looked to the Zhone code 
 and I got that it was using only the sim, so I've forced it to use 
 only my phonebook hardcoding there my phonebook as shown in the Fake 
 phonebook code. What I'd like to do is merging these contacts with the 
 one saved on the SIM, so I'll be able to save new contacts (and view 
 them) too...

Well, just execute both branches of the if...else in 
pyphone_contacts.prepare.  Make sure you use unique reference numbers 
for the stuff you add yourself, e.g. start numbering at 1000, not at 1 
as in the Fake phonebook.

Andreas


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community