diff --git a/src/system/kernel/disk_device_manager/KDiskDeviceJobFactory.cpp b/src/system/kernel/disk_device_manager/KDiskDeviceJobFactory.cpp index 40bb76cf15..0876eb64c3 100644 --- a/src/system/kernel/disk_device_manager/KDiskDeviceJobFactory.cpp +++ b/src/system/kernel/disk_device_manager/KDiskDeviceJobFactory.cpp @@ -1,4 +1,10 @@ -// KDiskDeviceJobFactory.cpp +/* + * Copyright 2004-2006, Haiku, Inc. All rights reserved. + * Copyright 2003-2004, Ingo Weinhold, bonefish@cs.tu-berlin.de. All rights reserved. + * + * Distributed under the terms of the MIT License. + */ + #include @@ -10,17 +16,17 @@ using namespace std; -// constructor + KDiskDeviceJobFactory::KDiskDeviceJobFactory() { } -// destructor + KDiskDeviceJobFactory::~KDiskDeviceJobFactory() { } -// CreateDefragmentJob + KDiskDeviceJob * KDiskDeviceJobFactory::CreateDefragmentJob(partition_id partitionID) { @@ -28,125 +34,116 @@ KDiskDeviceJobFactory::CreateDefragmentJob(partition_id partitionID) return NULL; } -// CreateRepairJob + KDiskDeviceJob * KDiskDeviceJobFactory::CreateRepairJob(partition_id partitionID, - bool checkOnly) + bool checkOnly) { // not implemented return NULL; } -// CreateResizeJob + KDiskDeviceJob * KDiskDeviceJobFactory::CreateResizeJob(partition_id parentID, - partition_id partitionID, off_t size) + partition_id partitionID, off_t size) { return new(nothrow) KResizeJob(parentID, partitionID, size); } -// CreateMoveJob + KDiskDeviceJob * -KDiskDeviceJobFactory::CreateMoveJob(partition_id parentID, - partition_id partitionID, off_t offset, - const partition_id *contentsToMove, - int32 contentsToMoveCount) +KDiskDeviceJobFactory::CreateMoveJob(partition_id parentID, partition_id partitionID, + off_t offset, const partition_id *contentsToMove, int32 contentsToMoveCount) { // not implemented return NULL; } -// CreateSetNameJob + KDiskDeviceJob * KDiskDeviceJobFactory::CreateSetNameJob(partition_id parentID, - partition_id partitionID, - const char *name) + partition_id partitionID, const char *name) { // not implemented return NULL; } -// CreateSetContentNameJob + KDiskDeviceJob * KDiskDeviceJobFactory::CreateSetContentNameJob(partition_id partitionID, - const char *name) + const char *name) { // not implemented return NULL; } -// CreateSetTypeJob + KDiskDeviceJob * KDiskDeviceJobFactory::CreateSetTypeJob(partition_id parentID, - partition_id partitionID, - const char *type) + partition_id partitionID, const char *type) { // not implemented return NULL; } -// CreateSetParametersJob + KDiskDeviceJob * KDiskDeviceJobFactory::CreateSetParametersJob(partition_id parentID, - partition_id partitionID, - const char *parameters) + partition_id partitionID, const char *parameters) { // not implemented return NULL; } -// CreateSetContentParametersJob + KDiskDeviceJob * KDiskDeviceJobFactory::CreateSetContentParametersJob(partition_id partitionID, - const char *parameters) + const char *parameters) { // not implemented return NULL; } -// CreateInitializeJob + KDiskDeviceJob * KDiskDeviceJobFactory::CreateInitializeJob(partition_id partitionID, - disk_system_id diskSystemID, - const char *name, - const char *parameters) + disk_system_id diskSystemID, const char *name, const char *parameters) { // not implemented return NULL; } -// CreateUninitializeJob + KDiskDeviceJob * KDiskDeviceJobFactory::CreateUninitializeJob(partition_id partitionID) { return new(nothrow) KUninitializeJob(partitionID); } -// CreateCreateChildJob + KDiskDeviceJob * KDiskDeviceJobFactory::CreateCreateChildJob(partition_id partitionID, - partition_id childID, off_t offset, - off_t size, const char *type, - const char *parameters) + partition_id childID, off_t offset, off_t size, const char *type, + const char *parameters) { // not implemented return NULL; } -// CreateDeleteChildJob + KDiskDeviceJob * KDiskDeviceJobFactory::CreateDeleteChildJob(partition_id parentID, - partition_id partitionID) + partition_id partitionID) { // not implemented return NULL; } -// CreateScanPartitionJob + KDiskDeviceJob * KDiskDeviceJobFactory::CreateScanPartitionJob(partition_id partitionID) { - // not implemented return new(nothrow) KScanPartitionJob(partitionID); }