add GetType() method on Activity

This commit is contained in:
Guillaume Desmottes 2007-03-08 16:16:06 +01:00
parent 517bab0973
commit afcfdaa239

View File

@ -29,6 +29,7 @@ class Activity(dbus.service.Object):
self._valid = False
self._name = None
self._activity_id = activity_id
self._type None
self._object_id = object_id
self._object_path = "/org/laptop/Presence/Activities/%d" % self._object_id
@ -69,6 +70,11 @@ class Activity(dbus.service.Object):
def GetColor(self):
return self.get_color()
@dbus.service.method(_ACTIVITY_INTERFACE,
in_signature="", out_signature="s")
def GetType(self):
return self.get_type()
@dbus.service.method(_ACTIVITY_INTERFACE,
in_signature="", out_signature="")
def Join(self):
@ -111,6 +117,9 @@ class Activity(dbus.service.Object):
def get_name(self):
return self._name
def get_type(self):
return self._type
def buddy_joined(self, buddy):
if buddy not in self._buddies:
self._buddies.append(buddy)