Chris Masone | d7732e4 | 2011-05-20 11:08:56 -0700 | [diff] [blame] | 1 | // Copyright (c) 2011 The Chromium OS 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 | |
Paul Stewart | 28fbfdf | 2011-05-31 09:37:38 -0700 | [diff] [blame] | 5 | #include "shill/device.h" |
Chris Masone | d7732e4 | 2011-05-20 11:08:56 -0700 | [diff] [blame] | 6 | #include "shill/device_dbus_adaptor.h" |
| 7 | |
| 8 | #include <map> |
| 9 | #include <string> |
| 10 | |
Chris Masone | a82b711 | 2011-05-25 15:16:29 -0700 | [diff] [blame^] | 11 | #include "shill/device.h" |
| 12 | |
Chris Masone | d7732e4 | 2011-05-20 11:08:56 -0700 | [diff] [blame] | 13 | using std::map; |
| 14 | using std::string; |
| 15 | |
| 16 | namespace shill { |
| 17 | |
Chris Masone | d7732e4 | 2011-05-20 11:08:56 -0700 | [diff] [blame] | 18 | // static |
Chris Masone | a82b711 | 2011-05-25 15:16:29 -0700 | [diff] [blame^] | 19 | const char DeviceDBusAdaptor::kInterfaceName[] = SHILL_INTERFACE; |
Chris Masone | d7732e4 | 2011-05-20 11:08:56 -0700 | [diff] [blame] | 20 | // static |
Chris Masone | a82b711 | 2011-05-25 15:16:29 -0700 | [diff] [blame^] | 21 | const char DeviceDBusAdaptor::kPath[] = "/device/"; |
Chris Masone | d7732e4 | 2011-05-20 11:08:56 -0700 | [diff] [blame] | 22 | |
| 23 | DeviceDBusAdaptor::DeviceDBusAdaptor(DBus::Connection& conn, Device *device) |
Chris Masone | a82b711 | 2011-05-25 15:16:29 -0700 | [diff] [blame^] | 24 | : DBusAdaptor(conn, kPath + device->UniqueName()), |
Chris Masone | d7732e4 | 2011-05-20 11:08:56 -0700 | [diff] [blame] | 25 | device_(device) { |
| 26 | } |
| 27 | DeviceDBusAdaptor::~DeviceDBusAdaptor() {} |
| 28 | |
| 29 | void DeviceDBusAdaptor::UpdateEnabled() {} |
| 30 | |
| 31 | map<string, ::DBus::Variant> DeviceDBusAdaptor::GetProperties( |
| 32 | ::DBus::Error &error) { |
| 33 | return map<string, ::DBus::Variant>(); |
| 34 | } |
| 35 | |
| 36 | void DeviceDBusAdaptor::SetProperty(const string& , |
| 37 | const ::DBus::Variant& , |
| 38 | ::DBus::Error &error) { |
| 39 | } |
| 40 | |
| 41 | void DeviceDBusAdaptor::ProposeScan(::DBus::Error &error) { |
| 42 | } |
| 43 | |
| 44 | ::DBus::Path DeviceDBusAdaptor::AddIPConfig(const string& , |
| 45 | ::DBus::Error &error) { |
| 46 | return ::DBus::Path(); |
| 47 | } |
| 48 | |
| 49 | } // namespace shill |