blob: 213308351ea0ea54f195bcb9ddb1c07e56043071 [file] [log] [blame]
// Copyright (c) 2012 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.
#include <string>
namespace mtpd {
// An interface to allow a delegate to handle MTP storage attach/detach events.
class DeviceEventDelegate {
virtual ~DeviceEventDelegate() {}
// Called when a new MTP storage is added.
virtual void StorageAttached(const std::string& storage_name) = 0;
// Called when a new MTP storage is removed.
virtual void StorageDetached(const std::string& storage_name) = 0;
} // namespace mtpd