2003-08-01 02:45:26 +04:00
|
|
|
// KDiskDeviceJobFactory.h
|
2003-06-10 03:04:54 +04:00
|
|
|
|
|
|
|
#ifndef _K_DISK_DEVICE_JOB_FACTORY_H
|
|
|
|
#define _K_DISK_DEVICE_JOB_FACTORY_H
|
|
|
|
|
|
|
|
#include "disk_device_manager.h"
|
|
|
|
|
|
|
|
namespace BPrivate {
|
|
|
|
namespace DiskDevice {
|
|
|
|
|
|
|
|
class KDiskDeviceJob;
|
|
|
|
|
|
|
|
class KDiskDeviceJobFactory {
|
|
|
|
public:
|
|
|
|
KDiskDeviceJobFactory();
|
|
|
|
~KDiskDeviceJobFactory();
|
|
|
|
|
2003-07-30 04:14:27 +04:00
|
|
|
KDiskDeviceJob *CreateDefragmentJob(partition_id partitionID);
|
|
|
|
KDiskDeviceJob *CreateRepairJob(partition_id partitionID, bool checkOnly);
|
|
|
|
KDiskDeviceJob *CreateResizeJob(partition_id parentID,
|
2003-09-30 01:43:11 +04:00
|
|
|
partition_id partitionID, off_t size);
|
2003-07-30 04:14:27 +04:00
|
|
|
KDiskDeviceJob *CreateMoveJob(partition_id parentID,
|
|
|
|
partition_id partitionID, off_t offset,
|
2003-08-01 02:45:26 +04:00
|
|
|
const partition_id *contentsToMove,
|
|
|
|
int32 contentsToMoveCount);
|
2003-07-30 04:14:27 +04:00
|
|
|
KDiskDeviceJob *CreateSetNameJob(partition_id parentID,
|
|
|
|
partition_id partitionID,
|
|
|
|
const char *name);
|
|
|
|
KDiskDeviceJob *CreateSetContentNameJob(partition_id partitionID,
|
|
|
|
const char *name);
|
|
|
|
KDiskDeviceJob *CreateSetTypeJob(partition_id parentID,
|
|
|
|
partition_id partitionID,
|
|
|
|
const char *type);
|
|
|
|
KDiskDeviceJob *CreateSetParametersJob(partition_id parentID,
|
|
|
|
partition_id partitionID,
|
|
|
|
const char *parameters);
|
|
|
|
KDiskDeviceJob *CreateSetContentParametersJob(partition_id partitionID,
|
|
|
|
const char *parameters);
|
|
|
|
KDiskDeviceJob *CreateInitializeJob(partition_id partitionID,
|
2003-06-10 03:04:54 +04:00
|
|
|
disk_system_id diskSystemID,
|
2003-07-30 04:14:27 +04:00
|
|
|
const char *name,
|
2003-06-10 03:04:54 +04:00
|
|
|
const char *parameters);
|
2003-08-01 02:45:26 +04:00
|
|
|
KDiskDeviceJob *CreateUninitializeJob(partition_id partitionID);
|
2003-07-30 04:14:27 +04:00
|
|
|
KDiskDeviceJob *CreateCreateChildJob(partition_id partitionID,
|
2003-08-02 03:58:46 +04:00
|
|
|
partition_id childID, off_t offset,
|
2003-07-30 04:14:27 +04:00
|
|
|
off_t size, const char *type,
|
|
|
|
const char *parameters);
|
|
|
|
KDiskDeviceJob *CreateDeleteChildJob(partition_id parentID,
|
|
|
|
partition_id partitionID);
|
|
|
|
|
|
|
|
KDiskDeviceJob *CreateScanPartitionJob(partition_id partitionID);
|
2003-06-10 03:04:54 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace DiskDevice
|
|
|
|
} // namespace BPrivate
|
|
|
|
|
2003-07-30 04:14:27 +04:00
|
|
|
using BPrivate::DiskDevice::KDiskDeviceJobFactory;
|
2003-06-10 03:04:54 +04:00
|
|
|
|
|
|
|
#endif // _K_DISK_DEVICE_JOB_FACTORY_H
|