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

Class Profile

source code

object --+
         |
        Profile
Known Subclasses:

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
SyncQuery(self, source, action, actiontype) source code
 
GetImageOrigins(self) source code
 
GetTargetsForImageOrigin(self, origin) source code
 
QueryAudio(self, origin, currentextension, audiofileinfo)
Query for MP3 file support
source code
 
phonize(self, str)
Convert the phone number into something the phone understands uses DIALSTRING_CHARS to compare phone number with and strips all other characters from the string
source code

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

Class Variables [hide private]
  BP_Calendar_Version = 2
  WALLPAPER_WIDTH = 100
  WALLPAPER_HEIGHT = 100
  MAX_WALLPAPER_BASENAME_LENGTH = 64
  WALLPAPER_FILENAME_CHARS = 'abcdefghijklmnopqrstuvwxyz01234567...
  WALLPAPER_CONVERT_FORMAT = 'bmp'
  MAX_RINGTONE_BASENAME_LENGTH = 64
  RINGTONE_FILENAME_CHARS = 'abcdefghijklmnopqrstuvwxyz012345678...
  DIALSTRING_CHARS = '[^0-9PT#*]'
  field_color_data = {'calendar': {'alarm': None, 'allday': None...
  autodetect_delay = 0
  reboot_delay = 0
  usbids = ()
  deviceclasses = ('modem', 'serial')
  _supportedsyncs = ()
  ringtoneorigins = ()
  excluded_ringtone_origins = ()
  excluded_wallpaper_origins = ('video')
  stockimageorigins = {'camera': {'meta-help': 'Camera images'},...
  stockimagetargets = {'fullscreen': {'meta-help': 'Fullscreen s...
  imageorigins = {'<developerneedstoupdate>': {'meta-help': 'The...
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, audiofileinfo)

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.

Class Variable Details [hide private]

WALLPAPER_FILENAME_CHARS

Value:
'abcdefghijklmnopqrstuvwxyz0123456789 .'

RINGTONE_FILENAME_CHARS

Value:
'abcdefghijklmnopqrstuvwxyz0123456789 .'

field_color_data

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

stockimageorigins

Value:
{'camera': {'meta-help': 'Camera images'},
 'camera-fullsize': {'meta-help': 'Fullsize camera images'},
 'drm': {'meta-help': 'DRM protected images'},
 'images': {'meta-help': 'General images'},
 'images(sd)': {'meta-help': 'General images stored on removable media\
'},
 'mms': {'meta-help': 'Multimedia Messages'},
 'picture ids': {'meta-help': 'Images used for contact/group Picture I\
...

stockimagetargets

Value:
{'fullscreen': {'meta-help': 'Fullscreen such as startup screen'},
 'outsidelcd': {'meta-help': 'Display on outside screen'},
 'pictureid': {'meta-help': 'Display as picture id for a caller'},
 'wallpaper': {'meta-help': 'Display as wallpaper'}}

imageorigins

Value:
{'<developerneedstoupdate>': {'meta-help': 'The developer needs to upd\
ate this phone profile'},
 'camera': {'meta-help': 'Camera images'},
 'images': {'meta-help': 'General images'},
 'mms': {'meta-help': 'Multimedia Messages'}}