xref: /haiku/src/kits/storage/disk_device/jobs/MoveJob.h (revision 1deede7388b04dbeec5af85cae7164735ea9e70d)
1 /*
2  * Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _MOVE_JOB_H
6 #define _MOVE_JOB_H
7 
8 #include "DiskDeviceJob.h"
9 
10 
11 namespace BPrivate {
12 
13 
14 class MoveJob : public DiskDeviceJob {
15 public:
16 
17 								MoveJob(PartitionReference* partition,
18 									PartitionReference* child);
19 	virtual						~MoveJob();
20 
21 			status_t			Init(off_t offset,
22 									PartitionReference** contents,
23 									int32 contentsCount);
24 
25 	virtual	status_t			Do();
26 
27 protected:
28 			off_t				fOffset;
29 			PartitionReference** fContents;
30 			int32				fContentsCount;
31 };
32 
33 
34 }	// namespace BPrivate
35 
36 using BPrivate::MoveJob;
37 
38 #endif	// _MOVE_JOB_H
39