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 | |
| 11 | using std::map; |
| 12 | using std::string; |
| 13 | |
| 14 | namespace shill { |
| 15 | |
| 16 | // TODO(cmasone): Figure out if we should be trying to own sub-interfaces. |
| 17 | // static |
| 18 | const char DeviceDBusAdaptor::kInterfaceName[] = SHILL_INTERFACE; // ".Device"; |
| 19 | // static |
| 20 | const char DeviceDBusAdaptor::kPath[] = SHILL_PATH "/Device"; |
| 21 | |
| 22 | DeviceDBusAdaptor::DeviceDBusAdaptor(DBus::Connection& conn, Device *device) |
Paul Stewart | 28fbfdf | 2011-05-31 09:37:38 -0700 | [diff] [blame^] | 23 | : DBusAdaptor(conn, string(kPath) + string("/") + device->Name()), |
Chris Masone | d7732e4 | 2011-05-20 11:08:56 -0700 | [diff] [blame] | 24 | device_(device) { |
| 25 | } |
| 26 | DeviceDBusAdaptor::~DeviceDBusAdaptor() {} |
| 27 | |
| 28 | void DeviceDBusAdaptor::UpdateEnabled() {} |
| 29 | |
| 30 | map<string, ::DBus::Variant> DeviceDBusAdaptor::GetProperties( |
| 31 | ::DBus::Error &error) { |
| 32 | return map<string, ::DBus::Variant>(); |
| 33 | } |
| 34 | |
| 35 | void DeviceDBusAdaptor::SetProperty(const string& , |
| 36 | const ::DBus::Variant& , |
| 37 | ::DBus::Error &error) { |
| 38 | } |
| 39 | |
| 40 | void DeviceDBusAdaptor::ProposeScan(::DBus::Error &error) { |
| 41 | } |
| 42 | |
| 43 | ::DBus::Path DeviceDBusAdaptor::AddIPConfig(const string& , |
| 44 | ::DBus::Error &error) { |
| 45 | return ::DBus::Path(); |
| 46 | } |
| 47 | |
| 48 | } // namespace shill |