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

Class Profile

source code

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

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

Inherited from com_samsung_packet.Profile: 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
Proposed descriptions of data usign AT commands
  serialsname = 'spha620'
  MAX_RINGTONE_BASENAME_LENGTH = 19
  RINGTONE_FILENAME_CHARS = 'abcdefghijklmnopqrstuvwxyz012345678...
  RINGTONE_LIMITS = {'MAXSIZE': 250000}
  phone_manufacturer = 'SAMSUNG'
  phone_model = 'SPH-A620/152'
  _supportedsyncs = (('phonebook', 'read', None), ('phonebook', ...
  __audio_ext = {'MIDI': 'mid', 'PMD': 'pmd', 'QCP': 'qcp'}

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, field_color_data, imageorigins, reboot_delay, ringtoneorigins, stockimageorigins, stockimagetargets

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__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]

protocolclass

Proposed descriptions of data usign AT commands

Value:
phones.p_samsungspha620

RINGTONE_FILENAME_CHARS

Value:
'abcdefghijklmnopqrstuvwxyz0123456789_ .'

_supportedsyncs

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