Back to index

system-config-printer  1.3.9+20120706
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
scp-dbus-service.FetchedPPDs Class Reference

List of all members.

Public Member Functions

def __init__
def is_ready
def get_ppds
def run

Private Member Functions

def _cups_error
def _cups_getppds_reply

Private Attributes

 _cupsconn
 _language
 _ppds

Static Private Attributes

dictionary __gsignals__

Detailed Description

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


Constructor & Destructor Documentation

def scp-dbus-service.FetchedPPDs.__init__ (   self,
  cupsconn,
  language 
)

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

00094 
00095     def __init__ (self, cupsconn, language):
00096         gobject.GObject.__init__ (self)
00097         self._cupsconn = cupsconn
00098         self._language = language
00099         self._ppds = None


Member Function Documentation

def scp-dbus-service.FetchedPPDs._cups_error (   self,
  conn,
  exc 
) [private]

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

00111 
00112     def _cups_error (self, conn, exc):
00113         debugprint ("FetchPPDs: error: %s" % repr (exc))
00114         self.emit ('error', exc)

Here is the caller graph for this function:

def scp-dbus-service.FetchedPPDs._cups_getppds_reply (   self,
  conn,
  result 
) [private]

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

00115 
00116     def _cups_getppds_reply (self, conn, result):
00117         debugprint ("FetchPPDs: success")
00118         self._ppds = cupshelpers.ppds.PPDs (result, language=self._language)
00119         self.emit ('ready')
00120 
00121 gobject.type_register (FetchedPPDs)

Here is the caller graph for this function:

def scp-dbus-service.FetchedPPDs.get_ppds (   self)

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

00103 
00104     def get_ppds (self):
00105         return self._ppds

def scp-dbus-service.FetchedPPDs.is_ready (   self)

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

00100 
00101     def is_ready (self):
00102         return self._ppds != None

def scp-dbus-service.FetchedPPDs.run (   self)

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

00106 
00107     def run (self):
00108         debugprint ("FetchPPDs: running")
00109         self._cupsconn.getPPDs2 (reply_handler=self._cups_getppds_reply,
00110                                  error_handler=self._cups_error)

Here is the call graph for this function:


Member Data Documentation

dictionary scp-dbus-service.FetchedPPDs.__gsignals__ [static, private]
Initial value:
{
        'ready': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, []),
        'error': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE,
                  [gobject.TYPE_PYOBJECT])
        }

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

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

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

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

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

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

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


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