vfs: check userland buffers before reading them.
[haiku.git] / src / apps / bootmanager / DefaultPartitionPage.h
blobbaa0c6c54cf763b6afac35cb163a27801effd884
1 /*
2 * Copyright 2008-2010, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Michael Pfeiffer <laplace@users.sourceforge.net>
7 */
8 #ifndef DEFAULT_PARTITON_PAGE_H
9 #define DEFAULT_PARTITON_PAGE_H
12 #include "WizardPageView.h"
15 class BMenuField;
16 class BMessage;
17 class BPopUpMenu;
18 class BRadioButton;
19 class BSlider;
20 class BTextView;
23 class DefaultPartitionPage : public WizardPageView {
24 public:
25 DefaultPartitionPage(BMessage* settings,
26 BRect frame, const char* name);
27 virtual ~DefaultPartitionPage();
29 virtual void FrameResized(float width, float height);
31 virtual void AttachedToWindow();
32 virtual void MessageReceived(BMessage* msg);
34 private:
35 void _BuildUI();
36 BPopUpMenu* _CreatePopUpMenu();
37 void _GetTimeoutLabel(int32 timeout, BString& label);
38 void _Layout();
40 private:
41 BTextView* fDescription;
42 BMenuField* fDefaultPartition;
43 BSlider* fTimeoutSlider;
47 #endif // DEFAULT_PARTITON_PAGE_H