move the backend plugins to a src subdir of their own

fix the gazillion arg-unused warnings in the dummy plugin with plenty of
Q_UNUSED usage until the dummy plugin gets a little meatier.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1097717
This commit is contained in:
Volker Lanz 2010-03-01 23:08:53 +00:00
parent a383d17f75
commit ddb1790dd4
19 changed files with 64 additions and 23 deletions

View File

@ -17,11 +17,6 @@
############################################
add_subdirectory(backend/libparted)
add_subdirectory(backend/dummy)
############################################
file(GLOB partitionmanagerprivate_SRCS
backend/*.cpp
core/*.cpp
@ -91,3 +86,7 @@ if(PARTMAN_KPART)
endif(PARTMAN_KPART)
############################################
add_subdirectory(plugins)

View File

@ -20,8 +20,8 @@
/** @file
*/
#include "backend/dummy/dummybackend.h"
#include "backend/dummy/dummydevice.h"
#include "plugins/dummy/dummybackend.h"
#include "plugins/dummy/dummydevice.h"
#include "core/device.h"
#include "core/partition.h"

View File

@ -17,8 +17,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
***************************************************************************/
#include "backend/dummy/dummydevice.h"
#include "backend/dummy/dummypartitiontable.h"
#include "plugins/dummy/dummydevice.h"
#include "plugins/dummy/dummypartitiontable.h"
#include "core/partitiontable.h"
@ -67,11 +67,18 @@ CoreBackendPartitionTable* DummyDevice::openPartitionTable()
bool DummyDevice::createPartitionTable(Report& report, const PartitionTable& ptable)
{
Q_UNUSED(report);
Q_UNUSED(ptable);
return true;
}
bool DummyDevice::readSectors(void* buffer, qint64 offset, qint64 numSectors)
{
Q_UNUSED(buffer);
Q_UNUSED(offset);
Q_UNUSED(numSectors);
if (!isExclusive())
return false;
@ -80,6 +87,10 @@ bool DummyDevice::readSectors(void* buffer, qint64 offset, qint64 numSectors)
bool DummyDevice::writeSectors(void* buffer, qint64 offset, qint64 numSectors)
{
Q_UNUSED(buffer);
Q_UNUSED(offset);
Q_UNUSED(numSectors);
if (!isExclusive())
return false;

View File

@ -17,8 +17,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
***************************************************************************/
#include "backend/dummy/dummypartition.h"
#include "backend/dummy/dummybackend.h"
#include "plugins/dummy/dummypartition.h"
#include "plugins/dummy/dummybackend.h"
#include "util/report.h"
@ -32,6 +32,10 @@ DummyPartition::DummyPartition() :
bool DummyPartition::setFlag(Report& report, PartitionTable::Flag partitionManagerFlag, bool state)
{
Q_UNUSED(report);
Q_UNUSED(partitionManagerFlag);
Q_UNUSED(state);
return true;
}

View File

@ -17,9 +17,9 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
***************************************************************************/
#include "backend/dummy/dummypartitiontable.h"
#include "backend/dummy/dummypartition.h"
#include "backend/dummy/dummybackend.h"
#include "plugins/dummy/dummypartitiontable.h"
#include "plugins/dummy/dummypartition.h"
#include "plugins/dummy/dummybackend.h"
#include "core/partition.h"
#include "core/device.h"
@ -50,6 +50,8 @@ bool DummyPartitionTable::open()
bool DummyPartitionTable::commit(quint32 timeout)
{
Q_UNUSED(timeout);
return true;
}
@ -60,36 +62,61 @@ CoreBackendPartition* DummyPartitionTable::getExtendedPartition()
CoreBackendPartition* DummyPartitionTable::getPartitionBySector(qint64 sector)
{
Q_UNUSED(sector);
return new DummyPartition();
}
bool DummyPartitionTable::createPartition(Report& report, const Partition& partition, quint32& new_number)
{
Q_UNUSED(report);
Q_UNUSED(partition);
Q_UNUSED(new_number);
return true;
}
bool DummyPartitionTable::deletePartition(Report& report, const Partition& partition)
{
Q_UNUSED(report);
Q_UNUSED(partition);
return true;
}
bool DummyPartitionTable::updateGeometry(Report& report, const Partition& partition, qint64 sector_start, qint64 sector_end)
{
Q_UNUSED(report);
Q_UNUSED(partition);
Q_UNUSED(sector_start);
Q_UNUSED(sector_end);
return true;
}
bool DummyPartitionTable::clobberFileSystem(Report& report, const Partition& partition)
{
Q_UNUSED(report);
Q_UNUSED(partition);
return true;
}
bool DummyPartitionTable::resizeFileSystem(Report& report, const Partition& partition, qint64 newLength)
{
Q_UNUSED(report);
Q_UNUSED(partition);
Q_UNUSED(newLength);
return true;
}
FileSystem::Type DummyPartitionTable::detectFileSystemBySector(Report& report, const Device& device, qint64 sector)
{
Q_UNUSED(report);
Q_UNUSED(device);
Q_UNUSED(sector);
FileSystem::Type rval = FileSystem::Unknown;
return rval;
}

View File

@ -20,8 +20,8 @@
/** @file
*/
#include "backend/libparted/libpartedbackend.h"
#include "backend/libparted/libparteddevice.h"
#include "plugins/libparted/libpartedbackend.h"
#include "plugins/libparted/libparteddevice.h"
#include "core/device.h"
#include "core/partition.h"

View File

@ -17,8 +17,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
***************************************************************************/
#include "backend/libparted/libparteddevice.h"
#include "backend/libparted/libpartedpartitiontable.h"
#include "plugins/libparted/libparteddevice.h"
#include "plugins/libparted/libpartedpartitiontable.h"
#include "core/partitiontable.h"

View File

@ -17,8 +17,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
***************************************************************************/
#include "backend/libparted/libpartedpartition.h"
#include "backend/libparted/libpartedbackend.h"
#include "plugins/libparted/libpartedpartition.h"
#include "plugins/libparted/libpartedbackend.h"
#include "util/report.h"

View File

@ -17,9 +17,9 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
***************************************************************************/
#include "backend/libparted/libpartedpartitiontable.h"
#include "backend/libparted/libpartedpartition.h"
#include "backend/libparted/libpartedbackend.h"
#include "plugins/libparted/libpartedpartitiontable.h"
#include "plugins/libparted/libpartedpartition.h"
#include "plugins/libparted/libpartedbackend.h"
#include "core/partition.h"
#include "core/device.h"