summaryrefslogtreecommitdiff
path: root/lib/bluetooth-enums.h
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2009-09-23 17:21:12 +0100
committerBastien Nocera <hadess@hadess.net>2009-09-23 17:21:12 +0100
commit3a776210771f11b85c9353f2ed973ff0cea5cda5 (patch)
treeb9c9429d631c7922b6b33dce02ddd8d082b3126f /lib/bluetooth-enums.h
parent8f5046601212305a65bea1b61ed44fa9b21c2d2a (diff)
downloadgnome-bluetooth-3a776210771f11b85c9353f2ed973ff0cea5cda5.tar.gz
Update API docs
Add BluetoothClient and plugin documentations, update the others.
Diffstat (limited to 'lib/bluetooth-enums.h')
-rw-r--r--lib/bluetooth-enums.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/lib/bluetooth-enums.h b/lib/bluetooth-enums.h
index 450c38cb..e0332837 100644
--- a/lib/bluetooth-enums.h
+++ b/lib/bluetooth-enums.h
@@ -28,6 +28,16 @@
G_BEGIN_DECLS
+/**
+ * BluetoothCategory:
+ * @BLUETOOTH_CATEGORY_ALL: all devices
+ * @BLUETOOTH_CATEGORY_PAIRED: paired devices
+ * @BLUETOOTH_CATEGORY_TRUSTED: trusted devices
+ * @BLUETOOTH_CATEGORY_NOT_PAIRED_OR_TRUSTED: neither paired, nor trusted devices
+ * @BLUETOOTH_CATEGORY_PAIRED_OR_TRUSTED: paired and/or trusted devices
+ *
+ * The category of a Bluetooth devices.
+ **/
typedef enum {
BLUETOOTH_CATEGORY_ALL,
BLUETOOTH_CATEGORY_PAIRED,
@@ -37,6 +47,25 @@ typedef enum {
BLUETOOTH_CATEGORY_NUM_CATEGORIES /*< skip >*/
} BluetoothCategory;
+/**
+ * BluetoothType:
+ * @BLUETOOTH_TYPE_ANY: any device, or a device of an unknown type
+ * @BLUETOOTH_TYPE_PHONE: a telephone (usually a cell/mobile phone)
+ * @BLUETOOTH_TYPE_MODEM: a modem
+ * @BLUETOOTH_TYPE_COMPUTER: a computer, can be a laptop, a wearable computer, etc.
+ * @BLUETOOTH_TYPE_NETWORK: a network device, such as a router
+ * @BLUETOOTH_TYPE_HEADSET: a headset (usually a hands-free device)
+ * @BLUETOOTH_TYPE_HEADPHONES: headphones (covers two ears)
+ * @BLUETOOTH_TYPE_OTHER_AUDIO: another type of audio device
+ * @BLUETOOTH_TYPE_KEYBOARD: a keyboard
+ * @BLUETOOTH_TYPE_MOUSE: a mouse
+ * @BLUETOOTH_TYPE_CAMERA: a camera (still or moving)
+ * @BLUETOOTH_TYPE_PRINTER: a printer
+ * @BLUETOOTH_TYPE_JOYPAD: a joypad, joystick, or other game controller
+ * @BLUETOOTH_TYPE_TABLET: a drawing tablet
+ *
+ * The type of a Bluetooth device. See also %BLUETOOTH_TYPE_INPUT and %BLUETOOTH_TYPE_AUDIO
+ **/
typedef enum {
BLUETOOTH_TYPE_ANY = 1 << 0,
BLUETOOTH_TYPE_PHONE = 1 << 1,
@@ -59,6 +88,27 @@ typedef enum {
#define BLUETOOTH_TYPE_INPUT (BLUETOOTH_TYPE_KEYBOARD | BLUETOOTH_TYPE_MOUSE | BLUETOOTH_TYPE_TABLET | BLUETOOTH_TYPE_JOYPAD)
#define BLUETOOTH_TYPE_AUDIO (BLUETOOTH_TYPE_HEADSET | BLUETOOTH_TYPE_HEADPHONES | BLUETOOTH_TYPE_OTHER_AUDIO)
+/**
+ * BluetoothColumn:
+ * @BLUETOOTH_COLUMN_PROXY: a #DBusGProxy object
+ * @BLUETOOTH_COLUMN_ADDRESS: a string representing a Bluetooth address
+ * @BLUETOOTH_COLUMN_ALIAS: a string to use for display (the name of the device, or its address if the name is not known). Only available for devices.
+ * @BLUETOOTH_COLUMN_NAME: a string representing the device or adapter's name
+ * @BLUETOOTH_COLUMN_TYPE: the #BluetoothType of the device. Only available for devices.
+ * @BLUETOOTH_COLUMN_ICON: a string representing the icon name for the device. Only available for devices.
+ * @BLUETOOTH_COLUMN_RSSI: an indication of signal strength
+ * @BLUETOOTH_COLUMN_DEFAULT: whether the adapter is the default one. Only available for adapters.
+ * @BLUETOOTH_COLUMN_PAIRED: whether the device is paired to its parent adapter. Only available for devices.
+ * @BLUETOOTH_COLUMN_TRUSTED: whether the device is trusted. Only available for devices.
+ * @BLUETOOTH_COLUMN_CONNECTED: whether the device is connected. Only available for devices.
+ * @BLUETOOTH_COLUMN_DISCOVERING: whether the adapter is discovering. Only available for adapters.
+ * @BLUETOOTH_COLUMN_LEGACYPAIRING: whether the device does not support Bluetooth 2.1 Simple Secure Pairing. Only available for devices.
+ * @BLUETOOTH_COLUMN_POWERED: whether the adapter is powered. Only available for adapters.
+ * @BLUETOOTH_COLUMN_SERVICES: an array of service names and #BluetoothStatus connection statuses.
+ * @BLUETOOTH_COLUMN_UUIDS: a string array of human-readable UUIDs.
+ *
+ * A column identifier to pass to bluetooth_chooser_get_selected_device_info().
+ **/
typedef enum {
BLUETOOTH_COLUMN_PROXY,
BLUETOOTH_COLUMN_ADDRESS,
@@ -79,6 +129,17 @@ typedef enum {
_BLUETOOTH_NUM_COLUMNS /*< skip >*/
} BluetoothColumn;
+/**
+ * BluetoothStatus:
+ *
+ * @BLUETOOTH_STATUS_INVALID: whether the status has been set yet
+ * @BLUETOOTH_STATUS_DISCONNECTED: whether the service is disconnected
+ * @BLUETOOTH_STATUS_CONNECTED: whether the service is connected
+ * @BLUETOOTH_STATUS_CONNECTING: whether the service is connecting
+ * @BLUETOOTH_STATUS_PLAYING: whether the service is playing (only used by the audio service)
+ *
+ * The connection status of a service on a particular device. Note that @BLUETOOTH_STATUS_CONNECTING and @BLUETOOTH_STATUS_PLAYING might not be available for all services.
+ **/
typedef enum {
BLUETOOTH_STATUS_INVALID = 0,
BLUETOOTH_STATUS_DISCONNECTED,