Package phones :: Module com_lgvx4400 :: Class Profile
[hide private]
[frames] | no frames]

Class Profile

source code

       object --+    
                |    
com_phone.Profile --+
                    |
                   Profile
Known Subclasses:

Instance Methods [hide private]
 
GetImageOrigins(self) source code
 
GetTargetsForImageOrigin(self, origin) source code
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_getgroup(self, name, groups) source code
 
normalisegroups(self, helper, data)
Assigns groups based on category data
source code
 
convertphonebooktophone(self, helper, data)
Converts the data to what will be used by the phone
source code
 
QueryAudio(self, origin, currentextension, afi)
Query for MP3 file support
source code

Inherited from com_phone.Profile: SyncQuery, phonize

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  protocolclass
Various descriptions of data specific to LG VX4400
  serialsname = 'lgvx4400'
  BP_Calendar_Version = 3
  phone_manufacturer = 'LG Electronics Inc'
  phone_model = 'VX4400'
  brew_required = True
  WALLPAPER_WIDTH = 120
  WALLPAPER_HEIGHT = 98
  MAX_WALLPAPER_BASENAME_LENGTH = 19
  WALLPAPER_FILENAME_CHARS = "abcdefghijklmnopqrstuvwxyz01234567...
  WALLPAPER_CONVERT_FORMAT = "bmp"
  MAX_RINGTONE_BASENAME_LENGTH = 19
  RINGTONE_FILENAME_CHARS = "abcdefghijklmnopqrstuvwxyz012345678...
  DIALSTRING_CHARS = "[^0-9PT#*]"
  usbids_straight = ((4100, 24576, 2))
  usbids_usbtoserial = ((1659, 8963, None), (1027, 24577, None),...
  usbids = ((4100, 24576, 2), (1659, 8963, None), (1027, 24577, ...
  deviceclasses = ('serial')
  imageorigins = {'images': {'meta-help': 'General images'}}
  imagetargets = {'fullscreen': {'format': 'BMP', 'height': 133,...
  _supportedsyncs = (('phonebook', 'read', None), ('calendar', '...

Inherited from com_phone.Profile: autodetect_delay, excluded_ringtone_origins, excluded_wallpaper_origins, field_color_data, reboot_delay, ringtoneorigins, stockimageorigins, stockimagetargets

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

GetImageOrigins(self)

source code 
Overrides: com_phone.Profile.GetImageOrigins

GetTargetsForImageOrigin(self, origin)

source code 
Overrides: com_phone.Profile.GetTargetsForImageOrigin

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

convertphonebooktophone(self, helper, data)

source code 

Converts the data to what will be used by the phone

Parameters:
  • data - contains the dict returned by getfundamentals as well as where the results go

QueryAudio(self, origin, currentextension, afi)

source code 

Query for MP3 file support

Raise an exception if you cannot support the ringtone or any conversion of it.

Parameters:
  • audiofileinfo - A fileinfo.AudioFileInfo object specifying file's audio properties
  • currentextension - The extension currently used by the file
Returns:
("file extension", audiofile object). The file extension (excluding the leading dot) to make the file use. The audiofile object can be what was passed in unaltered meaning the file is fine as is, or make a new one to specify how the file should be converted. Note there is a MAXSIZE attribute if you need to limit file size.
Overrides: com_phone.Profile.QueryAudio
(inherited documentation)

Class Variable Details [hide private]

protocolclass

Various descriptions of data specific to LG VX4400

Value:
phones.p_lgvx4400

WALLPAPER_FILENAME_CHARS

Value:
"abcdefghijklmnopqrstuvwxyz0123456789 ."

RINGTONE_FILENAME_CHARS

Value:
"abcdefghijklmnopqrstuvwxyz0123456789 ."

usbids_usbtoserial

Value:
((1659, 8963, None), (1027, 24577, None), (1841, 8195, None))

usbids

Value:
((4100, 24576, 2),
 (1659, 8963, None),
 (1027, 24577, None),
 (1841, 8195, None))

imagetargets

Value:
{'fullscreen': {'format': 'BMP',
                'height': 133,
                'meta-help': 'Fullscreen such as startup screen',
                'width': 120},
 'pictureid': {'format': 'BMP',
               'height': 98,
               'meta-help': 'Display as picture id for a caller',
               'width': 120},
...

_supportedsyncs

Value:
(('phonebook', 'read', None),
 ('calendar', 'read', None),
 ('wallpaper', 'read', None),
 ('ringtone', 'read', None),
 ('call_history', 'read', None),
 ('sms', 'read', None),
 ('memo', 'read', None),
 ('phonebook', 'write', 'OVERWRITE'),
...