vfs: check userland buffers before reading them.
[haiku.git] / src / preferences / notifications / PrefletView.h
blobc05605d0545cf28b1446de45f63fc1ecaed96827
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_VIEW_H
7 #define _PREFLET_VIEW_H
9 #include <Messenger.h>
10 #include <TabView.h>
12 #include "GeneralView.h"
14 class SettingsHost;
16 const int32 kShowButtons = '_SHB';
17 #define kShowButtonsKey "showButtons"
19 class PrefletView : public BTabView {
20 public:
21 PrefletView(SettingsHost* host);
23 BView* CurrentPage();
24 BView* PageAt(int32 index);
25 virtual void Select(int32 index);
27 private:
28 GeneralView* fGeneralView;
29 BMessenger fMessenger;
32 #endif // PREFLETVIEW_H