#include <DiskScannerAddOn.h>
#include <String.h>
*/
BDiskScannerPartitionAddOn::BDiskScannerPartitionAddOn()
{
}
*/
BDiskScannerPartitionAddOn::~BDiskScannerPartitionAddOn()
{
}
\brief Returns a short name for the add-on.
To be implemented by derived classes.
The returned string identifies the respective partition kernel module is
passed to partition_session().
\return A short name for the add-on.
*/
\brief Returns a user-readable long name for the add-on.
To be implemented by derived classes.
\return A long name for the add-on.
*/
CreateEditor(const BSession *session, const char *parameters) = 0;
\brief Creates and returns an editor for editing partitioning parameters
for a specified session.
To be implemented by derived classes.
\param session The session to be partitioned.
\param parameters Parameters retrieved from the partition module. Should
initially be presented to the user.
\return The newly created editor. \c NULL, if an error occurred.
*/
void BDiskScannerPartitionAddOn::_ReservedDiskScannerPartitionAddOn1() {}
void BDiskScannerPartitionAddOn::_ReservedDiskScannerPartitionAddOn2() {}
void BDiskScannerPartitionAddOn::_ReservedDiskScannerPartitionAddOn3() {}
void BDiskScannerPartitionAddOn::_ReservedDiskScannerPartitionAddOn4() {}
void BDiskScannerPartitionAddOn::_ReservedDiskScannerPartitionAddOn5() {}
*/
BDiskScannerFSAddOn::BDiskScannerFSAddOn()
{
}
*/
BDiskScannerFSAddOn::~BDiskScannerFSAddOn()
{
}
\brief Returns a short name for the add-on.
To be implemented by derived classes.
The returned name identifies the file system (the kernel add-on) and is
passed to initialize_volume().
\return A short name for the add-on.
*/
\brief Returns a user-readable long name for the add-on.
To be implemented by derived classes.
\return A long name for the add-on.
*/
const BPartition *partition, const char *parameters) = 0;
\brief Creates and returns an editor for editing initialization parameters
for a specified partition.
To be implemented by derived classes.
\param partition The partition to be initialized.
\param parameters Parameters retrieved from the kernel FS add-on. Should
initially be presented to the user.
\return The newly created editor. \c NULL, if the FS doesn't need any
further parameters.
*/
void BDiskScannerFSAddOn::_ReservedDiskScannerFSAddOn1() {}
void BDiskScannerFSAddOn::_ReservedDiskScannerFSAddOn2() {}
void BDiskScannerFSAddOn::_ReservedDiskScannerFSAddOn3() {}
void BDiskScannerFSAddOn::_ReservedDiskScannerFSAddOn4() {}
void BDiskScannerFSAddOn::_ReservedDiskScannerFSAddOn5() {}
*/
BDiskScannerParameterEditor::BDiskScannerParameterEditor()
{
}
*/
BDiskScannerParameterEditor::~BDiskScannerParameterEditor()
{
}
parameters.
To be overridden by derived classes.
The base class version returns \c NULL.
The returned BView is added to a window occasionally and removed, when
editing is done. The view belongs to the editor and needs to be deleted
by it. Subsequent calls to this method may return the same view, or each
time delete the old one and return a new one.
\return A view containing the controls needed for editing the parameters.
\c NULL can be returned, if no parameters are needed.
*/
BView *
BDiskScannerParameterEditor::View()
{
return NULL;
}
To be overridden by derived classes.
The base class version returns \c true.
The method is supposed to check whether the parameters the user set,
are valid, and, if so, return \c true. Otherwise an BAlert shall be
shown, explaining the problem to the user and \c false being returned
-- then the parameter dialog will not be closed.
\return \c true, if the current parameters are valid, \c false otherwise.
*/
bool
BDiskScannerParameterEditor::EditingDone()
{
return true;
}
To be overridden by derived classes.
The base class version returns an empty string.
\param parameters A BString to be set to the edited parameters.
\return \c B_OK, if everything went fine, another error code otherwise.
*/
status_t
BDiskScannerParameterEditor::GetParameters(BString *parameters)
{
status_t error = (parameters ? B_OK : B_BAD_VALUE);
if (error == B_OK)
parameters->SetTo("");
return error;
}
void BDiskScannerParameterEditor::_ReservedDiskScannerParameterEditor1() {}
void BDiskScannerParameterEditor::_ReservedDiskScannerParameterEditor2() {}
void BDiskScannerParameterEditor::_ReservedDiskScannerParameterEditor3() {}
void BDiskScannerParameterEditor::_ReservedDiskScannerParameterEditor4() {}
void BDiskScannerParameterEditor::_ReservedDiskScannerParameterEditor5() {}
\brief To be provided by partition add-ons to create an add-on object.
\return A newly created BDiskScannerPartitionAddOn for this add-on.
*/
\brief To be provided by FS add-ons to create an add-on object.
\return A newly created BDiskScannerFSAddOn for this add-on.
*/