vfs: check userland buffers before reading them.
[haiku.git] / src / preferences / media / MidiSettingsView.h
blobb6b581ad8bb6547f4405c57d66b9ed778f355713
1 /*
2 * Copyright 2014-2017, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
6 #ifndef MIDIVIEW_H_
7 #define MIDIVIEW_H_
10 #include <String.h>
12 #include "MediaViews.h"
14 class BButton;
15 class BListView;
16 class BStringView;
18 class MidiSettingsView : public SettingsView {
19 public:
20 MidiSettingsView();
22 virtual void AttachedToWindow();
23 virtual void DetachedFromWindow();
24 virtual void MessageReceived(BMessage* message);
26 private:
27 void _RetrieveSoundFontList();
28 void _LoadSettings();
29 void _SaveSettings();
30 void _WatchFolders();
31 void _SelectActiveSoundFont();
32 BString _SelectedSoundFont() const;
33 void _UpdateSoundFontStatus();
35 BListView* fListView;
36 BString fActiveSoundFont;
37 BStringView* fSoundFontStatus;
40 #endif /* MIDIVIEW_H_ */