More work on the chat. Fix terminal api

This commit is contained in:
Marco Pesenti Gritti
2006-08-09 15:53:10 +02:00
parent a9a65f42df
commit 95d9b7fe8e
8 changed files with 53 additions and 33 deletions
+9
View File
@@ -60,6 +60,11 @@ class ActivityDbusService(dbus.service.Object):
"""Returns True if the activity is shared on the mesh."""
return self._activity.get_shared()
@dbus.service.method(ACTIVITY_INTERFACE,
in_signature="sao", out_signature="")
def execute(self, command, args):
self._activity.execute(command, args)
class Activity(gtk.Window):
"""Base Activity class that all other Activities derive from."""
@@ -133,3 +138,7 @@ class Activity(gtk.Window):
self._service = self._pservice.share_activity(self,
self._default_type, properties)
self._shared = True
def execute(self, command, args):
"""Execute the given command with args"""
pass