1/* 2 * Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5#ifndef _CREATE_CHILD_JOB_H 6#define _CREATE_CHILD_JOB_H 7 8#include "DiskDeviceJob.h" 9 10 11namespace BPrivate { 12 13 14class CreateChildJob : public DiskDeviceJob { 15public: 16 17 CreateChildJob(PartitionReference* partition, 18 PartitionReference* child); 19 virtual ~CreateChildJob(); 20 21 status_t Init(off_t offset, off_t size, 22 const char* type, const char* name, 23 const char* parameters); 24 25 virtual status_t Do(); 26 27protected: 28 off_t fOffset; 29 off_t fSize; 30 char* fType; 31 char* fName; 32 char* fParameters; 33}; 34 35 36} // namespace BPrivate 37 38using BPrivate::CreateChildJob; 39 40#endif // _CREATE_CHILD_JOB_H 41