Back to index

system-config-printer  1.3.9+20120706
Public Member Functions | Public Attributes | Static Public Attributes
cupshelpers.installdriver.PrinterDriversInstaller Class Reference
Collaboration diagram for cupshelpers.installdriver.PrinterDriversInstaller:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def InstallDrivers

Public Attributes

 bus

Static Public Attributes

string DBUS_PATH = "/com/redhat/PrinterDriversInstaller"
string DBUS_IFACE = "com.redhat.PrinterDriversInstaller"
string DBUS_OBJ = "com.redhat.PrinterDriversInstaller"
string in_signature = "sss"
tuple async_callbacks

Detailed Description

Definition at line 27 of file installdriver.py.


Constructor & Destructor Documentation

Definition at line 32 of file installdriver.py.

00032 
00033     def __init__ (self, bus):
00034         self.bus = bus
00035         bus_name = dbus.service.BusName (self.DBUS_OBJ, bus=bus)
00036         dbus.service.Object.__init__ (self, bus_name, self.DBUS_PATH)


Member Function Documentation

def cupshelpers.installdriver.PrinterDriversInstaller.InstallDrivers (   self,
  mfg,
  mdl,
  cmd,
  reply_handler,
  error_handler 
)

Definition at line 42 of file installdriver.py.

00042 
00043                        reply_handler, error_handler):
00044         bus = dbus.SessionBus ()
00045         obj = bus.get_object ("org.freedesktop.PackageKit",
00046                               "/org/freedesktop/PackageKit")
00047         proxy = dbus.Interface (obj, "org.freedesktop.PackageKit.Modify")
00048         xid = 0
00049         resources = ["MFG:%s;MDL:%s;" % (mfg, mdl)]
00050         interaction = "hide-finished"
00051         _debugprint ("Calling InstallPrinterDrivers (%s, %s, %s)" %
00052                      (repr (xid), repr (resources), repr (interaction)))
00053         proxy.InstallPrinterDrivers (dbus.UInt32 (xid),
00054                                      resources, interaction,
00055                                      reply_handler=reply_handler,
00056                                      error_handler=error_handler,
00057                                      timeout=3600)


Member Data Documentation

Initial value:
("reply_handler",
                                          "error_handler")

Definition at line 39 of file installdriver.py.

Definition at line 33 of file installdriver.py.

string cupshelpers.installdriver.PrinterDriversInstaller.DBUS_IFACE = "com.redhat.PrinterDriversInstaller" [static]

Definition at line 29 of file installdriver.py.

string cupshelpers.installdriver.PrinterDriversInstaller.DBUS_OBJ = "com.redhat.PrinterDriversInstaller" [static]

Definition at line 30 of file installdriver.py.

Definition at line 28 of file installdriver.py.

Definition at line 38 of file installdriver.py.


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