PyXR

c:\projects\bitpim\src \ phones \ com_lgvx5400.py



0001 #!/usr/bin/env python
0002 
0003 ### BITPIM
0004 ###
0005 ### Copyright (C) 2006 Joe Pham <djpham@bitpim.org>
0006 ###
0007 ### This program is free software; you can redistribute it and/or modify
0008 ### it under the terms of the BitPim license as detailed in the LICENSE file.
0009 ###
0010 ### $Id: com_lgvx5400.py 4472 2007-11-29 03:58:54Z djpham $
0011 
0012 """
0013 Communicate with the LG VX5400 cell phone
0014 """
0015 
0016 import common
0017 import com_lgvx8550
0018 import p_lgvx8550
0019 
0020 p_lgvx5400=p_lgvx8550
0021 parentphone=com_lgvx8550.Phone
0022 class Phone(parentphone):
0023     desc="LG-VX5400"
0024     helpid=None
0025     protocolclass=p_lgvx5400
0026     serialsname='lgvx5400'
0027 
0028     my_model='VX5400'
0029 
0030     builtinringtones= ('Low Beep Once', 'Low Beeps', 'Loud Beep Once', 'Loud Beeps', 'Door Bell', 'VZW Default Ringtone') + \
0031                       tuple(['Ringtone '+`n` for n in range(1,13)]) + \
0032                       ('No Ring',)
0033 
0034     ringtonelocations= (
0035         # type           index file             default dir                 external dir  max  type   index
0036         ('ringers',     'dload/myringtone.dat','brew/mod/10889/ringtones', '',            100, 0x01,  100),
0037         ( 'sounds',     'dload/mysound.dat',   'brew/mod/18067',           '',            100, 0x02,  None),
0038         )
0039 
0040     wallpaperlocations= (
0041         #  type          index file            default dir     external dir  max  type Index
0042         ( 'images',     'dload/image.dat',    'brew/mod/10888', '',          100, 0x00, 100),
0043         )
0044 
0045 parentprofile=com_lgvx8550.Profile
0046 class Profile(parentprofile):
0047     phone_manufacturer='LG Electronics Inc'
0048     phone_model='VX5400'
0049     # inside screen resoluation
0050     WALLPAPER_WIDTH=128
0051     WALLPAPER_HEIGHT=160
0052 
0053     ringtoneorigins=('ringers', 'sounds')
0054 
0055     imageorigins={}
0056     imageorigins.update(common.getkv(parentprofile.stockimageorigins, "images"))
0057 
0058     # our targets are the same for all origins
0059     imagetargets={}
0060     imagetargets.update(common.getkv(parentprofile.stockimagetargets, "wallpaper",
0061                                       {'width': 128, 'height': 160, 'format': "JPEG"}))
0062     imagetargets.update(common.getkv(parentprofile.stockimagetargets, "pictureid",
0063                                       {'width': 96, 'height': 64, 'format': "JPEG"}))
0064     imagetargets.update(common.getkv(parentprofile.stockimagetargets, "outsidelcd",
0065                                       {'width': 96, 'height': 64, 'format': "JPEG"}))
0066 
0067     _supportedsyncs=(
0068         ('phonebook', 'read', None),  # all phonebook reading
0069         ('calendar', 'read', None),   # all calendar reading
0070         ('wallpaper', 'read', None),  # all wallpaper reading
0071         ('ringtone', 'read', None),   # all ringtone reading
0072         ('call_history', 'read', None),# all call history list reading
0073         ('sms', 'read', None),         # all SMS list reading
0074         ('memo', 'read', None),        # all memo list reading
0075         ('phonebook', 'write', 'OVERWRITE'),  # only overwriting phonebook
0076         ('calendar', 'write', 'OVERWRITE'),   # only overwriting calendar
0077         ('wallpaper', 'write', 'MERGE'),      # merge and overwrite wallpaper
0078         ('wallpaper', 'write', 'OVERWRITE'),
0079         ('ringtone', 'write', 'MERGE'),      # merge and overwrite ringtone
0080         ('ringtone', 'write', 'OVERWRITE'),
0081         ('sms', 'write', 'OVERWRITE'),        # all SMS list writing
0082         ('memo', 'write', 'OVERWRITE'),       # all memo list writing
0083         ('t9_udb', 'write', 'OVERWRITE'),
0084         )
0085     if __debug__:
0086         _supportedsyncs+=(
0087         ('t9_udb', 'read', 'OVERWRITE'),
0088         )
0089 

Generated by PyXR 0.9.4