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

Type Phone

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


Talk to a Samsung SPH-A840 phone (Telus)
Method Summary
  __init__(self, logtarget, commport)
Call all the contructors and sets initial modes
  countcommas(self, line)
  extractphonebookentry(self, entry, fundamentals)
  get_wallpaper_index(self)
  getcalendar(self, result)
  getfundamentals(self, results)
Gets information fundamental to interoperating with the phone and UI.
  getphonebook(self, result)
Read the phonebook data.
  getringtones(self, results)
  getwallpapers(self, results)
  makeentry(self, entry, data)
  pblinerepair(self, line)
Extend incomplete lines
  read_groups(self)
  savecalendar(self, dict, merge)
  savegroups(self, data)
This phone doesn't save or read groups properly so we are skipping the save
  savephonebook(self, data)
Saves out the phonebook
  saveringtones(self, result)
  savewallpapers(self, result)
    Inherited from Phone
  get_battery_level(self)
  get_esn(self)
  get_manufacturer(self)
  get_model(self)
  getbasicinfo(self, phoneinfo)
  getphoneinfo(self, phoneinfo)
  process_calendar(self, dict)
Optimize and expand calendar data suitable for phone download
  savememo(self, dict, merge)
  savetodo(self, dict, merge)
  sendpbcommand(self, request, responseclass, ignoreerror, fixup)
Similar to the sendpbcommand in com_sanyo and com_lg, except that a list of responses is returned, one per line of information returned from the phone
    Inherited from Phone
  alert(self, message, wait)
Raises an alert in the main thread
  close(self)
  getmemo(self, result)
  gettodo(self, result)
  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
tuple builtin_pictures = ((0, ['Human 01', 'Human 02', 'Human ...
tuple builtin_ringtones = ((0, ['Default Tone']), (1, ['Ring 0...
str desc = 'SPH-A840 (Telus)'
str helpid = 'phones-samsung.htm'
str serialsname = 'spha840T'
int x = 10                                                                    
    Inherited from Phone
tuple builtinimages = ()
tuple builtinringtones = ()
NoneType getcallhistory = None                                                                  
str MODEPHONEBOOK = 'modephonebook'
    Inherited from Phone
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'

Method Details

__init__(self, logtarget, commport)
(Constructor)

Call all the contructors and sets initial modes
Overrides:
phones.com_samsung_packet.Phone.__init__ (inherited documentation)

getfundamentals(self, results)

Gets information fundamental to interoperating with the phone and UI.

getphonebook(self, result)

Read the phonebook data.
Overrides:
phones.com_samsung_packet.Phone.getphonebook

pblinerepair(self, line)

Extend incomplete lines
Overrides:
phones.com_samsung_packet.Phone.pblinerepair

savegroups(self, data)

This phone doesn't save or read groups properly so we are skipping the save
Overrides:
phones.com_samsung_packet.Phone.savegroups

savephonebook(self, data)

Saves out the phonebook
Overrides:
phones.com_samsung_packet.Phone.savephonebook

Class Variable Details

builtin_pictures

Type:
tuple
Value:
((0,
  ['Human 01',
   'Human 02',
   'Human 03',
   'Human 04',
   'Human 05',
   'Human 06',
   'Human 07',
...                                                                    

builtin_ringtones

Type:
tuple
Value:
((0, ['Default Tone']),
 (1, ['Ring 01', 'Ring 02', 'Ring 03', 'Ring 04', 'Ring 05']),
 (6, ['Melody 01', 'Melody 02', 'Melody 03', 'Melody 04', 'Melody 05']\
))                                                                     

desc

Type:
str
Value:
'SPH-A840 (Telus)'                                                     

helpid

Type:
str
Value:
'phones-samsung.htm'                                                   

serialsname

Type:
str
Value:
'spha840T'                                                             

x

Type:
int
Value:
10                                                                    

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