Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tutorius/service.py
diff options
context:
space:
mode:
authormike <michael.jmontcalm@gmail.com>2009-12-07 01:20:18 (GMT)
committer mike <michael.jmontcalm@gmail.com>2009-12-09 03:07:06 (GMT)
commitcf6785d168eaf3ed5505705478a6aea05ad3da98 (patch)
tree0a77a0d297eb9dfa810aa07c800bf857d6527e35 /tutorius/service.py
parent3618ba9ab56baf8119e7c4eff373f2700a0dc53e (diff)
Probe : Inserting Probe in Journal
Diffstat (limited to 'tutorius/service.py')
-rw-r--r--tutorius/service.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tutorius/service.py b/tutorius/service.py
index 1564339..97d914b 100644
--- a/tutorius/service.py
+++ b/tutorius/service.py
@@ -87,6 +87,11 @@ class Service(dbus.service.Object):
LOGGER.debug("Service.unregister_probe(%s)", unique_id)
self._probeMgr.unregister_probe(unique_id)
+ @dbus.service.method(_DBUS_SERVICE_IFACE,
+ in_signature='s', out_signature="")
+ def set_current_act(self, bundle_id):
+ self._probeMgr.currentActivity = str(bundle_id)
+
class ServiceProxy:
""" Proxy to connect to the Service object, abstracting the DBus interface"""
@@ -137,6 +142,9 @@ class ServiceProxy:
# asynchronous call to be completed
self._service.unregister_probe(unique_id)
+ def set_current_act(self, bundle_id):
+ remote_call(self._service.set_current_act, (bundle_id,), block=False)
+
if __name__ == "__main__":
import dbus.mainloop.glib