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

Type Phone

object --+
         |
        Phone

Known Subclasses:
Phone, Phone, Phone, Phone, Phone, Phone, Phone, Phone, Phone, Phone, Phone, Phone, Phone, Phone, Phone

Base class for all phones
Method Summary
  __init__(self, logtarget, commport)
  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)

Class Variable Summary
str desc = 'Someone forget to set desc in derived class'
NotImplementedType getcallhistory = NotImplemented
NotImplementedType getmemo = NotImplemented
NotImplementedType getplaylist = NotImplemented
NotImplementedType getsms = NotImplemented
NotImplementedType gett9db = NotImplemented
NotImplementedType gettodo = NotImplemented
str MODEMODEM = 'modemodem'
str MODENONE = 'modenone'

Method Details

alert(self, message, wait)

Raises an alert in the main thread
Parameters:
message - The message to display
wait - Should this function block until the user confirms the message

log(self, str)

Log a message

logdata(self, str, data, klass=None)

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

readobject(self, filename, object_class, logtitle=None, uselocalfs=False)

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=None, uselocalfs=False)

Writhe the object into the file

Class Variable Details

desc

Type:
str
Value:
'Someone forget to set desc in derived class'                          

getcallhistory

Type:
NotImplementedType
Value:
NotImplemented                                                         

getmemo

Type:
NotImplementedType
Value:
NotImplemented                                                         

getplaylist

Type:
NotImplementedType
Value:
NotImplemented                                                         

getsms

Type:
NotImplementedType
Value:
NotImplemented                                                         

gett9db

Type:
NotImplementedType
Value:
NotImplemented                                                         

gettodo

Type:
NotImplementedType
Value:
NotImplemented                                                         

MODEMODEM

Type:
str
Value:
'modemodem'                                                            

MODENONE

Type:
str
Value:
'modenone'                                                             

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