Discussion:
[Bitpim-devel] Re: [bitpim-cvs-checkins] bitpim com_phone.py,1.18,1.19 com_samsungscha650.py,1.12,1.13 gui.py,1.151,1.152 pubsub.py,1.10,1.11 ringers.py,1.15,1.16
Roger Binns
2004-11-13 20:03:10 UTC
Permalink
__phone_entries_range=xrange(1,501)
__pb_max_entries=25
- __pb_max_speeddials=99
+ __pb_max_speeddials=500
__pb_entry=0
__pb_mem_loc=1
__pb_group=2
We have been doing that sort of thing as part of the
"protocol description" for each phone.

For example, p_lgvx4400.p contains

FIRSTSPEEDDIAL=1
LASTSPEEDDIAL=99
NUMPHONEBOOKENTRIES=200

and p_lgvx6000.p contains

FIRSTSPEEDDIAL=2
LASTSPEEDDIAL=99
NUMPHONEBOOKENTRIES=500

The actual phone code references self.protocolclass which is
the right module for that phone. In almost all cases the
phone code picks up all such information from the protocolclass.

It is worthwhile looking at the files for the LG XV7000 (com_lgvx7000
and p_lgvx7000) to see how everything just inherits from the closest
phone models and overrides what is necessary.

Since we don't have protocol description files for AT based phones
yet, it isn't possible yet. However I would like to get there as
quickly as possible.

Roger

Loading...