Back to index

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

List of all members.

Public Member Functions

def __init__
def destroy
def NewPrinterDialog
def PrinterPropertiesDialog
def JobApplet
def GetBestDrivers
def MissingExecutables
def GroupPhysicalDevices

Public Attributes

 bus

Static Public Attributes

string in_signature = ''
tuple async_callbacks = ('reply_handler', 'error_handler')

Private Attributes

 _cupsconn
 _pathn
 _jobapplet
 _jobappletpath
 _ppds
 _language

Detailed Description

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


Constructor & Destructor Documentation

def scp-dbus-service.ConfigPrinting.__init__ (   self)

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

00401 
00402     def __init__ (self):
00403         self.bus = dbus.SessionBus ()
00404         bus_name = dbus.service.BusName (CONFIG_BUS, bus=self.bus)
00405         dbus.service.Object.__init__ (self, bus_name, CONFIG_PATH)
00406         self._cupsconn = asyncconn.Connection ()
00407         self._pathn = 0
00408         self._jobapplet = None
00409         self._jobappletpath = None
00410         self._ppds = None
00411         self._language = locale.getlocale (locale.LC_MESSAGES)[0]


Member Function Documentation

def scp-dbus-service.ConfigPrinting.destroy (   self)

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

00412 
00413     def destroy (self):
00414         self._cupsconn.destroy ()

def scp-dbus-service.ConfigPrinting.GetBestDrivers (   self,
  device_id,
  device_make_and_model,
  device_uri,
  reply_handler,
  error_handler 
)

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

00449 
00450                    reply_handler, error_handler):
00451         GetBestDriversRequest (device_id, device_make_and_model, device_uri,
00452                                self._cupsconn, self._language[0],
00453                                reply_handler, error_handler)

def scp-dbus-service.ConfigPrinting.GroupPhysicalDevices (   self,
  devices,
  reply_handler,
  error_handler 
)

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

00463 
00464     def GroupPhysicalDevices(self, devices, reply_handler, error_handler):
00465         GroupPhysicalDevicesRequest (devices, reply_handler, error_handler)

def scp-dbus-service.ConfigPrinting.JobApplet (   self)

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

00436 
00437     def JobApplet(self):
00438        if self._jobapplet == None or self._jobapplet.has_finished:
00439             self._pathn += 1
00440             path = "%s/JobApplet/%s" % (CONFIG_PATH, self._pathn)
00441             self._jobapplet = ConfigPrintingJobApplet (self.bus, path)
00442             self._jobappletpath = path
00443 
00444        return self._jobappletpath

def scp-dbus-service.ConfigPrinting.MissingExecutables (   self,
  ppd_filename 
)

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

00456 
00457     def MissingExecutables(self, ppd_filename):
00458         ppd = cups.PPD (ppd_filename)
00459         return cupshelpers.missingExecutables (ppd)

def scp-dbus-service.ConfigPrinting.NewPrinterDialog (   self)

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

00417 
00418     def NewPrinterDialog(self):
00419         self._pathn += 1
00420         path = "%s/NewPrinterDialog/%s" % (CONFIG_PATH, self._pathn)
00421         ConfigPrintingNewPrinterDialog (self.bus, path,
00422                                         self._cupsconn)
00423         g_killtimer.alive ()
00424         return path

def scp-dbus-service.ConfigPrinting.PrinterPropertiesDialog (   self,
  xid,
  name 
)

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

00427 
00428     def PrinterPropertiesDialog(self, xid, name):
00429         self._pathn += 1
00430         path = "%s/PrinterPropertiesDialog/%s" % (CONFIG_PATH, self._pathn)
00431         ConfigPrintingPrinterPropertiesDialog (self.bus, path, xid, name)
00432         g_killtimer.alive ()
00433         return path


Member Data Documentation

scp-dbus-service.ConfigPrinting._cupsconn [private]

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

scp-dbus-service.ConfigPrinting._jobapplet [private]

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

scp-dbus-service.ConfigPrinting._jobappletpath [private]

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

scp-dbus-service.ConfigPrinting._language [private]

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

scp-dbus-service.ConfigPrinting._pathn [private]

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

scp-dbus-service.ConfigPrinting._ppds [private]

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

tuple scp-dbus-service.ConfigPrinting.async_callbacks = ('reply_handler', 'error_handler') [static]

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

scp-dbus-service.ConfigPrinting.bus

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

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

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


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