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

Side by Side Diff: chromeos/dbus/bluetooth_node_client.h

Issue 10698027: dbus: move logic from Property<> to PropertySet (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing overrides for clang Created 8 years, 5 months 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
« no previous file with comments | « chromeos/dbus/bluetooth_manager_client.h ('k') | chromeos/dbus/bluetooth_property.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMEOS_DBUS_BLUETOOTH_NODE_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_BLUETOOTH_NODE_CLIENT_H_
6 #define CHROMEOS_DBUS_BLUETOOTH_NODE_CLIENT_H_ 6 #define CHROMEOS_DBUS_BLUETOOTH_NODE_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 14 matching lines...) Expand all
25 class BluetoothDeviceClient; 25 class BluetoothDeviceClient;
26 26
27 // BluetoothNodeClient is used to represent persistent device nodes 27 // BluetoothNodeClient is used to represent persistent device nodes
28 // bound to bluetooth devices, such as RFCOMM TTY bindings to ttyX devices 28 // bound to bluetooth devices, such as RFCOMM TTY bindings to ttyX devices
29 // in Linux. 29 // in Linux.
30 class CHROMEOS_EXPORT BluetoothNodeClient { 30 class CHROMEOS_EXPORT BluetoothNodeClient {
31 public: 31 public:
32 // Structure of properties associated with persistent device nodes. 32 // Structure of properties associated with persistent device nodes.
33 struct Properties : public BluetoothPropertySet { 33 struct Properties : public BluetoothPropertySet {
34 // The name of the device node under /dev. Read-only. 34 // The name of the device node under /dev. Read-only.
35 BluetoothProperty<std::string> name; 35 dbus::Property<std::string> name;
36 36
37 // Object path of the device the node binding belongs to. Read-only. 37 // Object path of the device the node binding belongs to. Read-only.
38 BluetoothProperty<dbus::ObjectPath> device; 38 dbus::Property<dbus::ObjectPath> device;
39 39
40 Properties(dbus::ObjectProxy* object_proxy, 40 Properties(dbus::ObjectProxy* object_proxy,
41 PropertyChangedCallback callback); 41 PropertyChangedCallback callback);
42 virtual ~Properties(); 42 virtual ~Properties();
43 }; 43 };
44 44
45 // Interface for observing changes from a persistent device node binding. 45 // Interface for observing changes from a persistent device node binding.
46 class Observer { 46 class Observer {
47 public: 47 public:
48 virtual ~Observer() {} 48 virtual ~Observer() {}
(...skipping 24 matching lines...) Expand all
73 protected: 73 protected:
74 BluetoothNodeClient(); 74 BluetoothNodeClient();
75 75
76 private: 76 private:
77 DISALLOW_COPY_AND_ASSIGN(BluetoothNodeClient); 77 DISALLOW_COPY_AND_ASSIGN(BluetoothNodeClient);
78 }; 78 };
79 79
80 } // namespace chromeos 80 } // namespace chromeos
81 81
82 #endif // CHROMEOS_DBUS_BLUETOOTH_NODE_CLIENT_H_ 82 #endif // CHROMEOS_DBUS_BLUETOOTH_NODE_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/bluetooth_manager_client.h ('k') | chromeos/dbus/bluetooth_property.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698