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

Class Profile

source code

            object --+        
                     |        
     com_phone.Profile --+    
                         |    
com_samsung_packet.Profile --+
                             |
                            Profile

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

Inherited from com_samsung_packet.Profile: __init__, convertphonebooktophone, normalisegroups, phonize

Inherited from com_samsung_packet.Profile (private): _getgroup

Inherited from com_phone.Profile: SyncQuery

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

Class Variables [hide private]
  protocolclass
  serialsname = 'sphm300'
  WALLPAPER_WIDTH = 128
  WALLPAPER_HEIGHT = 160
  MAX_RINGTONE_BASENAME_LENGTH = 19
  RINGTONE_FILENAME_CHARS = 'abcdefghijklmnopqrstuvwxyz012345678...
  RINGTONE_LIMITS = {'MAXSIZE': 250000}
  phone_manufacturer = 'SAMSUNG'
  phone_model = 'SPH-M300MEDIA'
  numbertypetab = ('cell', 'home', 'office', 'pager', 'fax')
  usbids = ((1256, 26176, 2))
  deviceclasses = ('serial')
  ringtoneorigins = ('ringers')
  excluded_ringtone_origins = ('ringers')
  excluded_wallpaper_origins = ('camera', 'camera-fullsize')
  imageorigins = {'camera': {'meta-help': 'Camera images'}, 'cam...
  imagetargets = {'wallpaper': {'format': 'JPEG', 'height': 160,...
  _supportedsyncs = (('wallpaper', 'read', None), ('wallpaper', ...
  __audio_ext = {'MIDI': 'mid', 'PMD': 'pmd', 'QCP': 'qcp'}
  field_color_data = {'calendar': {'alarm': False, 'allday': Fal...

Inherited from com_samsung_packet.Profile: BP_Calendar_Version, MAX_WALLPAPER_BASENAME_LENGTH, OVERSIZE_PERCENTAGE, WALLPAPER_CONVERT_FORMAT, WALLPAPER_FILENAME_CHARS

Inherited from com_phone.Profile: DIALSTRING_CHARS, 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)

Class Variable Details [hide private]

protocolclass

Value:
phones.p_samsungsphm300

RINGTONE_FILENAME_CHARS

Value:
'abcdefghijklmnopqrstuvwxyz0123456789_ .'

imageorigins

Value:
{'camera': {'meta-help': 'Camera images'},
 'camera-fullsize': {'meta-help': 'Fullsize camera images'},
 'images': {'meta-help': 'General images'}}

imagetargets

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

_supportedsyncs

Value:
(('wallpaper', 'read', None),
 ('wallpaper', 'write', None),
 ('ringtone', 'read', None),
 ('ringtone', 'write', None))

field_color_data

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