From: Roger B. <ro...@ro...> - 2004-02-19 09:06:12
|
Chris Poon wrote: > Took me a while, but I think we can move the getphonebook routine to > the com_lg module, as long as it calls another function to handle > the initialization (I called it pbinit inside com_lgtm520). The init > routine will just return the number of entries in the phonebook so that > the getphonebook routine can display the info in the log pane... > > Patches to come... You need to hoist the method out of com_lgvx4400.py as well so they share the common code in com_lg. When you get bored with that, there is also the saving phonebook routine to do. On that phone I think you have to send a pbstartsyncrequest at the begining and pbendsyncrequest at the end. The latter results in the phone rebooting, and if you don't call it, the phone reboots after a minute of idle time anyway. Fortunately the VX4400 and VX6000 don't need it. Roger |