blob: 279266d79866fbd37faca99011829193a1266557 [file] [log] [blame]
Gilad Arnold55f39b72014-01-28 12:51:45 -08001// Copyright (c) 2014 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 "update_engine/policy_manager/generic_variables.h"
6#include "update_engine/policy_manager/real_shill_provider.h"
7
8namespace chromeos_policy_manager {
9
10// ShillProvider implementation.
11
12bool RealShillProvider::DoInit(void) {
13 // TODO(garnold) Initialize with actual (or fake) DBus connection.
14
Alex Deymo540d9422014-02-27 11:17:31 -080015 set_var_is_connected(
Alex Deymo0e433692014-02-20 07:23:03 -080016 new CopyVariable<bool>("is_connected", kVariableModeAsync,
17 is_connected_));
Alex Deymo540d9422014-02-27 11:17:31 -080018 set_var_conn_type(
Alex Deymo0e433692014-02-20 07:23:03 -080019 new CopyVariable<ShillConnType>("conn_type", kVariableModeAsync,
20 conn_type_));
Alex Deymo540d9422014-02-27 11:17:31 -080021 set_var_conn_last_changed(
Alex Deymo0e433692014-02-20 07:23:03 -080022 new CopyVariable<Time>("conn_last_changed", kVariableModeAsync,
23 conn_last_changed_));
Gilad Arnold55f39b72014-01-28 12:51:45 -080024 return true;
25}
26
27} // namespace chromeos_policy_manager