// Default constructor initializes all fields to be empty/false.
AdvertiseData();
AdvertiseData(const AdvertiseData& other);
- ~AdvertiseData() = default;
+ virtual ~AdvertiseData() = default;
// Returns true if the advertising data is formatted correctly according to
// the TLV format.
// TX power level: TX_POWER_LEVEL_MEDIUM
// connectable: true
AdvertiseSettings();
- ~AdvertiseSettings() = default;
+ virtual ~AdvertiseSettings() = default;
// Returns the advertise mode.
Mode mode() const { return mode_; }
permissions_(permissions),
descriptors_(descriptors){};
Characteristic& operator=(const Characteristic& other);
- ~Characteristic() = default;
+ virtual ~Characteristic() = default;
// Comparison function and operator.
bool Equals(const Characteristic& other) const;
Descriptor& operator=(const Descriptor& other);
Descriptor(uint16_t handle, const UUID& uuid, uint16_t permissions)
: handle_(handle), uuid_(uuid), permissions_(permissions){};
- ~Descriptor() = default;
+ virtual ~Descriptor() = default;
// Comparison function and operator.
bool Equals(const Descriptor& other) const;
class ScanFilter {
public:
ScanFilter() = default;
- ~ScanFilter() = default;
+ virtual ~ScanFilter() = default;
// Copy constructor and assignment operator.
ScanFilter(const ScanFilter& other);
ScanResult(const std::string& device_address,
const std::vector<uint8_t>& scan_record, int rssi);
ScanResult() = default;
- ~ScanResult() = default;
+ virtual ~ScanResult() = default;
// Returns the remote BD_ADDR associated with this scan result.
const std::string& device_address() const { return device_address_; }
ScanSettings(Mode mode, CallbackTypeBitField callback_type,
ResultType result_type, base::TimeDelta report_delay_ms,
MatchMode match_mode, MatchCount match_count_per_filter);
- ~ScanSettings() = default;
+ virtual ~ScanSettings() = default;
// Returns the scan mode.
Mode mode() const { return mode_; }
characteristics_(characteristics),
included_services_(included_services){};
Service& operator=(const Service& other);
- ~Service() = default;
+ virtual ~Service() = default;
// Comparison function and operator.
bool Equals(const Service& other) const;
// Construct a Bluetooth 'base' UUID.
UUID();
+ virtual ~UUID() = default;
// BlueDroid constructor.
explicit UUID(const bt_uuid_t& uuid);