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

Type Profile

object --+
         |
        Profile

Known Subclasses:
Profile, Profile, Profile, Profile, Profile, Profile, Profile, Profile, Profile, Profile, Profile, Profile, Profile, Profile

Method Summary
  __init__(self)
  GetImageOrigins(self)
  GetTargetsForImageOrigin(self, origin)
  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
  QueryAudio(self, origin, currentextension, audiofileinfo)
Query for MP3 file support
  SyncQuery(self, source, action, actiontype)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
int autodetect_delay = 0                                                                     
int BP_Calendar_Version = 2                                                                     
tuple deviceclasses = ('modem', 'serial')
str DIALSTRING_CHARS = '[^0-9PT#*]'
tuple excluded_ringtone_origins = ()
tuple excluded_wallpaper_origins = ('video',)
dict field_color_data = {'todo': {'status': None, 'due_date':...
dict imageorigins = {'images': {'meta-help': 'General images'...
int MAX_RINGTONE_BASENAME_LENGTH = 64                                                                    
int MAX_WALLPAPER_BASENAME_LENGTH = 64                                                                    
int reboot_delay = 0                                                                     
str RINGTONE_FILENAME_CHARS = 'abcdefghijklmnopqrstuvwxyz012...
tuple ringtoneorigins = ()
dict stockimageorigins = {'images(sd)': {'meta-help': 'Genera...
dict stockimagetargets = {'outsidelcd': {'meta-help': 'Displa...
tuple usbids = ()
str WALLPAPER_CONVERT_FORMAT = 'bmp'
str WALLPAPER_FILENAME_CHARS = 'abcdefghijklmnopqrstuvwxyz01...
int WALLPAPER_HEIGHT = 100                                                                   
int WALLPAPER_WIDTH = 100                                                                   

Method Details

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

QueryAudio(self, origin, currentextension, audiofileinfo)

Query for MP3 file support

Raise an exception if you cannot support the ringtone or any conversion of it.
Parameters:
currentextension - The extension currently used by the file
audiofileinfo - A fileinfo.AudioFileInfo object specifying file's audio properties
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

autodetect_delay

Type:
int
Value:
0                                                                     

BP_Calendar_Version

Type:
int
Value:
2                                                                     

deviceclasses

Type:
tuple
Value:
('modem', 'serial')                                                    

DIALSTRING_CHARS

Type:
str
Value:
'[^0-9PT#*]'                                                           

excluded_ringtone_origins

Type:
tuple
Value:
()                                                                     

excluded_wallpaper_origins

Type:
tuple
Value:
('video',)                                                             

field_color_data

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

imageorigins

Type:
dict
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'}}                          

MAX_RINGTONE_BASENAME_LENGTH

Type:
int
Value:
64                                                                    

MAX_WALLPAPER_BASENAME_LENGTH

Type:
int
Value:
64                                                                    

reboot_delay

Type:
int
Value:
0                                                                     

RINGTONE_FILENAME_CHARS

Type:
str
Value:
'abcdefghijklmnopqrstuvwxyz0123456789 .'                               

ringtoneorigins

Type:
tuple
Value:
()                                                                     

stockimageorigins

Type:
dict
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'},
 'video': {'meta-help': 'Video clips'},
...                                                                    

stockimagetargets

Type:
dict
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'}}                   

usbids

Type:
tuple
Value:
()                                                                     

WALLPAPER_CONVERT_FORMAT

Type:
str
Value:
'bmp'                                                                  

WALLPAPER_FILENAME_CHARS

Type:
str
Value:
'abcdefghijklmnopqrstuvwxyz0123456789 .'                               

WALLPAPER_HEIGHT

Type:
int
Value:
100                                                                   

WALLPAPER_WIDTH

Type:
int
Value:
100                                                                   

Generated by Epydoc 2.1 on Fri Aug 15 18:58:35 2008 http://epydoc.sf.net