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

Type Phone

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


Talk to the Samsung SCH-A670 Cell Phone
Method Summary
  __init__(self, logtarget, commport)
Calls all the constructors and sets initial modes
  ATget_builtin_ringtone_index(self)
  get_builtin_ringtone_index(self)
  get_user_rt_index(self, r)
  get_wallpaper_index(self)
  getfundamentals(self, results)
Gets information fundamental to interoperating with the phone and UI.
  getphonebook(self, result)
Reads the phonebook data.
  getringtones(self, result)
  getwallpapers(self, result)
  savephonebook(self, data)
Saves out the phonebook
  saveringtones(self, result, merge)
  savewallpapers(self, result, merge)
    Inherited from Phone
  csvsplit(self, line)
Parse a Samsung comma separated list.
  defrell(self, s, acol, ncol)
Fixes up phonebook responses with the alias field.
  del_phone_entry(self, entry_index)
  detectphone(_, coms, likely_ports, res, _module, _log)
(Class method)
  encode_timedate(self, td)
  extract_timedate(self, td)
  get_analog_digital(self)
  get_battery_level(self)
  get_calendar_entry(self, entry_index)
  get_canned_msg(self, entry_index)
  get_detect_data(self, r)
  get_esn(self)
  get_firmware_version(self)
  get_groups(self, groups_range)
  get_manufacturer(self)
  get_memo_entry(self, entry_index)
  get_model(self)
  get_phone_entry(self, entry_index, alias_column, num_columns)
  get_phone_number(self)
  get_signal_quality(self)
  get_sms_inbox(self, entry_index)
  get_sms_saved(self, entry_index)
  get_sms_sent(self, entry_index)
  get_time_stamp(self)
  get_todo_entry(self, entry_index)
  getcalendar(self, result)
  is_mode_modem(self)
  is_online(self)
  phonize(self, str)
Convert the phone number into something the phone understands All digits, P, T, * and # are kept, everything else is removed
  process_calendar(self, dict)
Optimize and expand calendar data suitable for phone download
  samsungescape(self, s)
Escape double quotes and }'s in a string...
  save_calendar_entry(self, entry_str)
  save_canned_msg(self, entry_str)
  save_memo_entry(self, entry_str)
  save_phone_entry(self, entry_str)
  save_todo_entry(self, entry_str)
  savecalendar(self, dict, merge)
  splitandunescape(self, line)
Split fields and unescape double quote and right brace
    Inherited from Phone
  alert(self, message, wait)
Raises an alert in the main thread
  close(self)
  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
    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)
  getfilecontents(self, file, use_cache)
  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)

Class Variable Summary
dict allringtones = {}
tuple builtinringtones = ('Inactive', 'Bell 1', 'Bell 2', 'Bel...
str desc = 'SCH-A670'
NoneType getmedia = None                                                                  
type parent_phone = phones.com_samsung.Phone
str serialsname = 'scha670'
    Inherited from Phone
str MODEPHONEBOOK = 'modephonebook'
    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'

Instance Method Details

__init__(self, logtarget, commport)
(Constructor)

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

getfundamentals(self, results)

Gets information fundamental to interoperating with the phone and UI.

Currently this is:
  • 'uniqueserial' a unique serial number representing the phone
  • 'groups' the phonebook groups
  • 'wallpaper-index' map index numbers to names
  • 'ringtone-index' map index numbers to ringtone names
This method is called before we read the phonebook data or before we write phonebook data.

getphonebook(self, result)

Reads the phonebook data. The getfundamentals information will already be in result.

savephonebook(self, data)

Saves out the phonebook

Class Variable Details

allringtones

Type:
dict
Value:
{}                                                                     

builtinringtones

Type:
tuple
Value:
('Inactive',
 'Bell 1',
 'Bell 2',
 'Bell 3',
 'Bell 4',
 'Bell 5',
 'Melody 1',
 'Melody 2',
...                                                                    

desc

Type:
str
Value:
'SCH-A670'                                                             

getmedia

Type:
NoneType
Value:
None                                                                  

serialsname

Type:
str
Value:
'scha670'                                                              

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