xref: /haiku/headers/private/storage/PartitionParameterEditor.h (revision 579f1dbca962a2a03df54f69fdc6e9423f91f20e)
1 /*
2  * Copyright 2013, Axel Dörfler, axeld@pinc-software.de.
3  * Copyright 2009, Bryce Groff, brycegroff@gmail.com.
4  * Distributed under the terms of the MIT License.
5  */
6 #ifndef _PARTITION_PARAMETER_EDITOR_H
7 #define _PARTITION_PARAMETER_EDITOR_H
8 
9 
10 #include <View.h>
11 
12 
13 class BMessage;
14 class BPartition;
15 class BVariant;
16 
17 
18 class BPartitionParameterEditor {
19 public:
20 								BPartitionParameterEditor();
21 	virtual						~BPartitionParameterEditor();
22 
23 	virtual		void			SetTo(BPartition* partition);
24 
25 				void			SetModificationMessage(BMessage* message);
26 				BMessage*		ModificationMessage() const;
27 
28 	virtual		BView*			View();
29 
30 	virtual		bool			ValidateParameters() const;
31 	virtual		status_t		ParameterChanged(const char* name,
32 									const BVariant& variant);
33 
34 	virtual		status_t		GetParameters(BString& parameters);
35 
36 private:
37 				BMessage*		fModificationMessage;
38 };
39 
40 
41 #endif // _PARTITION_PARAMETER_EDITOR_H
42