Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17333 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
dde52de872
commit
b02b72c448
@ -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>
|
||||
|
||||
@ -10,17 +16,17 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
// constructor
|
||||
|
||||
KDiskDeviceJobFactory::KDiskDeviceJobFactory()
|
||||
{
|
||||
}
|
||||
|
||||
// destructor
|
||||
|
||||
KDiskDeviceJobFactory::~KDiskDeviceJobFactory()
|
||||
{
|
||||
}
|
||||
|
||||
// CreateDefragmentJob
|
||||
|
||||
KDiskDeviceJob *
|
||||
KDiskDeviceJobFactory::CreateDefragmentJob(partition_id partitionID)
|
||||
{
|
||||
@ -28,7 +34,7 @@ KDiskDeviceJobFactory::CreateDefragmentJob(partition_id partitionID)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// CreateRepairJob
|
||||
|
||||
KDiskDeviceJob *
|
||||
KDiskDeviceJobFactory::CreateRepairJob(partition_id partitionID,
|
||||
bool checkOnly)
|
||||
@ -37,7 +43,7 @@ KDiskDeviceJobFactory::CreateRepairJob(partition_id partitionID,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// CreateResizeJob
|
||||
|
||||
KDiskDeviceJob *
|
||||
KDiskDeviceJobFactory::CreateResizeJob(partition_id parentID,
|
||||
partition_id partitionID, off_t size)
|
||||
@ -45,28 +51,25 @@ KDiskDeviceJobFactory::CreateResizeJob(partition_id parentID,
|
||||
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)
|
||||
@ -75,27 +78,25 @@ KDiskDeviceJobFactory::CreateSetContentNameJob(partition_id partitionID,
|
||||
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)
|
||||
@ -104,36 +105,33 @@ KDiskDeviceJobFactory::CreateSetContentParametersJob(partition_id partitionID,
|
||||
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,
|
||||
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)
|
||||
@ -142,11 +140,10 @@ KDiskDeviceJobFactory::CreateDeleteChildJob(partition_id parentID,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// CreateScanPartitionJob
|
||||
|
||||
KDiskDeviceJob *
|
||||
KDiskDeviceJobFactory::CreateScanPartitionJob(partition_id partitionID)
|
||||
{
|
||||
// not implemented
|
||||
return new(nothrow) KScanPartitionJob(partitionID);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user