btrfs: [] on the end of a struct field is a variable length array.
[haiku.git] / headers / private / storage / PartitionParameterEditor.h
blob757d6d14f47f02a337fed7826473c1d6a970f2cc
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
10 #include <View.h>
13 class BMessage;
14 class BPartition;
15 class BVariant;
18 class BPartitionParameterEditor {
19 public:
20 BPartitionParameterEditor();
21 virtual ~BPartitionParameterEditor();
23 virtual void SetTo(BPartition* partition);
25 void SetModificationMessage(BMessage* message);
26 BMessage* ModificationMessage() const;
28 virtual BView* View();
30 virtual bool ValidateParameters() const;
31 virtual status_t ParameterChanged(const char* name,
32 const BVariant& variant);
34 virtual status_t GetParameters(BString& parameters);
36 private:
37 BMessage* fModificationMessage;
41 #endif // _PARTITION_PARAMETER_EDITOR_H