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

Class Profile

source code

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

Instance Methods [hide private]
 
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: GetImageOrigins, GetTargetsForImageOrigin, SyncQuery

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

Class Variables [hide private]
  protocolclass
  serialsname = 'sphm300'
  MAX_RINGTONE_BASENAME_LENGTH = 19
  RINGTONE_FILENAME_CHARS = 'abcdefghijklmnopqrstuvwxyz012345678...
  RINGTONE_LIMITS = {'MAXSIZE': 250000}
  phone_manufacturer = 'SAMSUNG'
  phone_model = 'SPH-A620/152'
  numbertypetab = ('cell', 'home', 'office', 'pager', 'fax')
  imageorigins = {}
  imagetargets = {}
  _supportedsyncs = (('phonebook', 'read', None), ('phonebook', ...
  __audio_ext = {'MIDI': 'mid', 'PMD': 'pmd', 'QCP': 'qcp'}
  field_color_data = {'calendar': {'alarm': True, 'allday': Fals...

Inherited from com_samsung_packet.Profile: BP_Calendar_Version, MAX_WALLPAPER_BASENAME_LENGTH, OVERSIZE_PERCENTAGE, WALLPAPER_CONVERT_FORMAT, WALLPAPER_FILENAME_CHARS, WALLPAPER_HEIGHT, WALLPAPER_WIDTH, deviceclasses, usbids

Inherited from com_phone.Profile: DIALSTRING_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]

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_ .'

_supportedsyncs

Value:
(('phonebook', 'read', None),
 ('phonebook', 'write', 'OVERWRITE'),
 ('calendar', 'read', None),
 ('calendar', 'write', 'OVERWRITE'),
 ('todo', 'read', None),
 ('todo', 'write', 'OVERWRITE'),
 ('memo', 'read', None),
 ('memo', 'write', 'OVERWRITE'),
...

field_color_data

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