summaryrefslogtreecommitdiff
path: root/chromium/third_party/mtpd/source/device_event_delegate.h
blob: 213308351ea0ea54f195bcb9ddb1c07e56043071 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// 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.

#ifndef MTPD_DEVICE_EVENT_DELEGATE_H_
#define MTPD_DEVICE_EVENT_DELEGATE_H_

#include <string>

namespace mtpd {

// An interface to allow a delegate to handle MTP storage attach/detach events.
class DeviceEventDelegate {
 public:
  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

#endif  // MTPD_DEVICE_EVENT_DELEGATE_H_