Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [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 | |
| 5 | #ifndef LOG_TOOL_H |
| 6 | #define LOG_TOOL_H |
| 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | #include <base/basictypes.h> |
| 11 | #include <dbus-c++/dbus.h> |
| 12 | |
| 13 | namespace debugd { |
| 14 | |
| 15 | class LogTool { |
| 16 | public: |
| 17 | LogTool(); |
| 18 | ~LogTool(); |
| 19 | |
| 20 | std::string GetLog(const std::string& name, DBus::Error& error); // NOLINT |
| 21 | std::map<std::string, std::string> GetAllLogs(DBus::Error& error); // NOLINT |
| 22 | private: |
| 23 | DISALLOW_COPY_AND_ASSIGN(LogTool); |
| 24 | }; |
| 25 | |
| 26 | }; // namespace debugd |
| 27 | |
| 28 | #endif // LOG_TOOL_H |