1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_SERVICE_RECORD_WIN_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_SERVICE_RECORD_WIN_H_
10 #include "base/basictypes.h"
11 #include "device/bluetooth/bluetooth_init_win.h"
12 #include "device/bluetooth/bluetooth_uuid.h"
16 class BluetoothServiceRecordWin
{
18 BluetoothServiceRecordWin(const std::string
& name
,
19 const std::string
& address
,
23 BTH_ADDR
bth_addr() const { return bth_addr_
; }
25 // The human-readable name of this service.
26 const std::string
& name() const { return name_
; }
28 // The address of the BluetoothDevice providing this service.
29 const std::string
& address() const { return address_
; }
31 // The UUID of the service. This field may be empty if no UUID was
32 // specified in the service record.
33 const BluetoothUUID
& uuid() const { return uuid_
; }
35 // Indicates if this service supports RFCOMM communication.
36 bool SupportsRfcomm() const { return supports_rfcomm_
; }
38 // The RFCOMM channel to use, if this service supports RFCOMM communication.
39 // The return value is undefined if SupportsRfcomm() returns false.
40 uint8
rfcomm_channel() const { return rfcomm_channel_
; }
48 bool supports_rfcomm_
;
49 uint8 rfcomm_channel_
;
51 DISALLOW_COPY_AND_ASSIGN(BluetoothServiceRecordWin
);
56 #endif // DEVICE_BLUETOOTH_BLUETOOTH_SERVICE_RECORD_WIN_H_