blob: 3f74760c84380de638e0d8f4feec36e0070bbcca [file] [log] [blame]
Chris Masone88cbd5f2011-07-03 14:30: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/default_profile.h"
6
7#include <chromeos/dbus/service_constants.h>
8
9#include "shill/adaptor_interfaces.h"
10#include "shill/control_interface.h"
11#include "shill/manager.h"
12
13namespace shill {
Chris Masone7df0c672011-07-15 10:24:54 -070014const char DefaultProfile::kDefaultId[] = "default";
Chris Masone88cbd5f2011-07-03 14:30:04 -070015
16DefaultProfile::DefaultProfile(ControlInterface *control_interface,
Darin Petkova4766822011-07-07 10:42:22 -070017 GLib *glib,
Chris Masone6791a432011-07-12 13:23:19 -070018 Manager *manager,
Chris Masone88cbd5f2011-07-03 14:30:04 -070019 const Manager::Properties &manager_props)
Chris Masone7df0c672011-07-15 10:24:54 -070020 : Profile(control_interface, glib, manager, Identifier(kDefaultId), true) {
Chris Masone88cbd5f2011-07-03 14:30:04 -070021 store_.RegisterConstString(flimflam::kCheckPortalListProperty,
22 &manager_props.check_portal_list);
23 store_.RegisterConstString(flimflam::kCountryProperty,
24 &manager_props.country);
25 store_.RegisterConstBool(flimflam::kOfflineModeProperty,
26 &manager_props.offline_mode);
27 store_.RegisterConstString(flimflam::kPortalURLProperty,
28 &manager_props.portal_url);
29}
30
31DefaultProfile::~DefaultProfile() {}
32
33} // namespace shill