Darin Petkov | e02b3ca | 2011-05-31 16:00:44 -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 | |
| 5 | #include "shill/ipconfig.h" |
| 6 | |
| 7 | #include <base/logging.h> |
| 8 | |
| 9 | #include "shill/device.h" |
| 10 | |
| 11 | using std::string; |
| 12 | |
| 13 | namespace shill { |
| 14 | |
Darin Petkov | 50308cd | 2011-06-01 18:25:07 -0700 | [diff] [blame] | 15 | IPConfig::IPConfig(const Device &device) : device_(device) { |
Darin Petkov | e02b3ca | 2011-05-31 16:00:44 -0700 | [diff] [blame] | 16 | VLOG(2) << "IPConfig created."; |
| 17 | } |
| 18 | |
| 19 | IPConfig::~IPConfig() { |
| 20 | VLOG(2) << "IPConfig destroyed."; |
| 21 | } |
| 22 | |
| 23 | const string &IPConfig::GetDeviceName() const { |
Chris Masone | a82b711 | 2011-05-25 15:16:29 -0700 | [diff] [blame] | 24 | return device().UniqueName(); |
Darin Petkov | e02b3ca | 2011-05-31 16:00:44 -0700 | [diff] [blame] | 25 | } |
| 26 | |
Darin Petkov | e7cb7f8 | 2011-06-03 13:21:51 -0700 | [diff] [blame^] | 27 | bool IPConfig::Request() { |
| 28 | return false; |
| 29 | } |
| 30 | |
| 31 | bool IPConfig::Renew() { |
| 32 | return false; |
| 33 | } |
| 34 | |
| 35 | void IPConfig::UpdateProperties(const Properties &properties) { |
| 36 | properties_ = properties; |
| 37 | // TODO(petkov): Notify listeners about the new properties. |
| 38 | } |
| 39 | |
Darin Petkov | e02b3ca | 2011-05-31 16:00:44 -0700 | [diff] [blame] | 40 | } // namespace shill |