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

Unified Diff: chromeos/dbus/bluetooth_property.h

Issue 15020009: Bluetooth: remove legacy backend (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/dbus/bluetooth_out_of_band_client.cc ('k') | chromeos/dbus/bluetooth_property.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/bluetooth_property.h
diff --git a/chromeos/dbus/bluetooth_property.h b/chromeos/dbus/bluetooth_property.h
deleted file mode 100644
index 303b8cd220de0cb60ba6cafc421a9baba5416506..0000000000000000000000000000000000000000
--- a/chromeos/dbus/bluetooth_property.h
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) 2012 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 CHROMEOS_DBUS_BLUETOOTH_PROPERTY_H_
-#define CHROMEOS_DBUS_BLUETOOTH_PROPERTY_H_
-
-#include <string>
-
-#include "base/compiler_specific.h"
-#include "dbus/message.h"
-#include "dbus/object_proxy.h"
-#include "dbus/property.h"
-#include "third_party/cros_system_api/dbus/service_constants.h"
-
-namespace chromeos {
-
-// BlueZ predates the common D-Bus Properties API (though it inspired it),
-// override dbus::PropertySet to generate the correct method call to get
-// all properties, conenect to the correct signal and parse it correctly.
-class BluetoothPropertySet : public dbus::PropertySet {
- public:
- BluetoothPropertySet(dbus::ObjectProxy* object_proxy,
- const std::string& interface,
- const PropertyChangedCallback& callback)
- : dbus::PropertySet(object_proxy, interface, callback) {}
-
- // dbus::PropertySet override.
- //
- // Call after construction to connect property change notification
- // signals. Sub-classes may override to use different D-Bus signals.
- virtual void ConnectSignals() OVERRIDE;
-
- // dbus::PropertySet override.
- //
- // Requests an updated value from the remote object incurring a round-trip.
- virtual void Get(dbus::PropertyBase* property,
- GetCallback callback) OVERRIDE;
-
- // dbus::PropertySet override.
- //
- // Queries the remote object for values of all properties and updates
- // initial values.
- virtual void GetAll() OVERRIDE;
-
- // dbus::PropertySet override.
- //
- // Requests that the remote object change the property to its new value.
- virtual void Set(dbus::PropertyBase* property,
- SetCallback callback) OVERRIDE;
-
- // dbus::PropertySet override.
- //
- // Method connected by ConnectSignals() and called by dbus:: when
- // a property is changed.
- virtual void ChangedReceived(dbus::Signal* signal) OVERRIDE;
-};
-
-} // namespace chromeos
-
-#endif // CHROMEOS_DBUS_BLUETOOTH_PROPERTY_H_
« no previous file with comments | « chromeos/dbus/bluetooth_out_of_band_client.cc ('k') | chromeos/dbus/bluetooth_property.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698