blob: 03297c44de936875a076063b52dea1cb563ee4c3 [file] [log] [blame]
Gediminas Ramanauskas2f0b8852013-03-14 13:52:32 -07001// 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
Alex Vakulenko262be3f2014-07-30 15:25:50 -07005#ifndef DEBUGD_SRC_STORAGE_TOOL_H_
6#define DEBUGD_SRC_STORAGE_TOOL_H_
Gediminas Ramanauskas2f0b8852013-03-14 13:52:32 -07007
8#include <string>
9
10#include <base/basictypes.h>
11#include <dbus-c++/dbus.h>
12
Alex Vakulenko262be3f2014-07-30 15:25:50 -070013#include "debugd/src/subprocess_tool.h"
Gediminas Ramanauskas2f0b8852013-03-14 13:52:32 -070014
15namespace debugd {
16
17class StorageTool : public SubprocessTool {
18 public:
19 StorageTool();
Ben Chana0011d82014-05-13 00:19:29 -070020 virtual ~StorageTool();
Gediminas Ramanauskas2f0b8852013-03-14 13:52:32 -070021
Ben Chana0011d82014-05-13 00:19:29 -070022 std::string Smartctl(const std::string& option, DBus::Error* error);
23 std::string Start(const DBus::FileDescriptor& outfd, DBus::Error* error);
24
Gediminas Ramanauskas2f0b8852013-03-14 13:52:32 -070025 private:
26 DISALLOW_COPY_AND_ASSIGN(StorageTool);
27};
28
Ben Chana0011d82014-05-13 00:19:29 -070029} // namespace debugd
Gediminas Ramanauskas2f0b8852013-03-14 13:52:32 -070030
Alex Vakulenko262be3f2014-07-30 15:25:50 -070031#endif // DEBUGD_SRC_STORAGE_TOOL_H_