blob: c41777107eef86e0c6b616302558fb069a2232f7 [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_