1//----------------------------------------------------------------------
2//  This software is part of the OpenBeOS distribution and is covered
3//  by the OpenBeOS license.
4//---------------------------------------------------------------------
5
6#ifndef _PARTITIONING_DIALOG_H
7#define _PARTITIONING_DIALOG_H
8
9#include <OS.h>
10#include <Window.h>
11
12class BDiskScannerParameterEditor;
13
14namespace BPrivate {
15
16class PartitioningDialog : public BWindow {
17public:
18	PartitioningDialog(BRect dialogCenter);
19	virtual ~PartitioningDialog();
20
21	virtual void MessageReceived(BMessage *message);
22	virtual bool QuitRequested();
23
24	status_t Go(BDiskScannerParameterEditor *editor, bool *cancelled);
25
26private:
27	status_t _Init(BDiskScannerParameterEditor *editor);
28
29private:
30	BDiskScannerParameterEditor	*fEditor;
31	BView						*fEditorView;
32	sem_id						fBlocker;
33	bool						*fCancelled;
34	BPoint						fCenter;
35};
36
37}	// namespace BPrivate
38
39using BPrivate::PartitioningDialog;
40
41#endif	// _PARTITIONING_DIALOG_H
42