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 20 virtual bool CanInitialize( 21 const BMutablePartition* partition); 22 virtual status_t GetInitializationParameterEditor( 23 const BMutablePartition* partition, 24 BDiskDeviceParameterEditor** editor); 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 43 44 #endif // _BFS_ADD_ON_H 45