Chris Masone | 52cd19b | 2011-06-29 17:23:04 -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/profile.h" |
| 6 | |
| 7 | #include <string> |
| 8 | |
| 9 | #include <base/logging.h> |
Chris Masone | 88cbd5f | 2011-07-03 14:30:04 -0700 | [diff] [blame^] | 10 | #include <chromeos/dbus/service_constants.h> |
Chris Masone | 52cd19b | 2011-06-29 17:23:04 -0700 | [diff] [blame] | 11 | |
| 12 | #include "shill/adaptor_interfaces.h" |
| 13 | #include "shill/control_interface.h" |
Chris Masone | 52cd19b | 2011-06-29 17:23:04 -0700 | [diff] [blame] | 14 | #include "shill/property_accessor.h" |
Chris Masone | 52cd19b | 2011-06-29 17:23:04 -0700 | [diff] [blame] | 15 | |
| 16 | using std::string; |
| 17 | |
| 18 | namespace shill { |
| 19 | Profile::Profile(ControlInterface *control_interface) |
| 20 | : adaptor_(control_interface->CreateProfileAdaptor(this)) { |
Chris Masone | 88cbd5f | 2011-07-03 14:30:04 -0700 | [diff] [blame^] | 21 | // flimflam::kCheckPortalListProperty: Registered in DefaultProfile |
| 22 | // flimflam::kCountryProperty: Registered in DefaultProfile |
| 23 | store_.RegisterConstString(flimflam::kNameProperty, &name_); |
| 24 | |
| 25 | // flimflam::kOfflineModeProperty: Registered in DefaultProfile |
| 26 | // flimflam::kPortalURLProperty: Registered in DefaultProfile |
| 27 | |
| 28 | // TODO(cmasone): Implement these once we figure out where Profiles fit. |
| 29 | // HelpRegisterDerivedStrings(flimflam::kServicesProperty, |
| 30 | // &Manager::EnumerateAvailableServices, |
| 31 | // NULL); |
| 32 | // HelpRegisterDerivedStrings(flimflam::kEntriesProperty, |
| 33 | // &Manager::EnumerateEntries, |
| 34 | // NULL); |
Chris Masone | 52cd19b | 2011-06-29 17:23:04 -0700 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | Profile::~Profile() {} |
| 38 | |
Chris Masone | 52cd19b | 2011-06-29 17:23:04 -0700 | [diff] [blame] | 39 | } // namespace shill |