1 /* 2 * Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _BFS_ADD_ON_H 6 #define _BFS_ADD_ON_H 7 8 #include <DiskSystemAddOn.h> 9 10 11 class BFSAddOn : public BDiskSystemAddOn { 12 public: 13 BFSAddOn(); 14 virtual ~BFSAddOn(); 15 16 virtual status_t CreatePartitionHandle( 17 BMutablePartition* partition, 18 BPartitionHandle** handle); 19 virtual status_t GetParameterEditor( 20 B_PARAMETER_EDITOR_TYPE type, 21 BPartitionParameterEditor** editor); 22 23 virtual bool CanInitialize( 24 const BMutablePartition* partition); 25 virtual status_t ValidateInitialize( 26 const BMutablePartition* partition, 27 BString* name, const char* parameters); 28 virtual status_t Initialize(BMutablePartition* partition, 29 const char* name, const char* parameters, 30 BPartitionHandle** handle); 31 }; 32 33 34 class BFSPartitionHandle : public BPartitionHandle { 35 public: 36 BFSPartitionHandle( 37 BMutablePartition* partition); 38 ~BFSPartitionHandle(); 39 40 status_t Init(); 41 42 virtual uint32 SupportedOperations(uint32 mask); 43 44 virtual status_t Repair(bool checkOnly); 45 }; 46 47 48 #endif // _BFS_ADD_ON_H 49