|
string | displayName |
|
uint16_t | datatype |
|
shared_ptr< PhysicalPHD > | physicalDevice |
|
uint16_t anonymous_namespace{bluedroid.cpp}::VirtualDevice::getDatatype |
( |
| ) |
const |
|
inlinevirtualnoexcept |
This getter will return the datatype implemented by this device. The datatype is a 16-bit unsigned integer – one of the MDC_DEV_SPEC_PROFILE_
codes belonging to the MDC_PART_INFRA
partition.
- Returns
- The datatype implemented by this device.
Implements PAL::VirtualPHD.
string anonymous_namespace{bluedroid.cpp}::VirtualDevice::getDisplayName |
( |
| ) |
const |
|
inlinevirtualnoexcept |
This getter will return a user-friendly (or at least user-recognizable) name of the virtual device, suitable for use in the user interface. Implementing classes should enforce consistent naming across other PAL layer interfaces (e.g. Bluetooth pairing, ZigBee network monitors and the like).
Bluetooth devices may (should?) grab the name from the optional MDEP Description field of the SDP record, if available; while USB devices may (should?) grab the name from the interface descriptor's iInterface field. If no name is available (including the case when the PAL component is not allowed to read these names), this name should be set to the empty string, and the user interface should be able to generate a default text based on the getDatatype() value.
- Returns
- The device name to be used in user interfaces, or "".
Implements PAL::VirtualPHD.
The documentation for this class was generated from the following file: