vfs: check userland buffers before reading them.
[haiku.git] / src / kits / storage / disk_device / PartitioningDialog.h
blobc681fd3fa176e777679b4cc02215f826ec5618cb
1 //----------------------------------------------------------------------
2 // This software is part of the OpenBeOS distribution and is covered
3 // by the MIT License.
4 //---------------------------------------------------------------------
6 #ifndef _PARTITIONING_DIALOG_H
7 #define _PARTITIONING_DIALOG_H
9 #include <OS.h>
10 #include <Window.h>
12 class BDiskScannerParameterEditor;
14 namespace BPrivate {
16 class PartitioningDialog : public BWindow {
17 public:
18 PartitioningDialog(BRect dialogCenter);
19 virtual ~PartitioningDialog();
21 virtual void MessageReceived(BMessage *message);
22 virtual bool QuitRequested();
24 status_t Go(BDiskScannerParameterEditor *editor, bool *cancelled);
26 private:
27 status_t _Init(BDiskScannerParameterEditor *editor);
29 private:
30 BDiskScannerParameterEditor *fEditor;
31 BView *fEditorView;
32 sem_id fBlocker;
33 bool *fCancelled;
34 BPoint fCenter;
37 } // namespace BPrivate
39 using BPrivate::PartitioningDialog;
41 #endif // _PARTITIONING_DIALOG_H