vfs: check userland buffers before reading them.
[haiku.git] / src / preferences / notifications / PrefletWin.h
blob95175cab342c226543494abc842a939a374f0f34
1 /*
2 * Copyright 2010-2017, Haiku, Inc. All Rights Reserved.
3 * Copyright 2009, Pier Luigi Fiorini.
4 * Distributed under the terms of the MIT License.
5 */
6 #ifndef _PREFLET_WIN_H
7 #define _PREFLET_WIN_H
10 #include <GroupView.h>
11 #include <LayoutBuilder.h>
12 #include <Message.h>
13 #include <Window.h>
15 #include "SettingsHost.h"
17 class BButton;
19 class PrefletView;
21 class PrefletWin : public BWindow, public SettingsHost {
22 public:
23 PrefletWin();
25 virtual bool QuitRequested();
26 virtual void MessageReceived(BMessage* msg);
28 virtual void SettingChanged(bool showExample);
29 void ReloadSettings();
31 private:
32 status_t _Revert();
33 bool _RevertPossible();
34 status_t _Defaults();
35 bool _DefaultsPossible();
36 void _SendExampleNotification();
38 PrefletView* fMainView;
39 BGroupView* fButtonsView;
40 BButton* fDefaults;
41 BButton* fRevert;
42 BGroupLayout* fButtonsLayout;
45 #endif // _PREFLET_WIN_H