Back to index

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

List of all members.

Public Member Functions

def can_start
def start

Static Public Attributes

string NAME = "org.fedoraproject.Config.Services"
string PATH = "/org/fedoraproject/Config/Services/ServiceHerders/SysVServiceHerder/Services/cups"
string IFACE = "org.fedoraproject.Config.Services.SysVService"

Private Member Functions

def _get_iface

Detailed Description

Definition at line 105 of file system-config-printer.py.


Member Function Documentation

def system-config-printer.ServiceStart._get_iface (   self,
  iface 
) [private]

Definition at line 109 of file system-config-printer.py.

00109 
00110     def _get_iface (self, iface):
00111         bus = dbus.SystemBus ()
00112         obj = bus.get_object (self.NAME, self.PATH)
00113         proxy = dbus.Interface (obj, iface)
00114         return proxy

Here is the caller graph for this function:

def system-config-printer.ServiceStart.can_start (   self)

Definition at line 115 of file system-config-printer.py.

00115 
00116     def can_start (self):
00117         try:
00118             proxy = self._get_iface (dbus.INTROSPECTABLE_IFACE)
00119             introspect = proxy.Introspect ()
00120         except:
00121             return False
00122 
00123         return True

Here is the call graph for this function:

def system-config-printer.ServiceStart.start (   self,
  reply_handler,
  error_handler 
)

Definition at line 124 of file system-config-printer.py.

00124 
00125     def start (self, reply_handler, error_handler):
00126         proxy = self._get_iface (self.IFACE)
00127         proxy.start (reply_handler=reply_handler,
00128                      error_handler=error_handler)

Here is the call graph for this function:


Member Data Documentation

string system-config-printer.ServiceStart.IFACE = "org.fedoraproject.Config.Services.SysVService" [static]

Definition at line 108 of file system-config-printer.py.

string system-config-printer.ServiceStart.NAME = "org.fedoraproject.Config.Services" [static]

Definition at line 106 of file system-config-printer.py.

string system-config-printer.ServiceStart.PATH = "/org/fedoraproject/Config/Services/ServiceHerders/SysVServiceHerder/Services/cups" [static]

Definition at line 107 of file system-config-printer.py.


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