Minor cleanup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17333 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-05-05 10:44:07 +00:00
parent dde52de872
commit b02b72c448

View File

@ -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 <util/kernel_cpp.h> #include <util/kernel_cpp.h>
@ -10,17 +16,17 @@
using namespace std; using namespace std;
// constructor
KDiskDeviceJobFactory::KDiskDeviceJobFactory() KDiskDeviceJobFactory::KDiskDeviceJobFactory()
{ {
} }
// destructor
KDiskDeviceJobFactory::~KDiskDeviceJobFactory() KDiskDeviceJobFactory::~KDiskDeviceJobFactory()
{ {
} }
// CreateDefragmentJob
KDiskDeviceJob * KDiskDeviceJob *
KDiskDeviceJobFactory::CreateDefragmentJob(partition_id partitionID) KDiskDeviceJobFactory::CreateDefragmentJob(partition_id partitionID)
{ {
@ -28,125 +34,116 @@ KDiskDeviceJobFactory::CreateDefragmentJob(partition_id partitionID)
return NULL; return NULL;
} }
// CreateRepairJob
KDiskDeviceJob * KDiskDeviceJob *
KDiskDeviceJobFactory::CreateRepairJob(partition_id partitionID, KDiskDeviceJobFactory::CreateRepairJob(partition_id partitionID,
bool checkOnly) bool checkOnly)
{ {
// not implemented // not implemented
return NULL; return NULL;
} }
// CreateResizeJob
KDiskDeviceJob * KDiskDeviceJob *
KDiskDeviceJobFactory::CreateResizeJob(partition_id parentID, KDiskDeviceJobFactory::CreateResizeJob(partition_id parentID,
partition_id partitionID, off_t size) partition_id partitionID, off_t size)
{ {
return new(nothrow) KResizeJob(parentID, partitionID, size); return new(nothrow) KResizeJob(parentID, partitionID, size);
} }
// CreateMoveJob
KDiskDeviceJob * KDiskDeviceJob *
KDiskDeviceJobFactory::CreateMoveJob(partition_id parentID, KDiskDeviceJobFactory::CreateMoveJob(partition_id parentID, partition_id partitionID,
partition_id partitionID, off_t offset, off_t offset, const partition_id *contentsToMove, int32 contentsToMoveCount)
const partition_id *contentsToMove,
int32 contentsToMoveCount)
{ {
// not implemented // not implemented
return NULL; return NULL;
} }
// CreateSetNameJob
KDiskDeviceJob * KDiskDeviceJob *
KDiskDeviceJobFactory::CreateSetNameJob(partition_id parentID, KDiskDeviceJobFactory::CreateSetNameJob(partition_id parentID,
partition_id partitionID, partition_id partitionID, const char *name)
const char *name)
{ {
// not implemented // not implemented
return NULL; return NULL;
} }
// CreateSetContentNameJob
KDiskDeviceJob * KDiskDeviceJob *
KDiskDeviceJobFactory::CreateSetContentNameJob(partition_id partitionID, KDiskDeviceJobFactory::CreateSetContentNameJob(partition_id partitionID,
const char *name) const char *name)
{ {
// not implemented // not implemented
return NULL; return NULL;
} }
// CreateSetTypeJob
KDiskDeviceJob * KDiskDeviceJob *
KDiskDeviceJobFactory::CreateSetTypeJob(partition_id parentID, KDiskDeviceJobFactory::CreateSetTypeJob(partition_id parentID,
partition_id partitionID, partition_id partitionID, const char *type)
const char *type)
{ {
// not implemented // not implemented
return NULL; return NULL;
} }
// CreateSetParametersJob
KDiskDeviceJob * KDiskDeviceJob *
KDiskDeviceJobFactory::CreateSetParametersJob(partition_id parentID, KDiskDeviceJobFactory::CreateSetParametersJob(partition_id parentID,
partition_id partitionID, partition_id partitionID, const char *parameters)
const char *parameters)
{ {
// not implemented // not implemented
return NULL; return NULL;
} }
// CreateSetContentParametersJob
KDiskDeviceJob * KDiskDeviceJob *
KDiskDeviceJobFactory::CreateSetContentParametersJob(partition_id partitionID, KDiskDeviceJobFactory::CreateSetContentParametersJob(partition_id partitionID,
const char *parameters) const char *parameters)
{ {
// not implemented // not implemented
return NULL; return NULL;
} }
// CreateInitializeJob
KDiskDeviceJob * KDiskDeviceJob *
KDiskDeviceJobFactory::CreateInitializeJob(partition_id partitionID, KDiskDeviceJobFactory::CreateInitializeJob(partition_id partitionID,
disk_system_id diskSystemID, disk_system_id diskSystemID, const char *name, const char *parameters)
const char *name,
const char *parameters)
{ {
// not implemented // not implemented
return NULL; return NULL;
} }
// CreateUninitializeJob
KDiskDeviceJob * KDiskDeviceJob *
KDiskDeviceJobFactory::CreateUninitializeJob(partition_id partitionID) KDiskDeviceJobFactory::CreateUninitializeJob(partition_id partitionID)
{ {
return new(nothrow) KUninitializeJob(partitionID); return new(nothrow) KUninitializeJob(partitionID);
} }
// CreateCreateChildJob
KDiskDeviceJob * KDiskDeviceJob *
KDiskDeviceJobFactory::CreateCreateChildJob(partition_id partitionID, KDiskDeviceJobFactory::CreateCreateChildJob(partition_id partitionID,
partition_id childID, off_t offset, partition_id childID, off_t offset, off_t size, const char *type,
off_t size, const char *type, const char *parameters)
const char *parameters)
{ {
// not implemented // not implemented
return NULL; return NULL;
} }
// CreateDeleteChildJob
KDiskDeviceJob * KDiskDeviceJob *
KDiskDeviceJobFactory::CreateDeleteChildJob(partition_id parentID, KDiskDeviceJobFactory::CreateDeleteChildJob(partition_id parentID,
partition_id partitionID) partition_id partitionID)
{ {
// not implemented // not implemented
return NULL; return NULL;
} }
// CreateScanPartitionJob
KDiskDeviceJob * KDiskDeviceJob *
KDiskDeviceJobFactory::CreateScanPartitionJob(partition_id partitionID) KDiskDeviceJobFactory::CreateScanPartitionJob(partition_id partitionID)
{ {
// not implemented
return new(nothrow) KScanPartitionJob(partitionID); return new(nothrow) KScanPartitionJob(partitionID);
} }