Back to index

system-config-printer  1.3.9+20120706
Classes | Functions | Variables
applet Namespace Reference

Classes

class  NewPrinterNotification
class  RunLoop

Functions

def show_help
def show_version
def monitor_session
 Main program entry.
def any_jobs

Variables

string DOMAIN = "system-config-printer"
string APPDIR = "/usr/share/system-config-printer"
string ICON = "printer"
string PRINTING_BUS = "org.fedoraproject.Config.Printing"
string PRINTING_PATH = "/org/fedoraproject/Config/Printing"
string PRINTING_IFACE = "org.fedoraproject.Config.Printing"
string NEWPRINTERDIALOG_IFACE = ".NewPrinterDialog"
string PRINTERPROPERTIESDIALOG_IFACE = ".PrinterPropertiesDialog"
string PDS_PATH = "/com/redhat/NewPrinterNotification"
 NewPrinterNotification DBus server (the 'new' way).
string PDS_IFACE = "com.redhat.NewPrinterNotification"
string PDS_OBJ = "com.redhat.NewPrinterNotification"
 system_bus = session_busNone
tuple session_bus = dbus.SessionBus()
tuple loop = gobject.MainLoop()
tuple runloop = RunLoop(session_bus, system_bus, loop)

Function Documentation

def applet.any_jobs ( )

Definition at line 305 of file applet.py.

00305 
00306 def any_jobs ():
00307     try:
00308         c = cups.Connection ()
00309         jobs = c.getJobs (my_jobs=True, limit=1)
00310         if len (jobs):
00311             return True
00312     except:
00313         pass
00314 
00315     return False

def applet.monitor_session (   args)

Main program entry.

Definition at line 302 of file applet.py.

00302 
00303 def monitor_session (*args):
00304     pass

Definition at line 291 of file applet.py.

00291 
00292 def show_help ():
00293     print "usage: %s [--help|--version|--debug]" % PROGRAM_NAME

Definition at line 294 of file applet.py.

00294 
00295 def show_version ():
00296     import config
00297     print "%s %s" % (PROGRAM_NAME, config.VERSION)
    

Variable Documentation

string applet.APPDIR = "/usr/share/system-config-printer"

Definition at line 50 of file applet.py.

string applet.DOMAIN = "system-config-printer"

Definition at line 34 of file applet.py.

string applet.ICON = "printer"

Definition at line 51 of file applet.py.

tuple applet.loop = gobject.MainLoop()

Definition at line 443 of file applet.py.

string applet.NEWPRINTERDIALOG_IFACE = ".NewPrinterDialog"

Definition at line 60 of file applet.py.

string applet.PDS_IFACE = "com.redhat.NewPrinterNotification"

Definition at line 67 of file applet.py.

string applet.PDS_OBJ = "com.redhat.NewPrinterNotification"

Definition at line 68 of file applet.py.

string applet.PDS_PATH = "/com/redhat/NewPrinterNotification"

NewPrinterNotification DBus server (the 'new' way).

Definition at line 66 of file applet.py.

string applet.PRINTERPROPERTIESDIALOG_IFACE = ".PrinterPropertiesDialog"

Definition at line 61 of file applet.py.

string applet.PRINTING_BUS = "org.fedoraproject.Config.Printing"

Definition at line 57 of file applet.py.

string applet.PRINTING_IFACE = "org.fedoraproject.Config.Printing"

Definition at line 59 of file applet.py.

string applet.PRINTING_PATH = "/org/fedoraproject/Config/Printing"

Definition at line 58 of file applet.py.

Definition at line 444 of file applet.py.

tuple applet.session_bus = dbus.SessionBus()

Definition at line 412 of file applet.py.

tuple applet.system_bus = session_busNone

Definition at line 401 of file applet.py.