Elly Jones | 15fc20f | 2012-02-09 14:29:06 -0500 | [diff] [blame] | 1 | // Copyright (c) 2012 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 | |
Ben Chan | a0011d8 | 2014-05-13 00:19:29 -0700 | [diff] [blame^] | 5 | #ifndef DEBUG_MODE_TOOL_H_ |
| 6 | #define DEBUG_MODE_TOOL_H_ |
Elly Jones | 15fc20f | 2012-02-09 14:29:06 -0500 | [diff] [blame] | 7 | |
| 8 | #include <string> |
Yuri Gorshenin | c18dee3 | 2012-08-16 23:03:46 +0400 | [diff] [blame] | 9 | #include <vector> |
Elly Jones | 15fc20f | 2012-02-09 14:29:06 -0500 | [diff] [blame] | 10 | |
| 11 | #include <base/basictypes.h> |
| 12 | #include <dbus-c++/dbus.h> |
| 13 | |
| 14 | namespace debugd { |
| 15 | |
| 16 | class DebugModeTool { |
| 17 | public: |
| 18 | explicit DebugModeTool(DBus::Connection* connection); |
| 19 | virtual ~DebugModeTool(); |
| 20 | |
| 21 | virtual void SetDebugMode(const std::string& subsystem, DBus::Error* error); |
Yuri Gorshenin | c18dee3 | 2012-08-16 23:03:46 +0400 | [diff] [blame] | 22 | |
Elly Jones | 15fc20f | 2012-02-09 14:29:06 -0500 | [diff] [blame] | 23 | private: |
Yuri Gorshenin | c18dee3 | 2012-08-16 23:03:46 +0400 | [diff] [blame] | 24 | void GetAllModemManagers(std::vector<std::string>* managers); |
| 25 | void SetAllModemManagersLogging(const std::string& level); |
| 26 | |
Elly Jones | 15fc20f | 2012-02-09 14:29:06 -0500 | [diff] [blame] | 27 | DBus::Connection* connection_; |
| 28 | DISALLOW_COPY_AND_ASSIGN(DebugModeTool); |
| 29 | }; |
| 30 | |
Ben Chan | a0011d8 | 2014-05-13 00:19:29 -0700 | [diff] [blame^] | 31 | } // namespace debugd |
Elly Jones | 15fc20f | 2012-02-09 14:29:06 -0500 | [diff] [blame] | 32 | |
Ben Chan | a0011d8 | 2014-05-13 00:19:29 -0700 | [diff] [blame^] | 33 | #endif // DEBUG_MODE_TOOL_H_ |