add GetType() method on Activity
This commit is contained in:
parent
517bab0973
commit
afcfdaa239
@ -29,6 +29,7 @@ class Activity(dbus.service.Object):
|
|||||||
self._valid = False
|
self._valid = False
|
||||||
self._name = None
|
self._name = None
|
||||||
self._activity_id = activity_id
|
self._activity_id = activity_id
|
||||||
|
self._type None
|
||||||
|
|
||||||
self._object_id = object_id
|
self._object_id = object_id
|
||||||
self._object_path = "/org/laptop/Presence/Activities/%d" % self._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):
|
def GetColor(self):
|
||||||
return self.get_color()
|
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,
|
@dbus.service.method(_ACTIVITY_INTERFACE,
|
||||||
in_signature="", out_signature="")
|
in_signature="", out_signature="")
|
||||||
def Join(self):
|
def Join(self):
|
||||||
@ -111,6 +117,9 @@ class Activity(dbus.service.Object):
|
|||||||
def get_name(self):
|
def get_name(self):
|
||||||
return self._name
|
return self._name
|
||||||
|
|
||||||
|
def get_type(self):
|
||||||
|
return self._type
|
||||||
|
|
||||||
def buddy_joined(self, buddy):
|
def buddy_joined(self, buddy):
|
||||||
if buddy not in self._buddies:
|
if buddy not in self._buddies:
|
||||||
self._buddies.append(buddy)
|
self._buddies.append(buddy)
|
||||||
|
Loading…
Reference in New Issue
Block a user