xref: /haiku/headers/private/storage/PartitionParameterEditor.h (revision 893988af824e65e49e55f517b157db8386e8002b)
1 /*
2  * Copyright 2009, Bryce Groff, brycegroff@gmail.com.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _PARTITION_PARAMETER_EDITOR_H
6 #define _PARTITION_PARAMETER_EDITOR_H
7 
8 
9 #include <View.h>
10 
11 
12 // BPartitionParameterEditor
13 class BPartitionParameterEditor {
14 public:
15 								BPartitionParameterEditor();
16 	virtual						~BPartitionParameterEditor();
17 
18 	virtual		bool			FinishedEditing();
19 
20 	virtual		BView*			View();
21 
22 	virtual		status_t		GetParameters(BString* parameters);
23 
24 	// TODO: Those are child creation specific and shouldn't be in a generic
25 	// interface. Something like a
26 	// GenericPartitionParameterChanged(partition_parameter_type,
27 	//		const BVariant&)
28 	// would be better.
29 	virtual		status_t		PartitionTypeChanged(const char* type);
30 	virtual		status_t		PartitionNameChanged(const char* name);
31 };
32 
33 
34 #endif //_PARTITION_PARAMETER_EDITOR_H
35