1 // Copyright (c) 2012 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 // TODO(youngki): Implement this file.
7 #include "device/bluetooth/bluetooth_device_win.h"
10 #include "base/basictypes.h"
11 #include "base/logging.h"
12 #include "device/bluetooth/bluetooth_out_of_band_pairing_data.h"
16 BluetoothDeviceWin::BluetoothDeviceWin() : BluetoothDevice() {
19 BluetoothDeviceWin::~BluetoothDeviceWin() {
22 bool BluetoothDeviceWin::IsPaired() const {
27 const BluetoothDevice::ServiceList
& BluetoothDeviceWin::GetServices() const {
29 return service_uuids_
;
32 void BluetoothDeviceWin::GetServiceRecords(
33 const ServiceRecordsCallback
& callback
,
34 const ErrorCallback
& error_callback
) {
38 bool BluetoothDeviceWin::ProvidesServiceWithUUID(
39 const std::string
& uuid
) const {
44 void BluetoothDeviceWin::ProvidesServiceWithName(
45 const std::string
& name
,
46 const ProvidesServiceCallback
& callback
) {
50 bool BluetoothDeviceWin::ExpectingPinCode() const {
55 bool BluetoothDeviceWin::ExpectingPasskey() const {
60 bool BluetoothDeviceWin::ExpectingConfirmation() const {
65 void BluetoothDeviceWin::Connect(
66 PairingDelegate
* pairing_delegate
,
67 const base::Closure
& callback
,
68 const ErrorCallback
& error_callback
) {
72 void BluetoothDeviceWin::SetPinCode(const std::string
& pincode
) {
76 void BluetoothDeviceWin::SetPasskey(uint32 passkey
) {
80 void BluetoothDeviceWin::ConfirmPairing() {
84 void BluetoothDeviceWin::RejectPairing() {
88 void BluetoothDeviceWin::CancelPairing() {
92 void BluetoothDeviceWin::Disconnect(
93 const base::Closure
& callback
,
94 const ErrorCallback
& error_callback
) {
98 void BluetoothDeviceWin::Forget(const ErrorCallback
& error_callback
) {
102 void BluetoothDeviceWin::ConnectToService(
103 const std::string
& service_uuid
,
104 const SocketCallback
& callback
) {
108 void BluetoothDeviceWin::SetOutOfBandPairingData(
109 const BluetoothOutOfBandPairingData
& data
,
110 const base::Closure
& callback
,
111 const ErrorCallback
& error_callback
) {
115 void BluetoothDeviceWin::ClearOutOfBandPairingData(
116 const base::Closure
& callback
,
117 const ErrorCallback
& error_callback
) {
121 } // namespace device