blob: 3e865eb9e8fabf68e15981f2e4a0dda61b411521 [file] [log] [blame]
Edward Hill024f5632017-06-29 15:23:38 -06001// Copyright 2017 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#ifndef DEBUGD_SRC_WIFI_POWER_TOOL_H_
6#define DEBUGD_SRC_WIFI_POWER_TOOL_H_
7
8#include <string>
9
10#include <base/macros.h>
11
12namespace debugd {
13
14// Gets and sets WiFi power save mode.
15class WifiPowerTool {
16 public:
17 WifiPowerTool() = default;
Qijiang Fan6bc59e12020-11-11 02:51:06 +090018 WifiPowerTool(const WifiPowerTool&) = delete;
19 WifiPowerTool& operator=(const WifiPowerTool&) = delete;
20
Edward Hill024f5632017-06-29 15:23:38 -060021 ~WifiPowerTool() = default;
22
23 // Sets the power save mode and returns the new mode, or an error.
24 std::string SetWifiPowerSave(bool enable) const;
25
26 // Returns the current power save mode.
27 std::string GetWifiPowerSave() const;
Edward Hill024f5632017-06-29 15:23:38 -060028};
29
30} // namespace debugd
31
32#endif // DEBUGD_SRC_WIFI_POWER_TOOL_H_