Edward Hill | 024f563 | 2017-06-29 15:23:38 -0600 | [diff] [blame] | 1 | // 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 | |
| 12 | namespace debugd { |
| 13 | |
| 14 | // Gets and sets WiFi power save mode. |
| 15 | class WifiPowerTool { |
| 16 | public: |
| 17 | WifiPowerTool() = default; |
| 18 | ~WifiPowerTool() = default; |
| 19 | |
| 20 | // Sets the power save mode and returns the new mode, or an error. |
| 21 | std::string SetWifiPowerSave(bool enable) const; |
| 22 | |
| 23 | // Returns the current power save mode. |
| 24 | std::string GetWifiPowerSave() const; |
| 25 | |
| 26 | private: |
| 27 | DISALLOW_COPY_AND_ASSIGN(WifiPowerTool); |
| 28 | }; |
| 29 | |
| 30 | } // namespace debugd |
| 31 | |
| 32 | #endif // DEBUGD_SRC_WIFI_POWER_TOOL_H_ |