Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from __future__ import annotations
- from typing import Any, Dict, List, Tuple
- from sdbus import (
- DbusDeprecatedFlag,
- DbusInterfaceCommonAsync,
- DbusNoReplyFlag,
- DbusPropertyConstFlag,
- DbusPropertyEmitsChangeFlag,
- DbusPropertyEmitsInvalidationFlag,
- DbusPropertyExplicitFlag,
- DbusUnprivilegedFlag,
- dbus_method_async,
- dbus_property_async,
- dbus_signal_async,
- )
- class OrgBluezAdapter1Interface(
- DbusInterfaceCommonAsync,
- interface_name="org.bluez.Adapter1",
- ):
- @dbus_method_async()
- async def start_discovery(
- self,
- ) -> None:
- raise NotImplementedError
- @dbus_method_async(
- input_signature="a{sv}",
- )
- async def set_discovery_filter(
- self,
- properties: Dict[str, Tuple[str, Any]],
- ) -> None:
- raise NotImplementedError
- @dbus_method_async()
- async def stop_discovery(
- self,
- ) -> None:
- raise NotImplementedError
- @dbus_method_async(
- input_signature="o",
- )
- async def remove_device(
- self,
- device: str,
- ) -> None:
- raise NotImplementedError
- @dbus_method_async(
- result_signature="as",
- )
- async def get_discovery_filters(
- self,
- ) -> List[str]:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="s",
- )
- def address(self) -> str:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="s",
- )
- def address_type(self) -> str:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="s",
- )
- def name(self) -> str:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="s",
- )
- def alias(self) -> str:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="u",
- )
- def _class(self) -> int:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="b",
- )
- def powered(self) -> bool:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="b",
- )
- def discoverable(self) -> bool:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="u",
- )
- def discoverable_timeout(self) -> int:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="b",
- )
- def pairable(self) -> bool:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="u",
- )
- def pairable_timeout(self) -> int:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="b",
- )
- def discovering(self) -> bool:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="as",
- )
- def u_u_i_ds(self) -> List[str]:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="s",
- )
- def modalias(self) -> str:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="as",
- )
- def roles(self) -> List[str]:
- raise NotImplementedError
- class OrgBluezGattManager1Interface(
- DbusInterfaceCommonAsync,
- interface_name="org.bluez.GattManager1",
- ):
- @dbus_method_async(
- input_signature="oa{sv}",
- )
- async def register_application(
- self,
- application: str,
- options: Dict[str, Tuple[str, Any]],
- ) -> None:
- raise NotImplementedError
- @dbus_method_async(
- input_signature="o",
- )
- async def unregister_application(
- self,
- application: str,
- ) -> None:
- raise NotImplementedError
- class OrgBluezLEAdvertisingManager1Interface(
- DbusInterfaceCommonAsync,
- interface_name="org.bluez.LEAdvertisingManager1",
- ):
- @dbus_method_async(
- input_signature="oa{sv}",
- )
- async def register_advertisement(
- self,
- advertisement: str,
- options: Dict[str, Tuple[str, Any]],
- ) -> None:
- raise NotImplementedError
- @dbus_method_async(
- input_signature="o",
- )
- async def unregister_advertisement(
- self,
- service: str,
- ) -> None:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="y",
- )
- def active_instances(self) -> int:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="y",
- )
- def supported_instances(self) -> int:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="as",
- )
- def supported_includes(self) -> List[str]:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="as",
- )
- def supported_secondary_channels(self) -> List[str]:
- raise NotImplementedError
- class OrgBluezMedia1Interface(
- DbusInterfaceCommonAsync,
- interface_name="org.bluez.Media1",
- ):
- @dbus_method_async(
- input_signature="oa{sv}",
- )
- async def register_endpoint(
- self,
- endpoint: str,
- properties: Dict[str, Tuple[str, Any]],
- ) -> None:
- raise NotImplementedError
- @dbus_method_async(
- input_signature="o",
- )
- async def unregister_endpoint(
- self,
- endpoint: str,
- ) -> None:
- raise NotImplementedError
- @dbus_method_async(
- input_signature="oa{sv}",
- )
- async def register_player(
- self,
- player: str,
- properties: Dict[str, Tuple[str, Any]],
- ) -> None:
- raise NotImplementedError
- @dbus_method_async(
- input_signature="o",
- )
- async def unregister_player(
- self,
- player: str,
- ) -> None:
- raise NotImplementedError
- @dbus_method_async(
- input_signature="oa{sv}",
- )
- async def register_application(
- self,
- application: str,
- options: Dict[str, Tuple[str, Any]],
- ) -> None:
- raise NotImplementedError
- @dbus_method_async(
- input_signature="o",
- )
- async def unregister_application(
- self,
- application: str,
- ) -> None:
- raise NotImplementedError
- class OrgBluezNetworkServer1Interface(
- DbusInterfaceCommonAsync,
- interface_name="org.bluez.NetworkServer1",
- ):
- @dbus_method_async(
- input_signature="ss",
- )
- async def register(
- self,
- uuid: str,
- bridge: str,
- ) -> None:
- raise NotImplementedError
- @dbus_method_async(
- input_signature="s",
- )
- async def unregister(
- self,
- uuid: str,
- ) -> None:
- raise NotImplementedError
- class OrgBluezDevice1Interface(
- DbusInterfaceCommonAsync,
- interface_name="org.bluez.Device1",
- ):
- @dbus_method_async()
- async def disconnect(
- self,
- ) -> None:
- raise NotImplementedError
- @dbus_method_async()
- async def connect(
- self,
- ) -> None:
- raise NotImplementedError
- @dbus_method_async(
- input_signature="s",
- )
- async def connect_profile(
- self,
- u_u_i_d: str,
- ) -> None:
- raise NotImplementedError
- @dbus_method_async(
- input_signature="s",
- )
- async def disconnect_profile(
- self,
- u_u_i_d: str,
- ) -> None:
- raise NotImplementedError
- @dbus_method_async()
- async def pair(
- self,
- ) -> None:
- raise NotImplementedError
- @dbus_method_async()
- async def cancel_pairing(
- self,
- ) -> None:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="s",
- )
- def address(self) -> str:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="s",
- )
- def address_type(self) -> str:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="s",
- )
- def name(self) -> str:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="s",
- )
- def alias(self) -> str:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="u",
- )
- def _class(self) -> int:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="q",
- )
- def appearance(self) -> int:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="s",
- )
- def icon(self) -> str:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="b",
- )
- def paired(self) -> bool:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="b",
- )
- def trusted(self) -> bool:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="b",
- )
- def blocked(self) -> bool:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="b",
- )
- def legacy_pairing(self) -> bool:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="n",
- )
- def r_s_s_i(self) -> int:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="b",
- )
- def connected(self) -> bool:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="as",
- )
- def u_u_i_ds(self) -> List[str]:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="s",
- )
- def modalias(self) -> str:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="o",
- )
- def adapter(self) -> str:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="a{qv}",
- )
- def manufacturer_data(self) -> Dict[int, Tuple[str, Any]]:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="a{sv}",
- )
- def service_data(self) -> Dict[str, Tuple[str, Any]]:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="n",
- )
- def tx_power(self) -> int:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="b",
- )
- def services_resolved(self) -> bool:
- raise NotImplementedError
- @dbus_property_async(
- property_signature="b",
- )
- def wake_allowed(self) -> bool:
- raise NotImplementedError
- class OrgBluezGattService1Interface(
- DbusInterfaceCommonAsync,
- interface_name='org.bluez.GattService1',
- ):
- @dbus_property_async(
- property_signature='s',
- )
- def u_u_i_d(self) -> str:
- raise NotImplementedError
- @dbus_property_async(
- property_signature='o',
- )
- def device(self) -> str:
- raise NotImplementedError
- @dbus_property_async(
- property_signature='b',
- )
- def primary(self) -> bool:
- raise NotImplementedError
- @dbus_property_async(
- property_signature='ao',
- )
- def includes(self) -> List[str]:
- raise NotImplementedError
- class OrgBluezGattCharacteristic1Interface(
- DbusInterfaceCommonAsync,
- interface_name='org.bluez.GattCharacteristic1',
- ):
- @dbus_method_async(
- input_signature='a{sv}',
- result_signature='ay',
- )
- async def read_value(
- self,
- options: Dict[str, Tuple[str, Any]],
- ) -> bytes:
- raise NotImplementedError
- @dbus_method_async(
- input_signature='aya{sv}',
- )
- async def write_value(
- self,
- value: bytes,
- options: Dict[str, Tuple[str, Any]],
- ) -> None:
- raise NotImplementedError
- @dbus_method_async(
- input_signature='a{sv}',
- result_signature='hq',
- )
- async def acquire_write(
- self,
- options: Dict[str, Tuple[str, Any]],
- ) -> Tuple[int, int]:
- raise NotImplementedError
- @dbus_method_async(
- input_signature='a{sv}',
- result_signature='hq',
- )
- async def acquire_notify(
- self,
- options: Dict[str, Tuple[str, Any]],
- ) -> Tuple[int, int]:
- raise NotImplementedError
- @dbus_method_async(
- )
- async def start_notify(
- self,
- ) -> None:
- raise NotImplementedError
- @dbus_method_async(
- )
- async def stop_notify(
- self,
- ) -> None:
- raise NotImplementedError
- @dbus_property_async(
- property_signature='s',
- )
- def u_u_i_d(self) -> str:
- raise NotImplementedError
- @dbus_property_async(
- property_signature='o',
- )
- def service(self) -> str:
- raise NotImplementedError
- @dbus_property_async(
- property_signature='ay',
- )
- def value(self) -> bytes:
- raise NotImplementedError
- @dbus_property_async(
- property_signature='b',
- )
- def notifying(self) -> bool:
- raise NotImplementedError
- @dbus_property_async(
- property_signature='as',
- )
- def flags(self) -> List[str]:
- raise NotImplementedError
- @dbus_property_async(
- property_signature='b',
- )
- def write_acquired(self) -> bool:
- raise NotImplementedError
- @dbus_property_async(
- property_signature='b',
- )
- def notify_acquired(self) -> bool:
- raise NotImplementedError
- class OrgBluezGattDescriptor1Interface(
- DbusInterfaceCommonAsync,
- interface_name='org.bluez.GattDescriptor1',
- ):
- @dbus_method_async(
- input_signature='a{sv}',
- result_signature='ay',
- )
- async def read_value(
- self,
- options: Dict[str, Tuple[str, Any]],
- ) -> bytes:
- raise NotImplementedError
- @dbus_method_async(
- input_signature='aya{sv}',
- )
- async def write_value(
- self,
- value: bytes,
- options: Dict[str, Tuple[str, Any]],
- ) -> None:
- raise NotImplementedError
- @dbus_property_async(
- property_signature='s',
- )
- def u_u_i_d(self) -> str:
- raise NotImplementedError
- @dbus_property_async(
- property_signature='o',
- )
- def characteristic(self) -> str:
- raise NotImplementedError
- @dbus_property_async(
- property_signature='ay',
- )
- def value(self) -> bytes:
- raise NotImplementedError
Advertisement
Add Comment
Please, Sign In to add comment