TpBluetoothUuid 类
V0.2.1TpExtUtils
2025-11-14
基础信息
| 头文件: | include <TpBluetoothUuid.h> |
|---|---|
| Cmake: | None |
| 发布版本: | V0.2.1 |
| 继承类: | |
| 派生类: |
Public 类型
enum TpBluetoothUuid::Format
| 名称 | 值 | 描述 |
|---|---|---|
| Format16Bit | 0 | |
| Format32Bit | 1 | |
| Format128Bit | 2 | |
| FormatUnknown | 3 |
enum TpBluetoothUuid::ProtocolUuid
| 名称 | 值 | 描述 |
|---|---|---|
| TP_PROTOCOL_UUID_SDP | 0x0001 | |
| TP_PROTOCOL_UUID_UDP | 0x0002 | |
| TP_PROTOCOL_UUID_RFCOMM | 0x0003 | |
| TP_PROTOCOL_UUID_TCP | 0x0004 | |
| TP_PROTOCOL_UUID_TCS_BIN | 0x0005 | |
| TP_PROTOCOL_UUID_TCS_AT | 0x0006 | |
| TP_PROTOCOL_UUID_OBEX | 0x0008 | |
| TP_PROTOCOL_UUID_IP | 0x0009 | |
| TP_PROTOCOL_UUID_FTP | 0x000A | |
| TP_PROTOCOL_UUID_HTTP | 0x000C | |
| TP_PROTOCOL_UUID_WSP | 0x000E | |
| TP_PROTOCOL_UUID_BNEP | 0x000F | |
| TP_PROTOCOL_UUID_HIDP | 0x0011 | |
| TP_PROTOCOL_UUID_HARDCOPY_CONTROL_CHANNEL | 0x0012 | |
| TP_PROTOCOL_UUID_HARDCOPY_DATA_CHANNEL | 0x0014 | |
| TP_PROTOCOL_UUID_HARDCOPY_NOTIFICATION | 0x0016 | |
| TP_PROTOCOL_UUID_AVCTP | 0x0017 | |
| TP_PROTOCOL_UUID_AVDTP | 0x0019 | |
| TP_PROTOCOL_UUID_CMTP | 0x001B | |
| TP_PROTOCOL_UUID_UDI_C_PLANE | 0x001D | |
| TP_PROTOCOL_UUID_L2CAP | 0x0100 |
enum TpBluetoothUuid::ProfileUuid
| 名称 | 值 | 描述 |
|---|---|---|
| TP_PROFILE_SERVICE_DISCOVERY_SERCER | 0x1000 | |
| TP_PROFILE_BROWSE_GROUP_DESCRIPTOR | 0x1001 | |
| TP_PROFILE_PUBLIC_BROWSE_GROUP | 0x1002 | |
| TP_PROFILE_SERIAL_PORT | 0x1101 | |
| TP_PROFILE_LAN_ACCESS_USING_PPP | 0x1102 | |
| TP_PROFILE_DIALUP_NETWORKING | 0x1103 | |
| TP_PROFILE_IRMC_SYNC | 0x1104 | |
| TP_PROFILE_OBEX_OBJECT_PUSH | 0x1105 | |
| TP_PROFILE_OBEX_FILE_TRANSFER | 0x1106 | |
| TP_PROFILE_IRMC_SYNC_COMMAND | 0x1107 | |
| TP_PROFILE_HEADSET | 0x1108 | |
| TP_PROFILE_CORDLESS_TELEPHONY | 0x1109 | |
| TP_PROFILE_AUDIO_SOURCE | 0x110A | |
| TP_PROFILE_AUDIO_SINK | 0x110B | |
| TP_PROFILE_AV_REMOTE_CONTROL_TARGET | 0x110C | |
| TP_PROFILE_ADVANCED_AUDIO_DISTRIBUTION | 0x110D | |
| TP_PROFILE_AV_REMOTE_CONTROL | 0x110E | |
| TP_PROFILE_VIDEO_CONFERENCING | 0x110F | |
| TP_PROFILE_INTERCOM | 0x1110 | |
| TP_PROFILE_FAX | 0x1111 | |
| TP_PROFILE_HEADSET_AUDIO_GATEWAY | 0x1112 | |
| TP_PROFILE_WAP | 0x1113 | |
| TP_PROFILE_WAP_CLIENT | 0x1114 | |
| TP_PROFILE_PANU | 0x1115 | |
| TP_PROFILE_NAP | 0x1116 | |
| TP_PROFILE_GN | 0x1117 | |
| TP_PROFILE_DIRECT_PRINTING | 0x1118 | |
| TP_PROFILE_REFERENCE_PRINTING | 0x1119 | |
| TP_PROFILE_IMAGING | 0x111A | |
| TP_PROFILE_IMAGING_RESPONDER | 0x111B | |
| TP_PROFILE_IMAGING_AUTOMATIC_ARCHIVE | 0x111C | |
| TP_PROFILE_IMAGING_REFERENCE_OBJECTS | 0x111D | |
| TP_PROFILE_HANDSFREE | 0x111E | |
| TP_PROFILE_HANDSFREE_AUDIO_GATEWAY | 0x111F | |
| TP_PROFILE_DIRECT_PRINTING_REFERENCE_OBJECTS | 0x1120 | |
| TP_PROFILE_REFLECTED_UI | 0x1121 | |
| TP_PROFILE_BASIC_PRINGING | 0x1122 | |
| TP_PROFILE_PRINTING_STATUS | 0x1123 | |
| TP_PROFILE_HUMAN_INTERFACE_DEVICE | 0x1124 | |
| TP_PROFILE_HARDCOPY_CABLE_REPLACEMENT | 0x1125 | |
| TP_PROFILE_HCR_PRINT | 0x1126 | |
| TP_PROFILE_HCR_SCAN | 0x1127 | |
| TP_PROFILE_COMMON_ISDN_ACCESS | 0x1128 | |
| TP_PROFILE_VIDEO_CONFERENCING_GW | 0x1129 | |
| TP_PROFILE_UDIMT | 0x112A | |
| TP_PROFILE_UDITA | 0x112B | |
| TP_PROFILE_AUDIO_VIDEO | 0x112C | |
| TP_PROFILE_SIM_ACCESS | 0x112D | |
| TP_PROFILE_PN_P_INFORMATION | 0x1200 | |
| TP_PROFILE_GENERIC_NETWORKING | 0x1201 | |
| TP_PROFILE_GENERIC_FILE_TRANSFER | 0x1202 | |
| TP_PROFILE_GENERIC_AUDIO | 0x1203 | |
| TP_PROFILE_GENERIC_TELEPHONY | 0x1204 | |
| TP_PROFILE_UPN_P | 0x1205 | |
| TP_PROFILE_UPN_P_IP | 0x1206 | |
| TP_PROFILE_ESDP_UPN_P_IP_PAN | 0x1300 | |
| TP_PROFILE_ESDP_UPN_P_IP_LAP | 0x1301 | |
| TP_PROFILE_EDP_UPNP_IP_L2_CAP | 0x1302 | |
| TP_PROFILE_PHONE_BOOK_ACCESS | 0x112F |
Public 成员函数
| TpBluetoothUuid() | ||
|---|---|---|
| TpBluetoothUuid(tpUInt16 uuid) | ||
| TpBluetoothUuid(tpUInt32 uuid) | ||
| TpBluetoothUuid(const tpUInt8 uuid[16]) | ||
| TpBluetoothUuid(const TpString &uuid) | ||
| TpBluetoothUuid(const TpBluetoothUuid::ProtocolUuid uuid) | ||
| TpBluetoothUuid(const TpBluetoothUuid::ProfileUuid uuid) | ||
| TpBluetoothUuid(const TpBluetoothUuid &uuid) | ||
| ~TpBluetoothUuid() | ||
| TpBluetoothUuid & TpBluetoothUuid::operator= | operator=(const TpBluetoothUuid &other) | |
| operator!=(const TpBluetoothUuid &other) const | ||
| operator==(const TpBluetoothUuid &other) const | ||
| TpBluetoothUuid::Format | getFormat() const | 获取UUID类型 |
| toUInt16(tpBool *ok=nullptr) const | 转换为tpUInt16类型 | |
| toUInt32(tpBool *ok=nullptr) const | 转换为tpUInt32类型 | |
| TpString | toString() const | 转换字符串类型 |
| isNull() const | UUID是否为空 | |
| TpString | toName() const |
成员函数说明
TpBluetoothUuid::TpBluetoothUuid()
暂无注释...
TpBluetoothUuid::TpBluetoothUuid(tpUInt16 uuid)
暂无注释...
TpBluetoothUuid::TpBluetoothUuid(tpUInt32 uuid)
暂无注释...
TpBluetoothUuid::TpBluetoothUuid(const tpUInt8 uuid[16])
暂无注释...
TpBluetoothUuid::TpBluetoothUuid(const TpString &uuid)
暂无注释...
TpBluetoothUuid::TpBluetoothUuid(const TpBluetoothUuid::ProtocolUuid uuid)
暂无注释...
TpBluetoothUuid::TpBluetoothUuid(const TpBluetoothUuid::ProfileUuid uuid)
暂无注释...
TpBluetoothUuid::TpBluetoothUuid(const TpBluetoothUuid &uuid)
暂无注释...
TpBluetoothUuid::~TpBluetoothUuid()
暂无注释...
TpBluetoothUuid & TpBluetoothUuid::operator=(const TpBluetoothUuid &other)
暂无注释...
tpBool TpBluetoothUuid::operator!=(const TpBluetoothUuid &other) const
暂无注释...
tpBool TpBluetoothUuid::operator==(const TpBluetoothUuid &other) const
暂无注释...
TpBluetoothUuid::Format TpBluetoothUuid::getFormat() const
获取UUID类型...
获取UUID类型
返回值:
tpUInt16 TpBluetoothUuid::toUInt16(tpBool *ok=nullptr) const
转换为tpUInt16类型...
转换为tpUInt16类型
参数:ok: 是否成功的返回
返回值:tpUInt16类型UUID
tpUInt32 TpBluetoothUuid::toUInt32(tpBool *ok=nullptr) const
转换为tpUInt32类型...
转换为tpUInt32类型
参数:ok: 是否成功的返回
返回值:toUInt32类型的UUID
TpString TpBluetoothUuid::toString() const
转换字符串类型...
转换字符串类型
返回值:字符串类型UUID
tpBool TpBluetoothUuid::isNull() const
UUID是否为空...
UUID是否为空
返回值:
