mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-08 07:33:53 +01:00
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:
committed by
Peter Hutterer
parent
7c650aeeca
commit
97a927bb7d
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user