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

Class Profile

source code

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

Instance Methods [hide private]
 
GetImageOrigins(self) source code
 
GetTargetsForImageOrigin(self, origin) source code
 
QueryAudio(self, origin, currentextension, afi)
Query for MP3 file support
source code
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code

Inherited from com_lgvx4400.Profile: convertphonebooktophone, 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 VX8300
  serialsname = 'lgvx8300'
  BP_Calendar_Version = 3
  phone_manufacturer = 'LG Electronics Inc'
  phone_model = 'VX8300'
  WALLPAPER_WIDTH = 275
  WALLPAPER_HEIGHT = 175
  MAX_WALLPAPER_BASENAME_LENGTH = 32
  WALLPAPER_FILENAME_CHARS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefgh...
  WALLPAPER_CONVERT_FORMAT = "jpg"
  DIALSTRING_CHARS = "[^0-9PW#*]"
  MAX_RINGTONE_BASENAME_LENGTH = 32
  RINGTONE_FILENAME_CHARS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghi...
  imageorigins = {'images': {'meta-help': 'General images'}, 'im...
  ringtoneorigins = ('ringers', 'sounds', 'mp3')
  excluded_ringtone_origins = ('sounds', 'mp3')
  imagetargets = {'outsidelcd': {'format': 'JPEG', 'height': 81,...
  _supportedsyncs = 'phonebook', 'read', None, ('calendar', 'rea...
  field_color_data = {'calendar': {'alarm': True, 'allday': Fals...

Inherited from com_lgvx8100.Profile: bluetooth_mfg_id, excluded_wallpaper_origins

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

Inherited from com_phone.Profile: autodetect_delay, reboot_delay, 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

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)

__init__(self)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

Class Variable Details [hide private]

protocolclass

Various descriptions of data specific to LG VX8300

Value:
phones.p_lgvx8300

WALLPAPER_FILENAME_CHARS

Value:
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_() .'

RINGTONE_FILENAME_CHARS

Value:
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_() .'

imageorigins

Value:
{'images': {'meta-help': 'General images'},
 'images(sd)': {'meta-help': 'General images stored on removable media\
'},
 'video': {'meta-help': 'Video clips'},
 'video(sd)': {'meta-help': 'Video clips stored on removable media'}}

imagetargets

Value:
{'outsidelcd': {'format': 'JPEG',
                'height': 81,
                'meta-help': 'Display on outside screen',
                'width': 96},
 'wallpaper': {'format': 'JPEG',
               'height': 184,
               'meta-help': 'Display as wallpaper',
               'width': 176}}

_supportedsyncs

Value:
'phonebook', 'read', None, ('calendar', 'read', None), ('wallpaper', '\
read', None), ('ringtone', 'read', None), ('call_history', 'read', Non\
e), ('sms', 'read', None), ('memo', 'read', None), ('phonebook', 'writ\
e', 'OVERWRITE'), ('calendar', 'write', 'OVERWRITE'), ('wallpaper', 'w\
rite', 'MERGE'), ('wallpaper', 'write', 'OVERWRITE'), ('ringtone', 'wr\
ite', 'MERGE'), ('ringtone', 'write', 'OVERWRITE'), ('sms', 'write', '\
OVERWRITE'), ('memo', 'write', 'OVERWRITE'),

field_color_data

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