Chromium Code Reviews| Index: chrome/browser/chromeos/bluetooth/bluetooth_device.h |
| diff --git a/chrome/browser/chromeos/bluetooth/bluetooth_device.h b/chrome/browser/chromeos/bluetooth/bluetooth_device.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..319ad602692cc8ad25a4a6a2ed2a57f43d6d1608 |
| --- /dev/null |
| +++ b/chrome/browser/chromeos/bluetooth/bluetooth_device.h |
| @@ -0,0 +1,49 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_DEVICE_H_ |
| +#define CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_DEVICE_H_ |
| + |
|
tfarina
2011/10/23 02:15:44
#pragma once
Vince Laviano
2011/10/24 22:26:29
Done.
|
| +#include <string> |
| + |
| +#include "base/basictypes.h" |
| +#include "base/values.h" |
| + |
| +namespace chromeos { |
| + |
| +class BluetoothDevice { |
| + public: |
| + virtual ~BluetoothDevice(); |
| + |
| + // Returns the MAC address for this device. |
| + virtual const std::string& address() const = 0; |
|
tfarina
2011/10/23 02:15:44
please don't use unix_hacker style when naming pur
Vince Laviano
2011/10/24 22:26:29
Done.
|
| + |
| + // Returns the bluetooth class for this device. |
| + virtual uint32 bluetooth_class() const = 0; |
| + |
| + // Returns the suggested icon for this device. |
| + virtual const std::string& icon() const = 0; |
| + |
| + // Returns the name for this device. |
| + virtual const std::string& name() const = 0; |
| + |
| + // Returns whether or not this device is paired. |
| + virtual bool paired() const = 0; |
| + |
| + // Returns a dictionary representation of this device. |
| + virtual const DictionaryValue& dictionary_rep() const = 0; |
|
tfarina
2011/10/23 02:15:44
please forward declare this instead of including b
Vince Laviano
2011/10/24 22:26:29
Done.
|
| + |
| + // Creates a device with property values based on |properties|. |
| + static BluetoothDevice* Create(const DictionaryValue& properties); |
| + |
| + protected: |
| + BluetoothDevice(); |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(BluetoothDevice); |
| +}; |
| + |
| +} // namespace chromeos |
| + |
| +#endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_DEVICE_H_ |