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

Class Profile

source code

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

Instance Methods [hide private]
 
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_lgvx4400.Profile: GetImageOrigins, GetTargetsForImageOrigin, __init__, normalisegroups

Inherited from com_lgvx4400.Profile (private): _getgroup

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 PM225 (Sprint)
  serialsname = 'lgpm225'
  BP_Calendar_Version = 3
  phone_manufacturer = 'LG Electronics Inc'
  phone_model = 'PM225'
  brew_required = True
  RINGTONE_LIMITS = {'MAXSIZE': 250000}
  WALLPAPER_WIDTH = 160
  WALLPAPER_HEIGHT = 120
  MAX_WALLPAPER_BASENAME_LENGTH = 30
  WALLPAPER_FILENAME_CHARS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefgh...
  WALLPAPER_CONVERT_FORMAT = 'jpg'
  MAX_RINGTONE_BASENAME_LENGTH = 30
  RINGTONE_FILENAME_CHARS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghi...
  DIALSTRING_CHARS = "[^0-9PT#*]"
  imagetargets = {'wallpaper': {'format': 'JPEG', 'height': 120,...
  autodetect_delay = 3
  _supportedsyncs = (('phonebook', 'read', None), ('calendar', '...
  field_color_data = {'calendar': {'alarm': True, 'allday': True...

Inherited from com_lgvx4400.Profile: deviceclasses, imageorigins, usbids, usbids_straight, usbids_usbtoserial

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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
Overrides: com_lgvx4400.Profile.convertphonebooktophone

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 PM225 (Sprint)

Value:
phones.p_lgpm225

WALLPAPER_FILENAME_CHARS

Value:
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 .-_'

RINGTONE_FILENAME_CHARS

Value:
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 .-_'

imagetargets

Value:
{'wallpaper': {'format': 'JPEG',
               'height': 120,
               'meta-help': 'Display as wallpaper',
               'width': 160}}

_supportedsyncs

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

field_color_data

Value:
{'calendar': {'alarm': True,
              'allday': True,
              'category': False,
              'description': True,
              'end': True,
              'location': False,
              'memo': False,
              'priority': False,
...