blob: 2593e5629a550f888ece18fc4a0b155e0191fa38 [file] [log] [blame]
Chris Masone52cd19b2011-06-29 17:23:04 -07001// 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 Masone88cbd5f2011-07-03 14:30:04 -070010#include <chromeos/dbus/service_constants.h>
Chris Masone52cd19b2011-06-29 17:23:04 -070011
12#include "shill/adaptor_interfaces.h"
13#include "shill/control_interface.h"
Chris Masone52cd19b2011-06-29 17:23:04 -070014#include "shill/property_accessor.h"
Chris Masone52cd19b2011-06-29 17:23:04 -070015
16using std::string;
17
18namespace shill {
19Profile::Profile(ControlInterface *control_interface)
20 : adaptor_(control_interface->CreateProfileAdaptor(this)) {
Chris Masone88cbd5f2011-07-03 14:30:04 -070021 // 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 Masone52cd19b2011-06-29 17:23:04 -070035}
36
37Profile::~Profile() {}
38
Chris Masone52cd19b2011-06-29 17:23:04 -070039} // namespace shill