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

Type Phone

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


Talk to Toshiba VM4050 cell phone
Method Summary
  __init__(self, logtarget, commport)
Calls all the constructors and sets initial modes
  deletepbentry(self, slot)
  detectphone(_, coms, likely_ports, res, _module, _log)
(Class method)
  disable_data_transfer(self)
  enable_data_transfer(self)
  extractphonebookentry(self, entry, result)
Return a phonebook entry in BitPim format.
  get_detect_data(self, res)
  get_esn(self, data)
  getcalendar(self, result)
  getfundamentals(self, results)
Gets information fundamental to interopating with the phone and UI.
  getmediaindex(self, builtins, results, key)
Gets the media (wallpaper/ringtone) index
  getphonebook(self, result)
Reads the phonebook data.
  getringtoneindices(self, results)
  getringtones(self, result)
  getwallpaperindices(self, results)
  getwallpapers(self, result)
  listsubdirs(self, dir, recurse)
  makephonebookentry(self, fields)
  readdatarecord(self)
  savephonebook(self, data)
  sendpbcommand(self, request, responseclass)
  sendpbentrytophone(self, entry)
  writedatarecord(self, record)
    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)
  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 builtinimages = ()
tuple builtinringtones = ('Common', 'Ring 1', 'Ring 2', 'Ring ...
str desc = 'Toshiba VM4050'
str helpid = 'phone-toshiba_vm4050.htm'
str serialsname = 'toshibavm4050'
    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_phone.Phone.__init__

extractphonebookentry(self, entry, result)

Return a phonebook entry in BitPim format. This is called from getphonebook.

getfundamentals(self, results)

Gets information fundamental to interopating 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.

getmediaindex(self, builtins, results, key)

Gets the media (wallpaper/ringtone) index
Parameters:
builtins - the builtin list on the phone
results - places results in this dict
key - key to place results in

getphonebook(self, result)

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

Class Variable Details

builtinimages

Type:
tuple
Value:
()                                                                     

builtinringtones

Type:
tuple
Value:
('Common',
 'Ring 1',
 'Ring 2',
 'Ring 3',
 'Ring 4',
 'Ring 5',
 'Ring 6',
 'Ring 7',
...                                                                    

desc

Type:
str
Value:
'Toshiba VM4050'                                                       

helpid

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

serialsname

Type:
str
Value:
'toshibavm4050'                                                        

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