OpenShot Library | OpenShotAudio  0.2.2
juce_MountedVolumeListChangeDetector.h
1 
2 /** @weakgroup juce_events-messages
3  * @{
4  */
5 /*
6  ==============================================================================
7 
8  This file is part of the JUCE library.
9  Copyright (c) 2017 - ROLI Ltd.
10 
11  JUCE is an open source library subject to commercial or open-source
12  licensing.
13 
14  The code included in this file is provided under the terms of the ISC license
15  http://www.isc.org/downloads/software-support-policy/isc-license. Permission
16  To use, copy, modify, and/or distribute this software for any purpose with or
17  without fee is hereby granted provided that the above copyright notice and
18  this permission notice appear in all copies.
19 
20  JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
21  EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
22  DISCLAIMED.
23 
24  ==============================================================================
25 */
26 
27 namespace juce
28 {
29 
30 #if JUCE_MAC || JUCE_WINDOWS || defined (DOXYGEN)
31 
32 //==============================================================================
33 /**
34  An instance of this class will provide callbacks when drives are
35  mounted or unmounted on the system.
36 
37  Just inherit from this class and implement the pure virtual method
38  to get the callbacks, there's no need to do anything else.
39 
40  @see File::findFileSystemRoots()
41 
42  @tags{Events}
43 */
45 {
46 public:
49 
50  /** This method is called when a volume is mounted or unmounted. */
51  virtual void mountedVolumeListChanged() = 0;
52 
53 private:
54  JUCE_PUBLIC_IN_DLL_BUILD (struct Pimpl)
55  std::unique_ptr<Pimpl> pimpl;
56 
57  JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MountedVolumeListChangeDetector)
58 };
59 
60 #endif
61 
62 } // namespace juce
63 
64 /** @}*/
#define JUCE_API
This macro is added to all JUCE public class declarations.
An instance of this class will provide callbacks when drives are mounted or unmounted on the system...