blob: a32a252cca967f7844fc21196476d71b7a1f5788 [file] [log] [blame]
// Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CROS_DISKS_MOUNT_ENTRY_H_
#define CROS_DISKS_MOUNT_ENTRY_H_
#include <stdint.h>
#include <string>
#include <vector>
#include <chromeos/dbus/service_constants.h>
#include <dbus-c++/dbus.h>
namespace cros_disks {
typedef ::DBus::Struct<uint32_t, std::string, uint32_t, std::string>
DBusMountEntry;
typedef std::vector<DBusMountEntry> DBusMountEntries;
class MountEntry {
public:
MountEntry(MountErrorType error_type,
const std::string& source_path,
MountSourceType source_type,
const std::string& mount_path);
~MountEntry();
DBusMountEntry ToDBusFormat() const;
MountErrorType error_type() const { return error_type_; }
const std::string& source_path() const { return source_path_; }
MountSourceType source_type() const { return source_type_; }
const std::string& mount_path() const { return mount_path_; }
private:
MountErrorType error_type_;
std::string source_path_;
MountSourceType source_type_;
std::string mount_path_;
};
} // namespace cros_disks
#endif // CROS_DISKS_MOUNT_ENTRY_H_