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

Class Profile

source code

       object --+                
                |                
com_phone.Profile --+            
                    |            
     com_etsi.Profile --+        
                        |        
         com_moto.Profile --+    
                            |    
        com_moto_cdma.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
 
convertphonebooktophone(self, helper, data) 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]
  serialsname = 'motov710'
  WALLPAPER_WIDTH = 176
  WALLPAPER_HEIGHT = 220
  MAX_WALLPAPER_BASENAME_LENGTH = 37
  WALLPAPER_FILENAME_CHARS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefgh...
  WALLPAPER_CONVERT_FORMAT = 'jpg'
  usbids = ((8888, 10786, 1), (8888, 10850, 1))
  deviceclasses = ('modem')
  phone_manufacturer = 'Motorola'
  phone_model = 'V710 '
  common_model_name = 'V710'
  generic_phone_model = 'Motorola CDMA v710 Phone'
  imageorigins = {'images': {'meta-help': 'General images'}}
  imagetargets = {'fullscreen': {'format': 'JPEG', 'height': 220...
  _supportedsyncs = (('phonebook', 'read', None), ('phonebook', ...
  field_color_data = {'calendar': {'alarm': True, 'allday': Fals...

Inherited from com_moto.Profile: BP_Calendar_Version

Inherited from com_phone.Profile: DIALSTRING_CHARS, MAX_RINGTONE_BASENAME_LENGTH, RINGTONE_FILENAME_CHARS, autodetect_delay, excluded_ringtone_origins, excluded_wallpaper_origins, 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)

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]

WALLPAPER_FILENAME_CHARS

Value:
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789()_ .-'

imagetargets

Value:
{'fullscreen': {'format': 'JPEG',
                'height': 220,
                'meta-help': 'Fullscreen such as startup screen',
                'width': 176},
 'outsidelcd': {'format': 'JPEG',
                'height': 140,
                'meta-help': 'Display on outside screen',
                'width': 176},
...

_supportedsyncs

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

field_color_data

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