Class

AstalBluetoothBluetooth

Description

class AstalBluetooth.Bluetooth : GObject.Object
{
  /* No available fields */
}

Manager object for org.bluez.

Ancestors

Constructors

astal_bluetooth_bluetooth_new
No description available.

Functions

astal_bluetooth_bluetooth_get_default

Gets the default singleton Bluetooth object.

Instance methods

astal_bluetooth_bluetooth_toggle

Toggle the AstalBluetoothAdapter:powered property of the AstalBluetoothBluetooth:adapter.

astal_bluetooth_bluetooth_get_is_powered
No description available.

astal_bluetooth_bluetooth_get_is_connected
No description available.

astal_bluetooth_bluetooth_get_adapter
No description available.

astal_bluetooth_bluetooth_get_adapters
No description available.

astal_bluetooth_bluetooth_get_devices
No description available.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

AstalBluetooth.Bluetooth:is-powered

true if any of the AstalBluetoothBluetooth:adapters are powered.

AstalBluetooth.Bluetooth:is-connected

true if any of the AstalBluetoothBluetooth:devices is connected.

AstalBluetooth.Bluetooth:adapter

The first registered adapter which is usually the only adapter.

AstalBluetooth.Bluetooth:adapters

List of adapters available on the host device.

AstalBluetooth.Bluetooth:devices

List of registered devices on the org.bluez bus.

Signals

AstalBluetooth.Bluetooth::device-added

Emitted when a new device is registered on the org.bluez bus.

AstalBluetooth.Bluetooth::device-removed

Emitted when a device is unregistered on the org.bluez bus.

AstalBluetooth.Bluetooth::adapter-added

Emitted when an adapter is registered on the org.bluez bus.

AstalBluetooth.Bluetooth::adapter-removed

Emitted when an adapter is unregistered on the org.bluez bus.

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct AstalBluetoothBluetoothClass {
  void (* bluetooth_device_added) (
    AstalBluetoothBluetooth* self,
    AstalBluetoothDevice* device
  );
  void (* bluetooth_device_removed) (
    AstalBluetoothBluetooth* self,
    AstalBluetoothDevice* device
  );
  void (* bluetooth_adapter_added) (
    AstalBluetoothBluetooth* self,
    AstalBluetoothAdapter* adapter
  );
  void (* bluetooth_adapter_removed) (
    AstalBluetoothBluetooth* self,
    AstalBluetoothAdapter* adapter
  );
  
}

No description available.

Class members
device_added: void (* bluetooth_device_added) ( AstalBluetoothBluetooth* self, AstalBluetoothDevice* device )

No description available.

device_removed: void (* bluetooth_device_removed) ( AstalBluetoothBluetooth* self, AstalBluetoothDevice* device )

No description available.

adapter_added: void (* bluetooth_adapter_added) ( AstalBluetoothBluetooth* self, AstalBluetoothAdapter* adapter )

No description available.

adapter_removed: void (* bluetooth_adapter_removed) ( AstalBluetoothBluetooth* self, AstalBluetoothAdapter* adapter )

No description available.