profiles: add a per profile capabilities field

Doesn't do much now without the next commit

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
Benjamin Tissoires
2017-08-02 13:56:06 +02:00
committed by Peter Hutterer
parent 7c650aeeca
commit 97a927bb7d
8 changed files with 87 additions and 0 deletions

View File

@@ -293,6 +293,16 @@ class RatbagdProfile(_RatbagdDBus):
_RatbagdDBus.__init__(self, "Profile", object_path)
@GObject.Property
def capabilities(self):
"""The capabilities of this profile as an array. Capabilities not
present on the profile are not in the list. Thus use e.g.
if RatbagdPorfile.CAP_WRITABLE_NAME is in profile.capabilities:
do something
"""
return self._get_dbus_property("Capabilities")
@GObject.property
def index(self):
"""The index of this profile."""
return self._get_dbus_property("Index")