include/alp/bluetooth.h File Reference


Detailed Description

Alp Bluetooth Discovery Public header file for the Bluetooth Tools API.

#include <gtk/gtkdialog.h>
#include <gtk/gtkwindow.h>
#include <alp/types.h>

Go to the source code of this file.

Data Structures

struct  _AlpBluetoothDiscoveryDialog
 bluetooth discovery widget structure More...

Group: Major Service Classes.(Can be ORed together)

#define ALP_BLUETOOTH_COD_AUDIO   0x00200000
#define ALP_BLUETOOTH_COD_CAPTURING   0x00080000
#define ALP_BLUETOOTH_COD_INFORMATION   0x00800000
#define ALP_BLUETOOTH_COD_LIMITED_DISCOVERABLE_MODE   0x00002000
#define ALP_BLUETOOTH_COD_NETWORKING   0x00020000
#define ALP_BLUETOOTH_COD_OBJECT_TRANSFER   0x00100000
#define ALP_BLUETOOTH_COD_POSITIONING   0x00010000
#define ALP_BLUETOOTH_COD_RENDERING   0x00040000
#define ALP_BLUETOOTH_COD_RESERVED1   0x00004000
#define ALP_BLUETOOTH_COD_RESERVED2   0x00008000
#define ALP_BLUETOOTH_COD_SERVICE_ANY   0x00ffE000
#define ALP_BLUETOOTH_COD_TELEPHONY   0x00400000

Group: Major Device Classes (Select one)

#define ALP_BLUETOOTH_COD_MAJOR_ANY   0x00001F00
#define ALP_BLUETOOTH_COD_MAJOR_AUDIO   0x00000400
#define ALP_BLUETOOTH_COD_MAJOR_COMPUTER   0x00000100
#define ALP_BLUETOOTH_COD_MAJOR_IMAGING   0x00000600
#define ALP_BLUETOOTH_COD_MAJOR_LAN_ACCESS_POINT   0x00000300
#define ALP_BLUETOOTH_COD_MAJOR_MISC   0x00000000
#define ALP_BLUETOOTH_COD_MAJOR_PERIPHERAL   0x00000500
#define ALP_BLUETOOTH_COD_MAJOR_PHONE   0x00000200
#define ALP_BLUETOOTH_COD_MAJOR_TOY   0x00000800
#define ALP_BLUETOOTH_COD_MAJOR_UNCLASSIFIED   0x00001F00
#define ALP_BLUETOOTH_COD_MAJOR_WEARABLE   0x00000700
#define ALP_BLUETOOTH_COD_MINOR_ANY   0x000000FC

Group: Masks used to isolate the class of device components

#define ALP_BLUETOOTH_COD_MAJOR_MASK   0x00001F00
#define ALP_BLUETOOTH_COD_MINOR_MASK   0x000000FC
#define ALP_BLUETOOTH_COD_SERVICE_MASK   0x00ffE000

Group: Minor Device Class - Audio Major class (Select one)

#define ALP_BLUETOOTH_COD_MINOR_AUDIO_ANY   ALP_BLUETOOTH_COD_MINOR_ANY
#define ALP_BLUETOOTH_COD_MINOR_AUDIO_CAMCORDER   0x00000034
#define ALP_BLUETOOTH_COD_MINOR_AUDIO_CAR_AUDIO   0x00000020
#define ALP_BLUETOOTH_COD_MINOR_AUDIO_GAME_TOY   0x00000048
#define ALP_BLUETOOTH_COD_MINOR_AUDIO_HANDSFREE   0x00000008
#define ALP_BLUETOOTH_COD_MINOR_AUDIO_HEADPHONE   0x00000018
#define ALP_BLUETOOTH_COD_MINOR_AUDIO_HEADSET   0x00000004
#define ALP_BLUETOOTH_COD_MINOR_AUDIO_HIFI_AUDIO   0x00000028
#define ALP_BLUETOOTH_COD_MINOR_AUDIO_LOUDSPEAKER   0x00000014
#define ALP_BLUETOOTH_COD_MINOR_AUDIO_MICROPHONE   0x00000010
#define ALP_BLUETOOTH_COD_MINOR_AUDIO_PORTABLE_AUDIO   0x0000001C
#define ALP_BLUETOOTH_COD_MINOR_AUDIO_SETTOPBOX   0x00000024
#define ALP_BLUETOOTH_COD_MINOR_AUDIO_UNCLASSIFIED   0x00000000
#define ALP_BLUETOOTH_COD_MINOR_AUDIO_VCR   0x0000002C
#define ALP_BLUETOOTH_COD_MINOR_AUDIO_VIDEO_CAMERA   0x00000030
#define ALP_BLUETOOTH_COD_MINOR_AUDIO_VIDEO_CONF   0x00000040
#define ALP_BLUETOOTH_COD_MINOR_AUDIO_VIDEO_DISPLAY_AND_LOUDSPEAKER   0x0000003C
#define ALP_BLUETOOTH_COD_MINOR_AUDIO_VIDEO_MONITOR   0x00000038

Group: Minor Device Class - Computer Major class (Select one)

#define ALP_BLUETOOTH_COD_MINOR_COMP_ANY   ALP_BLUETOOTH_COD_MINOR_ANY
#define ALP_BLUETOOTH_COD_MINOR_COMP_DESKTOP   0x00000004
#define ALP_BLUETOOTH_COD_MINOR_COMP_HANDHELD   0x00000010
#define ALP_BLUETOOTH_COD_MINOR_COMP_LAPTOP   0x0000000C
#define ALP_BLUETOOTH_COD_MINOR_COMP_PALM   0x00000014
#define ALP_BLUETOOTH_COD_MINOR_COMP_SERVER   0x00000008
#define ALP_BLUETOOTH_COD_MINOR_COMP_UNCLASSIFIED   0x00000000

Group: Minor Device Class - Imaging Major class (Select multiple is possible)

#define ALP_BLUETOOTH_COD_MINOR_IMAGING_CAMERA   0x00000020
#define ALP_BLUETOOTH_COD_MINOR_IMAGING_DISPLAY   0x00000010
#define ALP_BLUETOOTH_COD_MINOR_IMAGING_PRINTER   0x00000080
#define ALP_BLUETOOTH_COD_MINOR_IMAGING_SCANNER   0x00000040
#define ALP_BLUETOOTH_COD_MINOR_IMAGING_UNCLASSIFIED   0x00000000

Group: Minor Device Class - LAN Access Point Major class (Select one)

#define ALP_BLUETOOTH_COD_MINOR_LAN_0   0x00000000
 fully available
#define ALP_BLUETOOTH_COD_MINOR_LAN_17   0x00000020
 1-17% utilized
#define ALP_BLUETOOTH_COD_MINOR_LAN_33   0x00000040
 17-33% utilized
#define ALP_BLUETOOTH_COD_MINOR_LAN_50   0x00000060
 33-50% utilized
#define ALP_BLUETOOTH_COD_MINOR_LAN_67   0x00000080
 50-67% utilized
#define ALP_BLUETOOTH_COD_MINOR_LAN_83   0x000000A0
 67-83% utilized
#define ALP_BLUETOOTH_COD_MINOR_LAN_99   0x000000C0
 83-99% utilized
#define ALP_BLUETOOTH_COD_MINOR_LAN_ANY   ALP_BLUETOOTH_COD_MINOR_ANY
#define ALP_BLUETOOTH_COD_MINOR_LAN_NO_SERVICE   0x000000E0
 100% utilized

Group: Minor sub Device Class - Peripheral Major class (Select one)

#define ALP_BLUETOOTH_COD_MINOR_PERIPHERAL_CARD_READER   0x00000018
#define ALP_BLUETOOTH_COD_MINOR_PERIPHERAL_DIGITIZER_TABLET   0x00000014
#define ALP_BLUETOOTH_COD_MINOR_PERIPHERAL_GAMEPAD   0x00000008
#define ALP_BLUETOOTH_COD_MINOR_PERIPHERAL_JOYSTICK   0x00000004
#define ALP_BLUETOOTH_COD_MINOR_PERIPHERAL_REMOTE_CONTROL   0x0000000C
#define ALP_BLUETOOTH_COD_MINOR_PERIPHERAL_SENSING   0x00000010

Group: Minor Device Class - Peripheral Major class (Select one)

#define ALP_BLUETOOTH_COD_MINOR_PERIPHERAL_COMBO   0x000000C0
#define ALP_BLUETOOTH_COD_MINOR_PERIPHERAL_KEYBOARD   0x00000040
#define ALP_BLUETOOTH_COD_MINOR_PERIPHERAL_POINTING   0x00000080
#define ALP_BLUETOOTH_COD_MINOR_PERIPHERAL_UNCLASSIFIED   0x00000000

Group: Minor Device Class - Phone Major class (Select one)

#define ALP_BLUETOOTH_COD_MINOR_PHONE_ANY   ALP_BLUETOOTH_COD_MINOR_ANY
#define ALP_BLUETOOTH_COD_MINOR_PHONE_CELLULAR   0x00000004
#define ALP_BLUETOOTH_COD_MINOR_PHONE_CORDLESS   0x00000008
#define ALP_BLUETOOTH_COD_MINOR_PHONE_ISDN   0x00000014
#define ALP_BLUETOOTH_COD_MINOR_PHONE_MODEM   0x00000010
#define ALP_BLUETOOTH_COD_MINOR_PHONE_SMART   0x0000000C
#define ALP_BLUETOOTH_COD_MINOR_PHONE_UNCLASSIFIED   0x00000000

Group: Minor sub Device Class - Toy Major class (Select one)

#define ALP_BLUETOOTH_COD_MINOR_TOY_CONTROLLER   0x00000010
#define ALP_BLUETOOTH_COD_MINOR_TOY_DOLL   0x0000000C
#define ALP_BLUETOOTH_COD_MINOR_TOY_GAME   0x00000014
#define ALP_BLUETOOTH_COD_MINOR_TOY_ROBOT   0x00000004
#define ALP_BLUETOOTH_COD_MINOR_TOY_VEHICLE   0x00000008

Group: Minor sub Device Class - Wearable Major class (Select one)

#define ALP_BLUETOOTH_COD_MINOR_WEARABLE_GLASSES   0x00000014
#define ALP_BLUETOOTH_COD_MINOR_WEARABLE_HELMET   0x00000010
#define ALP_BLUETOOTH_COD_MINOR_WEARABLE_JACKET   0x0000000C
#define ALP_BLUETOOTH_COD_MINOR_WEARABLE_PAGER   0x00000008
#define ALP_BLUETOOTH_COD_MINOR_WEARABLE_WRISTWATCH   0x00000004

Bluetooth Profile support in application

#define ALP_BLUETOOTH_CONNECT_ADDR_PARAM   "addr"
 Destination address : a string representing a bdaddr.
#define ALP_BLUETOOTH_CONNECT_VERB   "bluetooth_connect"
 support of default action for a specific uuid

Defines

#define ALP_BLUETOOTH_DEVICE_ADDRESS_STRING_SIZE   18
 Size of a device address in string form (counting the terminal null char).
#define ALP_BLUETOOTH_DISCOVERY_DIALOG(object)   (G_TYPE_CHECK_INSTANCE_CAST ((object), ALP_TYPE_BLUETOOTH_DISCOVERY_DIALOG, AlpBluetoothDiscoveryDialog))
#define ALP_BLUETOOTH_DISCOVERY_DIALOG_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), ALP_TYPE_BLUETOOTH_DISCOVERY_DIALOG, AlpBluetoothDiscoveryDialogClass))
#define ALP_BLUETOOTH_DISCOVERY_DIALOG_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), ALP_TYPE_BLUETOOTH_DISCOVERY_DIALOG, AlpBluetoothDiscoveryDialogClass))
#define ALP_BLUETOOTH_ERR_CANCELED   (ALP_CLASS_BLUETOOTH|0x03)
 operation was canceled
#define ALP_BLUETOOTH_ERR_ERROR   (ALP_CLASS_BLUETOOTH|0xFF)
 operation failed
#define ALP_BLUETOOTH_ERR_NO_ERROR   0
 operation completed successfully
#define ALP_BLUETOOTH_ERR_OUT_OF_MEMORY   (ALP_CLASS_BLUETOOTH|0x04)
 not enough memory to perform operation
#define ALP_BLUETOOTH_ERR_PARAM_ERROR   (ALP_CLASS_BLUETOOTH|0x02)
 invalid parameter to function
#define ALP_BLUETOOTH_ERR_PENDING   (ALP_CLASS_BLUETOOTH|0x01)
 operation will complete later, status and results will arrive in an event
#define ALP_BLUETOOTH_MAX_DEVICE_NAME_SIZE   249
 Max device name size, including null terminator.
#define ALP_BLUETOOTH_UUID_16_128(x)   "0000" x "-0000-1000-8000-00805f9b34fb"
 Transform 16 bits UUID string to 128 bits UUID string.
#define ALP_BLUETOOTH_UUID_32_128(x)   x "-0000-1000-8000-00805f9b34fb"
 Transform 32 bits UUID string to 128 bits UUID string.
#define ALP_IS_BLUETOOTH_DISCOVERY_DIALOG(object)   (G_TYPE_CHECK_INSTANCE_TYPE ((object), ALP_TYPE_BLUETOOTH_DISCOVERY_DIALOG))
#define ALP_IS_BLUETOOTH_DISCOVERY_DIALOG_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), ALP_TYPE_BLUETOOTH_DISCOVERY_DIALOG))
#define ALP_TYPE_BLUETOOTH_DISCOVERY_DIALOG   (alp_bluetooth_discovery_dialog_get_type ())
 bluetooth discovery widget macros

Typedefs

typedef uint32_t AlpBluetoothClassOfDeviceType
 Bit pattern representing the class of device along with the supported services.
typedef _AlpBluetoothDiscoveryDialog AlpBluetoothDiscoveryDialog
 bluetooth discovery widget structure

Functions

alp_status_t alp_bluetooth_check (GtkWindow *parent)
 Check if bluetooth is usable.
AlpBluetoothClassOfDeviceType alp_bluetooth_cod_from_string (char *major, char *minor, char *subminor, char **services)
 return the class-of-device from major class, minor and service class strings
guint alp_bluetooth_discovery_dialog_get_selection (AlpBluetoothDiscoveryDialog *ioDialogP, gchar ***oDeviceTableP)
 Getlist of devices selected by user.
GType alp_bluetooth_discovery_dialog_get_type (void) G_GNUC_CONST
 get_type method for AlpBluetoothDiscoveryDialog.
GtkWidget * alp_bluetooth_discovery_dialog_new (GtkWindow *iParentP, guint iMaxDeviceSelection)
 Create new ALP Bluetooth Discovery dialog.
gint alp_bluetooth_discovery_dialog_run (AlpBluetoothDiscoveryDialog *ioDialogP)
 Run ALP Bluetooth Discovery dialog.
void alp_bluetooth_discovery_dialog_set_action_button_text (AlpBluetoothDiscoveryDialog *ioDialogP, gchar *iString)
 Set 'ok' button text.
void alp_bluetooth_discovery_dialog_set_cancel_button_text (AlpBluetoothDiscoveryDialog *ioDialogP, gchar *iString)
 Set 'cancel' button text.
void alp_bluetooth_discovery_dialog_set_filter (AlpBluetoothDiscoveryDialog *ioDialogP, AlpBluetoothClassOfDeviceType *iFilterTableP, guint filterTableLen)
 Set Class of Device used to filter display.
void alp_bluetooth_discovery_dialog_set_instruction (AlpBluetoothDiscoveryDialog *ioDialogP, gchar *iString)
 Set instruction text displayed in dialog.
alp_status_t alp_bluetooth_get_pixmap_from_cod (GtkWidget *widget, char *major, char *minor, const char *size_name, GdkPixbuf **icon)
 return the pixmap that represents the given class-of-device
alp_status_t alp_bluetooth_prepare_afh_channels (uint8_t *afh_map, uint8_t begin, uint8_t count, uint8_t state)
 prepare AFH channels map
alp_status_t alp_bluetooth_prepare_wifi_channels (uint8_t *afh_map, uint8_t wifi_channel, uint8_t state)
 prepare AFH channels map from WiFi channel
void alp_bluetooth_string_from_cod (AlpBluetoothClassOfDeviceType cod, char **major, char **minor, char **subminor, char ***services)
 return major, minor and service class strings from the class-of-device


Generated on Wed Jul 30 07:06:39 2008 by Doxygen 1.4.6 for ALP SDK + Hiker Documentation

Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.