Back to index

libindicate  12.10.0
Functions | Variables
listen-and-print Namespace Reference

Functions

def show_property_cb
def show_property_time_cb
def show_property_icon_cb
def show_property
def get_properties
def indicator_added
def indicator_removed
def indicator_modified
def type_cb
def desktop_cb
def server_added
def server_removed

Variables

tuple listener = indicate.indicate_listener_ref_default()

Function Documentation

def listen-and-print.desktop_cb (   listener,
  server,
  value 
)

Definition at line 79 of file listen-and-print.py.

00079 
00080 def desktop_cb(listener, server, value):
00081     print "Indicator Server Desktop: %s %s" % \
00082         (server, value)

def listen-and-print.get_properties (   listener,
  server,
  indicator 
)

Definition at line 57 of file listen-and-print.py.

00057 
00058 def get_properties(listener, server, indicator):
00059     # TODO: Not in libindicate API yet.
00060     return

def listen-and-print.indicator_added (   listener,
  server,
  indicator 
)

Definition at line 61 of file listen-and-print.py.

00061 
00062 def indicator_added(listener, server, indicator):
00063     print "Indicator Added:          %s %s" % \
00064         (server, indicator)

def listen-and-print.indicator_modified (   listener,
  server,
  indicator,
  prop 
)

Definition at line 69 of file listen-and-print.py.

00069 
00070 def indicator_modified(listener, server, indicator, prop):
00071     print "Indicator Modified:       %s %s %s" % \
00072         (server, indicator, prop)
00073     show_property(listener, server, 
00074                   indicator, prop)

Here is the call graph for this function:

def listen-and-print.indicator_removed (   listener,
  server,
  indicator 
)

Definition at line 65 of file listen-and-print.py.

00065 
00066 def indicator_removed(listener, server, indicator):
00067     print "Indicator Removed:        %s %s" % \
00068         (server, indicator)

def listen-and-print.server_added (   listener,
  server,
  typ 
)

Definition at line 83 of file listen-and-print.py.

00083 
00084 def server_added(listener, server, typ):
00085     print "Indicator Server Added:   %s %s" % \
00086         (server.get_dbusname(), typ)
00087     listener.server_get_type(server, type_cb)
00088     listener.server_get_desktop(server, desktop_cb)

def listen-and-print.server_removed (   listener,
  server,
  typ 
)

Definition at line 89 of file listen-and-print.py.

00089 
00090 def server_removed(listener, server, typ):
00091     print "Indicator Server Removed: %s %s" % \
00092         (server, typ)

def listen-and-print.show_property (   listener,
  server,
  indicator,
  prop 
)

Definition at line 46 of file listen-and-print.py.

00046 
00047 def show_property(listener, server, indicator, prop):
00048     if prop == "icon":
00049         listener.get_indicator_property_icon(server, indicator, 
00050                                              prop, show_property_icon_cb)
00051     elif prop == "time":
00052         listener.get_indicator_property_time(server, indicator, 
00053                                              prop, show_property_time_cb)
00054     else:
00055         listener.get_indicator_property(server, indicator, 
00056                                         prop, show_property_cb)

Here is the caller graph for this function:

def listen-and-print.show_property_cb (   listener,
  server,
  indicator,
  prop,
  propertydata 
)

Definition at line 32 of file listen-and-print.py.

00032 
00033 def show_property_cb(listener, server, indicator, prop, propertydata):
00034     print "Indicator Property:       %s %s %s %s" % \
00035         (server, indicator, prop, propertydata)

def listen-and-print.show_property_icon_cb (   listener,
  server,
  indicator,
  prop,
  propertydata 
)

Definition at line 41 of file listen-and-print.py.

00041 
00042 def show_property_icon_cb(listener, server, indicator, prop, propertydata):
00043     print "Indicator Property:       %s %s %s %dx%d" % \
00044         (server, indicator, prop, 
00045          propertydata.get_width(), propertydata.get_height())

def listen-and-print.show_property_time_cb (   listener,
  server,
  indicator,
  prop,
  propertydata 
)

Definition at line 36 of file listen-and-print.py.

00036 
00037 def show_property_time_cb(listener, server, indicator, prop, propertydata):
00038     print "Indicator Property:       %s %s %s %s" % \
00039         (server, indicator, prop, 
00040          strftime("%I:%M", localtime(propertydata)))

def listen-and-print.type_cb (   listener,
  server,
  value 
)

Definition at line 75 of file listen-and-print.py.

00075 
00076 def type_cb(listener, server, value):
00077     print "Indicator Server Type:    %s %s" % \
00078         (server, value)


Variable Documentation

tuple listen-and-print.listener = indicate.indicate_listener_ref_default()

Definition at line 94 of file listen-and-print.py.