Package phones :: Module com_samsungscha870 :: Class Phone
[show private | hide private]
[frames | no frames]

Type Phone

      object --+        
               |        
           Phone --+    
                   |    
RealBrewProtocol --+    
                   |    
               Phone --+
                       |
                      Phone


Method Summary
  __init__(self, logtarget, commport)
Calls all the constructors and sets initial modes
  get_groups(self)
  get_ringtone_index(self)
  get_wallpaper_index(self)
  getfilecontents(self, filename, use_cache)
  saveringtones(self, fundamentals, merge)
Save ringtones to the phone
  savewallpapers(self, fundamentals, merge)
Save ringtones to the phone
  _add_files(self, index_key, media_key, new_list, fundamentals)
Add new file using BEW
  _add_wp_cache(self, wp, idx, fundamentals)
  _get_del_new_list(self, index_key, media_key, merge, fundamentals, origins)
Return a list of media being deleted and being added
  _get_dir_index(self, idx, result, pathname, origin, excludenames)
  _get_file_wallpaper_index(self, idx, result)
  _read_ringtone_range(self, fundamentals)
  _update_wp_index_file(self, filelist)
    Inherited from Phone
  check_my_phone(self, res)
  detectphone(_, coms, likely_ports, res, _module, _log)
(Class method)
  get_esn(self)
  get_ringtone_range(self, name, fundamentals)
  get_wallpaper_range(self, wallpaper, fundamentals)
  getcalendar(self, fundamentals)
  getfundamentals(self, results)
Gets information fundamental to interopating with the phone and UI.
  getphonebook(self, fundamentals)
  getringtones(self, fundamentals)
  getwallpapers(self, fundamentals)
  is_mode_brew(self)
  ringtone_name_from_range(self, range, fundamentals)
  savecalendar(self, fundamentals, merge)
  savememo(self, fundamentals, merge)
  savephonebook(self, fundamentals)
  _build_common_msg(self, entry, sms_hdr)
  _build_draft_msg(self, sms_hdr, buf, res)
  _build_in_msg(self, sms_hdr, buf, res)
  _build_locked_field(self, entry, buf)
  _build_sent_msg(self, sms_hdr, buf, res)
  _del_existing_cal_entries(self)
  _del_existing_memo_entries(self)
  _del_files(self, index_key, _del_list, fundamentals)
Delete specified media files, need to be in OBEX mode
  _del_private_dicts(self, fundamentals)
  _extract_entries(self, filename, res, fundamentals)
  _get_builtin_ringtone_index(self, idx, result)
  _get_builtin_wallpaper_index(self, idx, result)
  _get_ch(self, call_list, folder, res)
  _get_ch_index(self)
  _get_file_ringtone_index(self, idx, result, index_file_name, index_file_class, origin)
  _get_media_from_index(self, index_key, media_key, fundamentals)
  _get_wp_filename(self, wp, wp_index)
  _item_from_index(self, name, item_key, index_dict)
  _read_calendar_index(self)
  _read_sms(self, filename, res, fundamentals)
  _replace_files(self, index_key, media_key, new_list, fundamentals)
Replace existing files with new contents using BREW
  _rescale_and_cache(self, wp, filename, idx, fundamentals)
  _time_now(self)
  _update_media_index(self, index_file_class, index_entry_class, media_path, excluded_files, index_file_name)
  _write_cal_entries(self, next_index, fundamentals)
  _write_cal_index(self, next_index, fundamentals)
  _write_memo_entries(self, next_index, fundamentals)
  _write_memo_index(self, next_index, fundamentals)
    Inherited from Phone
  alert(self, message, wait)
Raises an alert in the main thread
  close(self)
  getcallhistory(self, fundamentals)
  getmemo(self, fundamentals)
  getsms(self, fundamentals)
  log(self, str)
Log a message
  logdata(self, str, data, klass)
Log some data with option data object/class for the analyser
  progress(self, pos, max, desc)
Update the progress meter
  raisecommsdnaexception(self, str)
Raise a comms DeviceNeedsAttention Exception
  raisecommsexception(self, str, klass)
  readobject(self, filename, object_class, logtitle, uselocalfs)
Read the specified filename and bind it to the object class
  setmode(self, desiredmode)
Ensure the phone is in the right mode
  writeobject(self, filename, obj, logtitle, uselocalfs)
Writhe the object into the file
  _setmodemodem(self)
    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)
    Inherited from RealBrewProtocol
  basename(self, path)
  dirname(self, filename)
  exists(self, path)
  explore0c(self)
  get_brew_esn(self)
  getfilesystem(self, dir, recurse)
  getfirmwareinformation(self)
  hassubdirs(self, dir)
  isdir(self, path)
  isfile(self, filename)
  join(self, *args)
  listfiles(self, dir)
  listsubdirs(self, dir, recurse)
  mkdir(self, name)
  mkdirs(self, directory)
  modemmoderequest(self)
  offlinerequest(self, reset, delay)
  rmdir(self, name)
  rmdirs(self, path)
  rmfile(self, name)
  sendbrewcommand(self, request, responseclass, callsetmode)
  setfileattr(self, filename, date)
  statfile(self, name)
  writefile(self, name, contents)
  _setmodebrew(self)

Class Variable Summary
dict builtin_ringtones = {'Melody 4': 89, 'Melody 5': 90, 'Me...
dict builtin_sounds = {'Clapping': 92, 'Train': 96, 'Rain For...
dict builtin_wallpapers = {'No Picture': None}
str desc = 'SCH-A870'
str detected_model = 'A870'
str helpid = 'phone-samsungscha870.htm'
str my_manufacturer = 'SAMSUNG'
str my_model = 'SCH-A870/187'
str ringtone_default_range = 'range_tones_preloaded_el_01'
str ringtone_noring_range = 'range_tones_preloaded_el_15'
str serialsname = 'scha870'
    Inherited from Phone
dict builtin_groups = {1: 'Business', 2: 'Colleague', 3: 'Fam...
    Inherited from Phone
NotImplementedType getcallhistory = NotImplemented
NotImplementedType getmemo = NotImplemented
NotImplementedType getplaylist = NotImplemented
NotImplementedType getsms = NotImplemented
NotImplementedType gett9db = NotImplemented
NotImplementedType gettodo = NotImplemented
str MODEMODEM = 'modemodem'
str MODENONE = 'modenone'
    Inherited from RealBrewProtocol
str brewterminator = '~'
str MODEBREW = 'modebrew'
int _brewepochtounix = 315964800                                                             

Instance Method Details

__init__(self, logtarget, commport)
(Constructor)

Calls all the constructors and sets initial modes
Overrides:
phones.com_samsungscha950.Phone.__init__

saveringtones(self, fundamentals, merge)

Save ringtones to the phone
Overrides:
phones.com_samsungscha950.Phone.saveringtones

savewallpapers(self, fundamentals, merge)

Save ringtones to the phone
Overrides:
phones.com_samsungscha950.Phone.savewallpapers

_add_files(self, index_key, media_key, new_list, fundamentals)

Add new file using BEW
Overrides:
phones.com_samsungscha950.Phone._add_files

_get_del_new_list(self, index_key, media_key, merge, fundamentals, origins)

Return a list of media being deleted and being added
Overrides:
phones.com_samsungscha950.Phone._get_del_new_list

Class Variable Details

builtin_ringtones

Type:
dict
Value:
{'Beep Once': 147,
 'Bell 1': 83,
 'Bell 2': 84,
 'Bell 3': 85,
 'Default': None,
 'Melody 1': 86,
 'Melody 2': 87,
 'Melody 3': 88,
...                                                                    

builtin_sounds

Type:
dict
Value:
{'Clapping': 92,
 'Crowd': 93,
 'Happy Birthday': 94,
 'Rain Forest': 95,
 'Train': 96}                                                          

builtin_wallpapers

Type:
dict
Value:
{'No Picture': None}                                                   

desc

Type:
str
Value:
'SCH-A870'                                                             

detected_model

Type:
str
Value:
'A870'                                                                 

helpid

Type:
str
Value:
'phone-samsungscha870.htm'                                             

my_manufacturer

Type:
str
Value:
'SAMSUNG'                                                              

my_model

Type:
str
Value:
'SCH-A870/187'                                                         

ringtone_default_range

Type:
str
Value:
'range_tones_preloaded_el_01'                                          

ringtone_noring_range

Type:
str
Value:
'range_tones_preloaded_el_15'                                          

serialsname

Type:
str
Value:
'scha870'                                                              

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