Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Side by Side Diff: chrome/browser/chromeos/bluetooth/bluetooth_device.h

Issue 8394030: Chrome OS: Add bluetooth API for device discovery (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename BluetoothDevice accessors Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 #pragma once
8
9 #include <string>
10
11 #include "base/basictypes.h"
12
13 namespace base {
14 class DictionaryValue;
15 } // namespace base
16
17 namespace chromeos {
18
19 class BluetoothDevice {
20 public:
21 virtual ~BluetoothDevice();
22
23 // Returns the MAC address for this device.
24 virtual const std::string& GetAddress() const = 0;
25
26 // Returns the bluetooth class for this device.
27 virtual uint32 GetBluetoothClass() const = 0;
28
29 // Returns the suggested icon type for this device.
30 // See http://standards.freedesktop.org/icon-naming-spec/ for details.
31 virtual const std::string& GetIcon() const = 0;
32
33 // Returns the name for this device.
34 virtual const std::string& GetName() const = 0;
35
36 // Returns whether or not this device is paired.
37 virtual bool IsPaired() const = 0;
38
39 // Returns a dictionary representation of this device.
40 virtual const base::DictionaryValue& AsDictionary() const = 0;
41
42 // Creates a device with property values based on |properties|.
43 static BluetoothDevice* Create(const base::DictionaryValue& properties);
44
45 protected:
46 BluetoothDevice();
47
48 private:
49 DISALLOW_COPY_AND_ASSIGN(BluetoothDevice);
50 };
51
52 } // namespace chromeos
53
54 #endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698