Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 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. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_DEVICE_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_DEVICE_H_ | |
| 7 | |
|
tfarina
2011/10/23 02:15:44
#pragma once
Vince Laviano
2011/10/24 22:26:29
Done.
| |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/basictypes.h" | |
| 11 #include "base/values.h" | |
| 12 | |
| 13 namespace chromeos { | |
| 14 | |
| 15 class BluetoothDevice { | |
| 16 public: | |
| 17 virtual ~BluetoothDevice(); | |
| 18 | |
| 19 // Returns the MAC address for this device. | |
| 20 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.
| |
| 21 | |
| 22 // Returns the bluetooth class for this device. | |
| 23 virtual uint32 bluetooth_class() const = 0; | |
| 24 | |
| 25 // Returns the suggested icon for this device. | |
| 26 virtual const std::string& icon() const = 0; | |
| 27 | |
| 28 // Returns the name for this device. | |
| 29 virtual const std::string& name() const = 0; | |
| 30 | |
| 31 // Returns whether or not this device is paired. | |
| 32 virtual bool paired() const = 0; | |
| 33 | |
| 34 // Returns a dictionary representation of this device. | |
| 35 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.
| |
| 36 | |
| 37 // Creates a device with property values based on |properties|. | |
| 38 static BluetoothDevice* Create(const DictionaryValue& properties); | |
| 39 | |
| 40 protected: | |
| 41 BluetoothDevice(); | |
| 42 | |
| 43 private: | |
| 44 DISALLOW_COPY_AND_ASSIGN(BluetoothDevice); | |
| 45 }; | |
| 46 | |
| 47 } // namespace chromeos | |
| 48 | |
| 49 #endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_DEVICE_H_ | |
| OLD | NEW |