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

Class Phone

source code

object --+
         |
        Phone
Known Subclasses:

Base class for all phones

Instance Methods [hide private]
 
__init__(self, logtarget, commport)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
close(self) source code
 
log(self, str)
Log a message
source code
 
logdata(self, str, data, klass=None)
Log some data with option data object/class for the analyser
source code
 
alert(self, message, wait)
Raises an alert in the main thread
source code
 
progress(self, pos, max, desc)
Update the progress meter
source code
 
raisecommsdnaexception(self, str)
Raise a comms DeviceNeedsAttention Exception
source code
 
raisecommsexception(self, str, klass) source code
 
setmode(self, desiredmode)
Ensure the phone is in the right mode
source code
 
_setmodemodem(self) source code
 
readobject(self, filename, object_class, logtitle=None, uselocalfs=False)
Read the specified filename and bind it to the object class
source code
 
writeobject(self, filename, obj, logtitle=None, uselocalfs=False)
Writhe the object into the file
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  MODENONE = 'modenone'
  MODEMODEM = 'modemodem'
  desc = 'Someone forget to set desc in derived class'
  getmemo = NotImplemented
  gettodo = NotImplemented
  getsms = NotImplemented
  getcallhistory = NotImplemented
  getplaylist = NotImplemented
  gett9db = NotImplemented
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, logtarget, commport)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

alert(self, message, wait)

source code 

Raises an alert in the main thread

Parameters:
  • message - The message to display
  • wait - Should this function block until the user confirms the message