Back to index

system-config-printer  1.3.9+20120706
Public Member Functions | Public Attributes | Static Public Attributes
scp-dbus-service.ConfigPrintingJobApplet Class Reference
Collaboration diagram for scp-dbus-service.ConfigPrintingJobApplet:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __del__
def Quit
def Finished
def on_jobapplet_finished

Public Attributes

 jobapplet
 finished_handle
 has_finished

Static Public Attributes

string in_signature = ''

Detailed Description

Definition at line 368 of file scp-dbus-service.py.


Constructor & Destructor Documentation

def scp-dbus-service.ConfigPrintingJobApplet.__init__ (   self,
  bus,
  path 
)

Definition at line 369 of file scp-dbus-service.py.

00369 
00370     def __init__ (self, bus, path):
00371         bus_name = dbus.service.BusName (CONFIG_BUS, bus=bus)
00372         dbus.service.Object.__init__ (self, bus_name=bus_name, object_path=path)
00373         self.jobapplet = jobviewer.JobViewer(bus=dbus.SystemBus (),
00374                                              applet=True, my_jobs=True)
00375         handle = self.jobapplet.connect ('finished', self.on_jobapplet_finished)
00376         self.finished_handle = handle
00377         self.has_finished = False
00378         g_killtimer.add_hold ()
00379         debugprint ("+%s" % self)

def scp-dbus-service.ConfigPrintingJobApplet.__del__ (   self)

Definition at line 380 of file scp-dbus-service.py.

00380 
00381     def __del__ (self):
00382         debugprint ("-%s" % self)


Member Function Documentation

def scp-dbus-service.ConfigPrintingJobApplet.Finished (   self)

Definition at line 390 of file scp-dbus-service.py.

00390 
00391     def Finished(self):
00392         pass

def scp-dbus-service.ConfigPrintingJobApplet.on_jobapplet_finished (   self,
  jobapplet 
)

Definition at line 393 of file scp-dbus-service.py.

00393 
00394     def on_jobapplet_finished (self, jobapplet):
00395         self.Finished ()
00396         g_killtimer.remove_hold ()
00397         self.has_finished = True
00398         self.jobapplet.disconnect (self.finished_handle)
00399         self.remove_from_connection ()

Here is the call graph for this function:

def scp-dbus-service.ConfigPrintingJobApplet.Quit (   self)

Definition at line 385 of file scp-dbus-service.py.

00385 
00386     def Quit(self):
00387         if not self.has_finished:
00388             self.jobapplet.cleanup ()


Member Data Documentation

scp-dbus-service.ConfigPrintingJobApplet.finished_handle

Definition at line 375 of file scp-dbus-service.py.

scp-dbus-service.ConfigPrintingJobApplet.has_finished

Definition at line 376 of file scp-dbus-service.py.

string scp-dbus-service.ConfigPrintingJobApplet.in_signature = '' [static]

Definition at line 384 of file scp-dbus-service.py.

scp-dbus-service.ConfigPrintingJobApplet.jobapplet

Definition at line 372 of file scp-dbus-service.py.


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