haiku/headers/private/storage/PartitionParameterEditor.h
Axel Dörfler 443522551e Fixed design issues in BPartitionParameterEditor.
* The user of an editor needed knowledge about the editor in order to make
  use of it.
* Furthermore, the BPartitionParameterEditor exposed type specific
  functionality that it shouldn't know anything about, either.
* We may now define a number of known parameters per editor type; right now
  there is only "type" as it's needed by DriveSetup.
* Adapted all disk systems, and DriveSetup to the new API.
* Renamed CreateParamsPanel, and InitializeParamsPanel to *ParametersPanel
  in DriveSetup.
* They now share a common base class AbstractParametersPanel.
2013-02-02 01:13:19 +01:00

42 lines
903 B
C++

/*
* Copyright 2013, Axel Dörfler, axeld@pinc-software.de.
* Copyright 2009, Bryce Groff, brycegroff@gmail.com.
* Distributed under the terms of the MIT License.
*/
#ifndef _PARTITION_PARAMETER_EDITOR_H
#define _PARTITION_PARAMETER_EDITOR_H
#include <View.h>
class BMessage;
class BPartition;
class BVariant;
class BPartitionParameterEditor {
public:
BPartitionParameterEditor();
virtual ~BPartitionParameterEditor();
virtual void SetTo(BPartition* partition);
void SetModificationMessage(BMessage* message);
BMessage* ModificationMessage() const;
virtual BView* View();
virtual bool ValidateParameters() const;
virtual status_t ParameterChanged(const char* name,
const BVariant& variant);
virtual status_t GetParameters(BString& parameters);
private:
BMessage* fModificationMessage;
};
#endif // _PARTITION_PARAMETER_EDITOR_H