blob: 531457e832f9fcd5350f3121d515a302faf09383 [file] [log] [blame]
// Copyright (c) 2011 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_DEVICE_EVENT_SOURCE_INTERFACE_H_
#define CROS_DISKS_DEVICE_EVENT_SOURCE_INTERFACE_H_
#include "cros-disks/device_event.h"
namespace cros_disks {
// An interface class for producing device events.
class DeviceEventSourceInterface {
public:
virtual ~DeviceEventSourceInterface() {}
// Implemented by a derived class to return the available device events
// in |events|. Returns false on error.
virtual bool GetDeviceEvents(DeviceEventList* events) = 0;
};
} // namespace cros_disks
#endif // CROS_DISKS_DEVICE_EVENT_SOURCE_INTERFACE_H_