Back to index

system-config-printer  1.3.9+20120706
Public Member Functions
monitor.SignalWatcher Class Reference

List of all members.

Public Member Functions

def __init__
def on_monitor_exited
def on_state_reason_added
def on_state_reason_removed
def on_still_connecting
def on_now_connected
def on_job_added
def on_job_event
def on_job_removed
def on_printer_added
def on_printer_event
def on_printer_removed
def on_cups_connection_error
def on_cups_ipp_error

Detailed Description

Definition at line 755 of file monitor.py.


Constructor & Destructor Documentation

def monitor.SignalWatcher.__init__ (   self,
  monitor 
)

Definition at line 756 of file monitor.py.

00756 
00757         def __init__ (self, monitor):
00758             monitor.connect ('monitor-exited', self.on_monitor_exited)
00759             monitor.connect ('state-reason-added', self.on_state_reason_added)
00760             monitor.connect ('state-reason-removed',
00761                              self.on_state_reason_removed)
00762             monitor.connect ('still-connecting', self.on_still_connecting)
00763             monitor.connect ('now-connected', self.on_now_connected)
00764             monitor.connect ('job-added', self.on_job_added)
00765             monitor.connect ('job-event', self.on_job_event)
00766             monitor.connect ('job-removed', self.on_job_removed)
00767             monitor.connect ('printer-added', self.on_printer_added)
00768             monitor.connect ('printer-event', self.on_printer_event)
00769             monitor.connect ('printer-removed', self.on_printer_removed)
00770             monitor.connect ('cups-connection-error',
00771                              self.on_cups_connection_error)
00772             monitor.connect ('cups-ipp-error', self.on_cups_ipp_error)

Here is the call graph for this function:


Member Function Documentation

Definition at line 806 of file monitor.py.

00806 
00807         def on_cups_connection_error (self, obj):
00808             print "*%s: cups connection error" % obj

Here is the caller graph for this function:

def monitor.SignalWatcher.on_cups_ipp_error (   self,
  obj,
  err,
  errstring 
)

Definition at line 809 of file monitor.py.

00809 
00810         def on_cups_ipp_error (self, obj, err, errstring):
00811             print "*%s: IPP error (%d): %s" % (obj, err, errstring)
00812 
    set_debugging (True)

Here is the caller graph for this function:

def monitor.SignalWatcher.on_job_added (   self,
  obj,
  jobid,
  eventname,
  event,
  jobdata 
)

Definition at line 788 of file monitor.py.

00788 
00789         def on_job_added (self, obj, jobid, eventname, event, jobdata):
00790             print "*%s: job %d added" % (obj, jobid)

Here is the caller graph for this function:

def monitor.SignalWatcher.on_job_event (   self,
  obj,
  jobid,
  eventname,
  event,
  jobdata 
)

Definition at line 791 of file monitor.py.

00791 
00792         def on_job_event (self, obj, jobid, eventname, event, jobdata):
00793             print "*%s: job %d event: %s" % (obj, jobid, event)

Here is the caller graph for this function:

def monitor.SignalWatcher.on_job_removed (   self,
  obj,
  jobid,
  eventname,
  event 
)

Definition at line 794 of file monitor.py.

00794 
00795         def on_job_removed (self, obj, jobid, eventname, event):
00796             print "*%s: job %d removed (%s)"% (obj, jobid, eventname)

Here is the caller graph for this function:

def monitor.SignalWatcher.on_monitor_exited (   self,
  obj 
)

Definition at line 773 of file monitor.py.

00773 
00774         def on_monitor_exited (self, obj):
00775             print "*%s: monitor exited" % obj

Here is the caller graph for this function:

def monitor.SignalWatcher.on_now_connected (   self,
  obj,
  printer 
)

Definition at line 785 of file monitor.py.

00785 
00786         def on_now_connected (self, obj, printer):
00787             print "*%s: now connected: %s" % (obj, printer)

Here is the caller graph for this function:

def monitor.SignalWatcher.on_printer_added (   self,
  obj,
  name 
)

Definition at line 797 of file monitor.py.

00797 
00798         def on_printer_added (self, obj, name):
00799             print "*%s: printer added: %s" % (obj, name)

Here is the caller graph for this function:

def monitor.SignalWatcher.on_printer_event (   self,
  obj,
  name,
  eventname,
  event 
)

Definition at line 800 of file monitor.py.

00800 
00801         def on_printer_event (self, obj, name, eventname, event):
00802             print "*%s: printer event: %s: %s" % (obj, name, eventname)

Here is the caller graph for this function:

def monitor.SignalWatcher.on_printer_removed (   self,
  obj,
  name 
)

Definition at line 803 of file monitor.py.

00803 
00804         def on_printer_removed (self, obj, name):
00805             print "*%s: printer %s removed" % (obj, name)

Here is the caller graph for this function:

def monitor.SignalWatcher.on_state_reason_added (   self,
  obj,
  reason 
)

Definition at line 776 of file monitor.py.

00776 
00777         def on_state_reason_added (self, obj, reason):
00778             print "*%s: +%s" % (obj, reason)

Here is the caller graph for this function:

def monitor.SignalWatcher.on_state_reason_removed (   self,
  obj,
  reason 
)

Definition at line 779 of file monitor.py.

00779 
00780         def on_state_reason_removed (self, obj, reason):
00781             print "*%s: -%s" % (obj, reason)

Here is the caller graph for this function:

def monitor.SignalWatcher.on_still_connecting (   self,
  obj,
  reason 
)

Definition at line 782 of file monitor.py.

00782 
00783         def on_still_connecting (self, obj, reason):
00784             print "*%s: still connecting: %s" % (obj, reason)

Here is the caller graph for this function:


The documentation for this class was generated from the following file: