1 /* 2 * Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _DISK_DEVICE_JOB_H 6 #define _DISK_DEVICE_JOB_H 7 8 #include <SupportDefs.h> 9 10 11 namespace BPrivate { 12 13 14 class PartitionReference; 15 16 17 class DiskDeviceJob { 18 public: 19 DiskDeviceJob(PartitionReference* partition, 20 PartitionReference* child = NULL); 21 virtual ~DiskDeviceJob(); 22 23 virtual status_t Do() = 0; 24 25 protected: 26 PartitionReference* fPartition; 27 PartitionReference* fChild; 28 }; 29 30 31 } // namespace BPrivate 32 33 using BPrivate::DiskDeviceJob; 34 35 #endif // _DISK_DEVICE_JOB_H 36