Remove reduntant virtual keywords.

This commit is contained in:
Andrius Štikonas 2016-05-17 18:01:31 +01:00
parent 094042cc75
commit 142ff07938
66 changed files with 573 additions and 573 deletions

View File

@ -43,16 +43,16 @@ public:
~CopySourceDevice();
public:
virtual bool open() override;
virtual qint32 sectorSize() const override;
virtual bool readSectors(void* buffer, qint64 readOffset, qint64 numSectors) override;
virtual qint64 length() const override;
virtual bool overlaps(const CopyTarget& target) const override;
bool open() override;
qint32 sectorSize() const override;
bool readSectors(void* buffer, qint64 readOffset, qint64 numSectors) override;
qint64 length() const override;
bool overlaps(const CopyTarget& target) const override;
virtual qint64 firstSector() const override {
qint64 firstSector() const override {
return m_FirstSector; /**< @return first sector to copying */
}
virtual qint64 lastSector() const override {
qint64 lastSector() const override {
return m_LastSector; /**< @return last sector to copy */
}

View File

@ -39,20 +39,20 @@ public:
CopySourceFile(const QString& filename, qint32 sectorsize);
public:
virtual bool open() override;
virtual bool readSectors(void* buffer, qint64 readOffset, qint64 numSectors) override;
virtual qint64 length() const override;
bool open() override;
bool readSectors(void* buffer, qint64 readOffset, qint64 numSectors) override;
qint64 length() const override;
virtual qint32 sectorSize() const override {
qint32 sectorSize() const override {
return m_SectorSize; /**< @return the file's sector size */
}
virtual bool overlaps(const CopyTarget&) const override {
bool overlaps(const CopyTarget&) const override {
return false; /**< @return false for file */
}
virtual qint64 firstSector() const override {
qint64 firstSector() const override {
return 0; /**< @return 0 for file */
}
virtual qint64 lastSector() const override {
qint64 lastSector() const override {
return length(); /**< @return equal to length for file. @see length() */
}

View File

@ -37,20 +37,20 @@ public:
CopySourceShred(qint64 size, qint32 sectorsize, bool randomShred);
public:
virtual bool open() override;
virtual bool readSectors(void* buffer, qint64 readOffset, qint64 numSectors) override;
virtual qint64 length() const override;
bool open() override;
bool readSectors(void* buffer, qint64 readOffset, qint64 numSectors) override;
qint64 length() const override;
virtual qint32 sectorSize() const override {
qint32 sectorSize() const override {
return m_SectorSize; /**< @return the file's sector size */
}
virtual bool overlaps(const CopyTarget&) const override {
bool overlaps(const CopyTarget&) const override {
return false; /**< @return false for shred source */
}
virtual qint64 firstSector() const override {
qint64 firstSector() const override {
return 0; /**< @return 0 for shred source */
}
virtual qint64 lastSector() const override {
qint64 lastSector() const override {
return length(); /**< @return equal to length for shred source. @see length() */
}

View File

@ -45,13 +45,13 @@ public:
~CopyTargetDevice();
public:
virtual bool open() override;
virtual qint32 sectorSize() const override;
virtual bool writeSectors(void* buffer, qint64 writeOffset, qint64 numSectors) override;
virtual qint64 firstSector() const override {
bool open() override;
qint32 sectorSize() const override;
bool writeSectors(void* buffer, qint64 writeOffset, qint64 numSectors) override;
qint64 firstSector() const override {
return m_FirstSector; /**< @return the first sector to write to */
}
virtual qint64 lastSector() const override {
qint64 lastSector() const override {
return m_LastSector; /**< @return the last sector to write to */
}

View File

@ -39,16 +39,16 @@ public:
CopyTargetFile(const QString& filename, qint32 sectorsize);
public:
virtual bool open() override;
virtual bool writeSectors(void* buffer, qint64 writeOffset, qint64 numSectors) override;
bool open() override;
bool writeSectors(void* buffer, qint64 writeOffset, qint64 numSectors) override;
virtual qint32 sectorSize() const override {
qint32 sectorSize() const override {
return m_SectorSize; /**< @return the file's sector size */
}
virtual qint64 firstSector() const override {
qint64 firstSector() const override {
return 0; /**< @return always 0 for a file */
}
virtual qint64 lastSector() const override {
qint64 lastSector() const override {
return sectorsWritten(); /**< @return the number of sectors written so far */
}

View File

@ -46,7 +46,7 @@ Q_SIGNALS:
void progress(const QString& device_node, int progress);
protected:
virtual void run() override;
void run() override;
OperationStack& operationStack() {
return m_OperationStack;
}

View File

@ -41,57 +41,57 @@ public:
btrfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
public:
virtual void init() override;
void init() override;
virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
virtual bool check(Report& report, const QString& deviceNode) const override;
virtual bool create(Report& report, const QString& deviceNode) const override;
virtual bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
virtual bool updateUUID(Report& report, const QString& deviceNode) const override;
qint64 readUsedCapacity(const QString& deviceNode) const override;
bool check(Report& report, const QString& deviceNode) const override;
bool create(Report& report, const QString& deviceNode) const override;
bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
bool updateUUID(Report& report, const QString& deviceNode) const override;
virtual CommandSupportType supportGetUsed() const override {
CommandSupportType supportGetUsed() const override {
return m_GetUsed;
}
virtual CommandSupportType supportGetLabel() const override {
CommandSupportType supportGetLabel() const override {
return m_GetLabel;
}
virtual CommandSupportType supportCreate() const override {
CommandSupportType supportCreate() const override {
return m_Create;
}
virtual CommandSupportType supportGrow() const override {
CommandSupportType supportGrow() const override {
return m_Grow;
}
virtual CommandSupportType supportShrink() const override {
CommandSupportType supportShrink() const override {
return m_Shrink;
}
virtual CommandSupportType supportMove() const override {
CommandSupportType supportMove() const override {
return m_Move;
}
virtual CommandSupportType supportCheck() const override {
CommandSupportType supportCheck() const override {
return m_Check;
}
virtual CommandSupportType supportCopy() const override {
CommandSupportType supportCopy() const override {
return m_Copy;
}
virtual CommandSupportType supportBackup() const override {
CommandSupportType supportBackup() const override {
return m_Backup;
}
virtual CommandSupportType supportSetLabel() const override {
CommandSupportType supportSetLabel() const override {
return m_SetLabel;
}
virtual CommandSupportType supportUpdateUUID() const override {
CommandSupportType supportUpdateUUID() const override {
return m_UpdateUUID;
}
virtual CommandSupportType supportGetUUID() const override {
CommandSupportType supportGetUUID() const override {
return m_GetUUID;
}
virtual qint64 minCapacity() const override;
virtual qint64 maxCapacity() const override;
virtual qint64 maxLabelLength() const override;
virtual SupportTool supportToolName() const override;
virtual bool supportToolFound() const override;
qint64 minCapacity() const override;
qint64 maxCapacity() const override;
qint64 maxLabelLength() const override;
SupportTool supportToolName() const override;
bool supportToolFound() const override;
public:
static CommandSupportType m_GetUsed;

View File

@ -40,57 +40,57 @@ public:
exfat(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
public:
virtual void init() override;
void init() override;
// virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
virtual bool check(Report& report, const QString& deviceNode) const override;
virtual bool create(Report& report, const QString& deviceNode) const override;
// virtual bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
virtual bool updateUUID(Report& report, const QString& deviceNode) const override;
// qint64 readUsedCapacity(const QString& deviceNode) const override;
bool check(Report& report, const QString& deviceNode) const override;
bool create(Report& report, const QString& deviceNode) const override;
// bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
bool updateUUID(Report& report, const QString& deviceNode) const override;
virtual CommandSupportType supportGetUsed() const override {
CommandSupportType supportGetUsed() const override {
return m_GetUsed;
}
virtual CommandSupportType supportGetLabel() const override {
CommandSupportType supportGetLabel() const override {
return m_GetLabel;
}
virtual CommandSupportType supportCreate() const override {
CommandSupportType supportCreate() const override {
return m_Create;
}
virtual CommandSupportType supportGrow() const override {
CommandSupportType supportGrow() const override {
return m_Grow;
}
virtual CommandSupportType supportShrink() const override {
CommandSupportType supportShrink() const override {
return m_Shrink;
}
virtual CommandSupportType supportMove() const override {
CommandSupportType supportMove() const override {
return m_Move;
}
virtual CommandSupportType supportCheck() const override {
CommandSupportType supportCheck() const override {
return m_Check;
}
virtual CommandSupportType supportCopy() const override {
CommandSupportType supportCopy() const override {
return m_Copy;
}
virtual CommandSupportType supportBackup() const override {
CommandSupportType supportBackup() const override {
return m_Backup;
}
virtual CommandSupportType supportSetLabel() const override {
CommandSupportType supportSetLabel() const override {
return m_SetLabel;
}
virtual CommandSupportType supportUpdateUUID() const override {
CommandSupportType supportUpdateUUID() const override {
return m_UpdateUUID;
}
virtual CommandSupportType supportGetUUID() const override {
CommandSupportType supportGetUUID() const override {
return m_GetUUID;
}
// virtual qint64 minCapacity() const;
virtual qint64 maxCapacity() const override;
virtual qint64 maxLabelLength() const override;
virtual SupportTool supportToolName() const override;
virtual bool supportToolFound() const override;
// qint64 minCapacity() const;
qint64 maxCapacity() const override;
qint64 maxLabelLength() const override;
SupportTool supportToolName() const override;
bool supportToolFound() const override;
public:
static CommandSupportType m_GetUsed;

View File

@ -40,56 +40,56 @@ public:
ext2(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label, FileSystem::Type t = FileSystem::Ext2);
public:
virtual void init() override;
void init() override;
virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
virtual bool check(Report& report, const QString& deviceNode) const override;
virtual bool create(Report& report, const QString& deviceNode) const override;
virtual bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
virtual bool updateUUID(Report& report, const QString& deviceNode) const override;
qint64 readUsedCapacity(const QString& deviceNode) const override;
bool check(Report& report, const QString& deviceNode) const override;
bool create(Report& report, const QString& deviceNode) const override;
bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
bool updateUUID(Report& report, const QString& deviceNode) const override;
virtual CommandSupportType supportGetUsed() const override {
CommandSupportType supportGetUsed() const override {
return m_GetUsed;
}
virtual CommandSupportType supportGetLabel() const override {
CommandSupportType supportGetLabel() const override {
return m_GetLabel;
}
virtual CommandSupportType supportCreate() const override {
CommandSupportType supportCreate() const override {
return m_Create;
}
virtual CommandSupportType supportGrow() const override {
CommandSupportType supportGrow() const override {
return m_Grow;
}
virtual CommandSupportType supportShrink() const override {
CommandSupportType supportShrink() const override {
return m_Shrink;
}
virtual CommandSupportType supportMove() const override {
CommandSupportType supportMove() const override {
return m_Move;
}
virtual CommandSupportType supportCheck() const override {
CommandSupportType supportCheck() const override {
return m_Check;
}
virtual CommandSupportType supportCopy() const override {
CommandSupportType supportCopy() const override {
return m_Copy;
}
virtual CommandSupportType supportBackup() const override {
CommandSupportType supportBackup() const override {
return m_Backup;
}
virtual CommandSupportType supportSetLabel() const override {
CommandSupportType supportSetLabel() const override {
return m_SetLabel;
}
virtual CommandSupportType supportUpdateUUID() const override {
CommandSupportType supportUpdateUUID() const override {
return m_UpdateUUID;
}
virtual CommandSupportType supportGetUUID() const override {
CommandSupportType supportGetUUID() const override {
return m_GetUUID;
}
virtual qint64 maxCapacity() const override;
virtual qint64 maxLabelLength() const override;
virtual SupportTool supportToolName() const override;
virtual bool supportToolFound() const override;
qint64 maxCapacity() const override;
qint64 maxLabelLength() const override;
SupportTool supportToolName() const override;
bool supportToolFound() const override;
public:
static CommandSupportType m_GetUsed;

View File

@ -43,8 +43,8 @@ public:
ext3(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
public:
virtual bool create(Report& report, const QString& deviceNode) const override;
virtual qint64 maxCapacity() const override;
bool create(Report& report, const QString& deviceNode) const override;
qint64 maxCapacity() const override;
};
}

View File

@ -43,8 +43,8 @@ public:
ext4(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
public:
virtual bool create(Report& report, const QString& deviceNode) const override;
virtual qint64 maxCapacity() const override;
bool create(Report& report, const QString& deviceNode) const override;
qint64 maxCapacity() const override;
};
}

View File

@ -44,22 +44,22 @@ public:
public:
virtual bool create(Report&, const QString&) const override;
bool create(Report&, const QString&) const override;
virtual CommandSupportType supportCreate() const override {
CommandSupportType supportCreate() const override {
return m_Create;
}
virtual CommandSupportType supportGrow() const override {
CommandSupportType supportGrow() const override {
return m_Grow;
}
virtual CommandSupportType supportShrink() const override {
CommandSupportType supportShrink() const override {
return m_Shrink;
}
virtual CommandSupportType supportMove() const override {
CommandSupportType supportMove() const override {
return m_Move;
}
virtual bool supportToolFound() const override {
bool supportToolFound() const override {
return true;
}

View File

@ -40,58 +40,58 @@ public:
f2fs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
public:
virtual void init() override;
void init() override;
// virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
virtual bool check(Report& report, const QString& deviceNode) const override;
virtual bool create(Report& report, const QString& deviceNode) const override;
// virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
// virtual bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
// virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
// virtual bool updateUUID(Report& report, const QString& deviceNode) const override;
// qint64 readUsedCapacity(const QString& deviceNode) const override;
bool check(Report& report, const QString& deviceNode) const override;
bool create(Report& report, const QString& deviceNode) const override;
// qint64 readUsedCapacity(const QString& deviceNode) const override;
// bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
// bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
// bool updateUUID(Report& report, const QString& deviceNode) const override;
virtual CommandSupportType supportGetUsed() const override {
CommandSupportType supportGetUsed() const override {
return m_GetUsed;
}
virtual CommandSupportType supportGetLabel() const override {
CommandSupportType supportGetLabel() const override {
return m_GetLabel;
}
virtual CommandSupportType supportCreate() const override {
CommandSupportType supportCreate() const override {
return m_Create;
}
virtual CommandSupportType supportGrow() const override {
CommandSupportType supportGrow() const override {
return m_Grow;
}
virtual CommandSupportType supportShrink() const override {
CommandSupportType supportShrink() const override {
return m_Shrink;
}
virtual CommandSupportType supportMove() const override {
CommandSupportType supportMove() const override {
return m_Move;
}
virtual CommandSupportType supportCheck() const override {
CommandSupportType supportCheck() const override {
return m_Check;
}
virtual CommandSupportType supportCopy() const override {
CommandSupportType supportCopy() const override {
return m_Copy;
}
virtual CommandSupportType supportBackup() const override {
CommandSupportType supportBackup() const override {
return m_Backup;
}
virtual CommandSupportType supportSetLabel() const override {
CommandSupportType supportSetLabel() const override {
return m_SetLabel;
}
virtual CommandSupportType supportUpdateUUID() const override {
CommandSupportType supportUpdateUUID() const override {
return m_UpdateUUID;
}
virtual CommandSupportType supportGetUUID() const override {
CommandSupportType supportGetUUID() const override {
return m_GetUUID;
}
virtual qint64 minCapacity() const override;
virtual qint64 maxCapacity() const override;
virtual qint64 maxLabelLength() const override;
virtual SupportTool supportToolName() const override;
virtual bool supportToolFound() const override;
qint64 minCapacity() const override;
qint64 maxCapacity() const override;
qint64 maxLabelLength() const override;
SupportTool supportToolName() const override;
bool supportToolFound() const override;
public:
static CommandSupportType m_GetUsed;

View File

@ -40,56 +40,56 @@ public:
fat16(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label, FileSystem::Type t = FileSystem::Fat16);
public:
virtual void init() override;
void init() override;
virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
virtual bool check(Report& report, const QString& deviceNode) const override;
virtual bool create(Report& report, const QString& deviceNode) const override;
virtual bool updateUUID(Report& report, const QString& deviceNode) const override;
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
qint64 readUsedCapacity(const QString& deviceNode) const override;
bool check(Report& report, const QString& deviceNode) const override;
bool create(Report& report, const QString& deviceNode) const override;
bool updateUUID(Report& report, const QString& deviceNode) const override;
bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
virtual CommandSupportType supportGetUsed() const override {
CommandSupportType supportGetUsed() const override {
return m_GetUsed;
}
virtual CommandSupportType supportGetLabel() const override {
CommandSupportType supportGetLabel() const override {
return m_GetLabel;
}
virtual CommandSupportType supportSetLabel() const override {
CommandSupportType supportSetLabel() const override {
return m_SetLabel;
}
virtual CommandSupportType supportCreate() const override {
CommandSupportType supportCreate() const override {
return m_Create;
}
virtual CommandSupportType supportGrow() const override {
CommandSupportType supportGrow() const override {
return m_Grow;
}
virtual CommandSupportType supportShrink() const override {
CommandSupportType supportShrink() const override {
return m_Shrink;
}
virtual CommandSupportType supportMove() const override {
CommandSupportType supportMove() const override {
return m_Move;
}
virtual CommandSupportType supportCheck() const override {
CommandSupportType supportCheck() const override {
return m_Check;
}
virtual CommandSupportType supportCopy() const override {
CommandSupportType supportCopy() const override {
return m_Copy;
}
virtual CommandSupportType supportBackup() const override {
CommandSupportType supportBackup() const override {
return m_Backup;
}
virtual CommandSupportType supportUpdateUUID() const override {
CommandSupportType supportUpdateUUID() const override {
return m_UpdateUUID;
}
virtual CommandSupportType supportGetUUID() const override {
CommandSupportType supportGetUUID() const override {
return m_GetUUID;
}
virtual qint64 minCapacity() const override;
virtual qint64 maxCapacity() const override;
virtual qint64 maxLabelLength() const override;
virtual SupportTool supportToolName() const override;
virtual bool supportToolFound() const override;
qint64 minCapacity() const override;
qint64 maxCapacity() const override;
qint64 maxLabelLength() const override;
SupportTool supportToolName() const override;
bool supportToolFound() const override;
public:
static CommandSupportType m_GetUsed;

View File

@ -43,11 +43,11 @@ public:
fat32(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
public:
virtual bool create(Report& report, const QString& deviceNode) const override;
virtual bool updateUUID(Report& report, const QString& deviceNode) const override;
bool create(Report& report, const QString& deviceNode) const override;
bool updateUUID(Report& report, const QString& deviceNode) const override;
virtual qint64 minCapacity() const override;
virtual qint64 maxCapacity() const override;
qint64 minCapacity() const override;
qint64 maxCapacity() const override;
};
}

View File

@ -40,40 +40,40 @@ public:
hfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
public:
virtual void init() override;
void init() override;
virtual bool check(Report& report, const QString& deviceNode) const override;
virtual bool create(Report& report, const QString& deviceNode) const override;
bool check(Report& report, const QString& deviceNode) const override;
bool create(Report& report, const QString& deviceNode) const override;
virtual CommandSupportType supportGetUsed() const override {
CommandSupportType supportGetUsed() const override {
return m_GetUsed;
}
virtual CommandSupportType supportGetLabel() const override {
CommandSupportType supportGetLabel() const override {
return m_GetLabel;
}
virtual CommandSupportType supportCreate() const override {
CommandSupportType supportCreate() const override {
return m_Create;
}
virtual CommandSupportType supportShrink() const override {
CommandSupportType supportShrink() const override {
return m_Shrink;
}
virtual CommandSupportType supportMove() const override {
CommandSupportType supportMove() const override {
return m_Move;
}
virtual CommandSupportType supportCheck() const override {
CommandSupportType supportCheck() const override {
return m_Check;
}
virtual CommandSupportType supportCopy() const override {
CommandSupportType supportCopy() const override {
return m_Copy;
}
virtual CommandSupportType supportBackup() const override {
CommandSupportType supportBackup() const override {
return m_Backup;
}
virtual qint64 maxCapacity() const override;
virtual qint64 maxLabelLength() const override;
virtual SupportTool supportToolName() const override;
virtual bool supportToolFound() const override;
qint64 maxCapacity() const override;
qint64 maxLabelLength() const override;
SupportTool supportToolName() const override;
bool supportToolFound() const override;
public:
static CommandSupportType m_GetUsed;

View File

@ -40,33 +40,33 @@ public:
hfsplus(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
public:
virtual void init() override;
void init() override;
virtual bool check(Report& report, const QString& deviceNode) const override;
bool check(Report& report, const QString& deviceNode) const override;
virtual CommandSupportType supportGetUsed() const override {
CommandSupportType supportGetUsed() const override {
return m_GetUsed;
}
virtual CommandSupportType supportShrink() const override {
CommandSupportType supportShrink() const override {
return m_Shrink;
}
virtual CommandSupportType supportMove() const override {
CommandSupportType supportMove() const override {
return m_Move;
}
virtual CommandSupportType supportCheck() const override {
CommandSupportType supportCheck() const override {
return m_Check;
}
virtual CommandSupportType supportCopy() const override {
CommandSupportType supportCopy() const override {
return m_Copy;
}
virtual CommandSupportType supportBackup() const override {
CommandSupportType supportBackup() const override {
return m_Backup;
}
virtual qint64 maxCapacity() const override;
virtual qint64 maxLabelLength() const override;
virtual SupportTool supportToolName() const override;
virtual bool supportToolFound() const override;
qint64 maxCapacity() const override;
qint64 maxLabelLength() const override;
SupportTool supportToolName() const override;
bool supportToolFound() const override;
public:
static CommandSupportType m_GetUsed;

View File

@ -40,45 +40,45 @@ public:
hpfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
public:
virtual CommandSupportType supportGetUsed() const override {
CommandSupportType supportGetUsed() const override {
return m_GetUsed;
}
virtual CommandSupportType supportGetLabel() const override {
CommandSupportType supportGetLabel() const override {
return m_GetLabel;
}
virtual CommandSupportType supportCreate() const override {
CommandSupportType supportCreate() const override {
return m_Create;
}
virtual CommandSupportType supportGrow() const override {
CommandSupportType supportGrow() const override {
return m_Grow;
}
virtual CommandSupportType supportShrink() const override {
CommandSupportType supportShrink() const override {
return m_Shrink;
}
virtual CommandSupportType supportMove() const override {
CommandSupportType supportMove() const override {
return m_Move;
}
virtual CommandSupportType supportCheck() const override {
CommandSupportType supportCheck() const override {
return m_Check;
}
virtual CommandSupportType supportCopy() const override {
CommandSupportType supportCopy() const override {
return m_Copy;
}
virtual CommandSupportType supportBackup() const override {
CommandSupportType supportBackup() const override {
return m_Backup;
}
virtual CommandSupportType supportSetLabel() const override {
CommandSupportType supportSetLabel() const override {
return m_SetLabel;
}
virtual CommandSupportType supportUpdateUUID() const override {
CommandSupportType supportUpdateUUID() const override {
return m_UpdateUUID;
}
virtual CommandSupportType supportGetUUID() const override {
CommandSupportType supportGetUUID() const override {
return m_GetUUID;
}
virtual qint64 maxCapacity() const override;
virtual bool supportToolFound() const override {
qint64 maxCapacity() const override;
bool supportToolFound() const override {
return true;
}

View File

@ -40,47 +40,47 @@ public:
jfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
public:
virtual void init() override;
void init() override;
virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
virtual bool check(Report& report, const QString& deviceNode) const override;
virtual bool create(Report& report, const QString& deviceNode) const override;
virtual bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
qint64 readUsedCapacity(const QString& deviceNode) const override;
bool check(Report& report, const QString& deviceNode) const override;
bool create(Report& report, const QString& deviceNode) const override;
bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
virtual CommandSupportType supportGetUsed() const override {
CommandSupportType supportGetUsed() const override {
return m_GetUsed;
}
virtual CommandSupportType supportGetLabel() const override {
CommandSupportType supportGetLabel() const override {
return m_GetLabel;
}
virtual CommandSupportType supportCreate() const override {
CommandSupportType supportCreate() const override {
return m_Create;
}
virtual CommandSupportType supportGrow() const override {
CommandSupportType supportGrow() const override {
return m_Grow;
}
virtual CommandSupportType supportMove() const override {
CommandSupportType supportMove() const override {
return m_Move;
}
virtual CommandSupportType supportCheck() const override {
CommandSupportType supportCheck() const override {
return m_Check;
}
virtual CommandSupportType supportCopy() const override {
CommandSupportType supportCopy() const override {
return m_Copy;
}
virtual CommandSupportType supportBackup() const override {
CommandSupportType supportBackup() const override {
return m_Backup;
}
virtual CommandSupportType supportSetLabel() const override {
CommandSupportType supportSetLabel() const override {
return m_SetLabel;
}
virtual qint64 minCapacity() const override;
virtual qint64 maxCapacity() const override;
virtual qint64 maxLabelLength() const override;
virtual SupportTool supportToolName() const override;
virtual bool supportToolFound() const override;
qint64 minCapacity() const override;
qint64 maxCapacity() const override;
qint64 maxLabelLength() const override;
SupportTool supportToolName() const override;
bool supportToolFound() const override;
public:
static CommandSupportType m_GetUsed;

View File

@ -40,52 +40,52 @@ public:
linuxswap(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
public:
virtual void init() override;
void init() override;
virtual bool create(Report& report, const QString& deviceNode) const override;
virtual bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
virtual bool copy(Report& report, const QString& targetDeviceNode, const QString& sourceDeviceNode) const override;
virtual bool updateUUID(Report& report, const QString& deviceNode) const override;
bool create(Report& report, const QString& deviceNode) const override;
bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
bool copy(Report& report, const QString& targetDeviceNode, const QString& sourceDeviceNode) const override;
bool updateUUID(Report& report, const QString& deviceNode) const override;
virtual bool canMount(const QString& deviceNode, const QString& mountPoint) const override;
virtual bool mount(Report& report, const QString& deviceNode, const QString& mountPoint) override;
virtual bool unmount(Report& report, const QString& deviceNode) override;
bool canMount(const QString& deviceNode, const QString& mountPoint) const override;
bool mount(Report& report, const QString& deviceNode, const QString& mountPoint) override;
bool unmount(Report& report, const QString& deviceNode) override;
virtual QString mountTitle() const override;
virtual QString unmountTitle() const override;
QString mountTitle() const override;
QString unmountTitle() const override;
virtual CommandSupportType supportCreate() const override {
CommandSupportType supportCreate() const override {
return m_Create;
}
virtual CommandSupportType supportGrow() const override {
CommandSupportType supportGrow() const override {
return m_Grow;
}
virtual CommandSupportType supportShrink() const override {
CommandSupportType supportShrink() const override {
return m_Shrink;
}
virtual CommandSupportType supportMove() const override {
CommandSupportType supportMove() const override {
return m_Move;
}
virtual CommandSupportType supportCopy() const override {
CommandSupportType supportCopy() const override {
return m_Copy;
}
virtual CommandSupportType supportGetLabel() const override {
CommandSupportType supportGetLabel() const override {
return m_GetLabel;
}
virtual CommandSupportType supportSetLabel() const override {
CommandSupportType supportSetLabel() const override {
return m_SetLabel;
}
virtual CommandSupportType supportUpdateUUID() const override {
CommandSupportType supportUpdateUUID() const override {
return m_UpdateUUID;
}
virtual CommandSupportType supportGetUUID() const override {
CommandSupportType supportGetUUID() const override {
return m_GetUUID;
}
virtual qint64 maxLabelLength() const override;
virtual SupportTool supportToolName() const override;
virtual bool supportToolFound() const override;
qint64 maxLabelLength() const override;
SupportTool supportToolName() const override;
bool supportToolFound() const override;
public:
static CommandSupportType m_Create;

View File

@ -45,54 +45,54 @@ public:
public:
void init() override;
virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
qint64 readUsedCapacity(const QString& deviceNode) const override;
virtual CommandSupportType supportGetUsed() const override {
CommandSupportType supportGetUsed() const override {
return m_GetUsed;
}
virtual CommandSupportType supportGetLabel() const override {
CommandSupportType supportGetLabel() const override {
return m_GetLabel;
}
virtual CommandSupportType supportCreate() const override {
CommandSupportType supportCreate() const override {
return m_Create;
}
virtual CommandSupportType supportGrow() const override {
CommandSupportType supportGrow() const override {
if (!m_isCryptOpen)
return cmdSupportNone;
if (m_Grow && m_innerFs)
return m_innerFs->supportGrow();
return cmdSupportNone;
}
virtual CommandSupportType supportShrink() const override {
CommandSupportType supportShrink() const override {
if (!m_isCryptOpen)
return cmdSupportNone;
if (m_Shrink && m_innerFs)
return m_innerFs->supportShrink();
return cmdSupportNone;
}
virtual CommandSupportType supportMove() const override {
CommandSupportType supportMove() const override {
return m_Move;
}
virtual CommandSupportType supportCheck() const override {
CommandSupportType supportCheck() const override {
if (!m_isCryptOpen)
return cmdSupportNone;
if (m_Check && m_innerFs)
return m_innerFs->supportCheck();
return cmdSupportNone;
}
virtual CommandSupportType supportCopy() const override {
CommandSupportType supportCopy() const override {
return m_Copy;
}
virtual CommandSupportType supportBackup() const override {
CommandSupportType supportBackup() const override {
return m_Backup;
}
virtual CommandSupportType supportSetLabel() const override {
CommandSupportType supportSetLabel() const override {
return m_SetLabel;
}
virtual CommandSupportType supportUpdateUUID() const override {
CommandSupportType supportUpdateUUID() const override {
return m_UpdateUUID;
}
virtual CommandSupportType supportGetUUID() const override {
CommandSupportType supportGetUUID() const override {
return m_GetUUID;
}
@ -100,26 +100,26 @@ public:
m_logicalSectorSize = logicalSectorSize;
}
virtual bool check(Report& report, const QString& deviceNode) const override;
virtual bool create(Report &report, const QString &deviceNode) const override;
virtual SupportTool supportToolName() const override;
virtual bool supportToolFound() const override;
virtual QString readUUID(const QString& deviceNode) const override;
virtual bool updateUUID(Report& report, const QString& deviceNode) const override;
virtual bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
virtual QString readLabel(const QString& deviceNode) const override;
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
bool check(Report& report, const QString& deviceNode) const override;
bool create(Report &report, const QString &deviceNode) const override;
SupportTool supportToolName() const override;
bool supportToolFound() const override;
QString readUUID(const QString& deviceNode) const override;
bool updateUUID(Report& report, const QString& deviceNode) const override;
bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
QString readLabel(const QString& deviceNode) const override;
bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
virtual QString mountTitle() const override;
virtual QString unmountTitle() const override;
QString mountTitle() const override;
QString unmountTitle() const override;
QString cryptOpenTitle() const;
QString cryptCloseTitle() const;
void setPassphrase(const QString&);
QString passphrase() const;
virtual bool canMount(const QString&, const QString&) const override;
virtual bool canUnmount(const QString&) const override;
bool canMount(const QString&, const QString&) const override;
bool canUnmount(const QString&) const override;
bool isMounted() const;
void setMounted(bool mounted);
@ -134,10 +134,10 @@ public:
void loadInnerFileSystem(const QString& mapperNode);
void createInnerFileSystem(Type type);
virtual bool mount(Report& report, const QString& deviceNode, const QString& mountPoint) override;
virtual bool unmount(Report& report, const QString& deviceNode) override;
bool mount(Report& report, const QString& deviceNode, const QString& mountPoint) override;
bool unmount(Report& report, const QString& deviceNode) override;
virtual FileSystem::Type type() const override;
FileSystem::Type type() const override;
QString suggestedMapperName(const QString& deviceNode) const;

View File

@ -41,56 +41,56 @@ public:
lvm2_pv(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
public:
virtual void init() override;
void init() override;
// virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
virtual bool check(Report& report, const QString& deviceNode) const override;
virtual bool create(Report& report, const QString& deviceNode) const override;
virtual bool remove(Report& report, const QString& deviceNode) const override;
// virtual bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
// virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
virtual bool updateUUID(Report& report, const QString& deviceNode) const override;
// qint64 readUsedCapacity(const QString& deviceNode) const override;
bool check(Report& report, const QString& deviceNode) const override;
bool create(Report& report, const QString& deviceNode) const override;
bool remove(Report& report, const QString& deviceNode) const override;
// bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
// bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
bool updateUUID(Report& report, const QString& deviceNode) const override;
virtual CommandSupportType supportGetUsed() const override {
CommandSupportType supportGetUsed() const override {
return m_GetUsed;
}
virtual CommandSupportType supportGetLabel() const override {
CommandSupportType supportGetLabel() const override {
return m_GetLabel;
}
virtual CommandSupportType supportCreate() const override {
CommandSupportType supportCreate() const override {
return m_Create;
}
virtual CommandSupportType supportGrow() const override {
CommandSupportType supportGrow() const override {
return m_Grow;
}
virtual CommandSupportType supportShrink() const override {
CommandSupportType supportShrink() const override {
return m_Shrink;
}
virtual CommandSupportType supportMove() const override {
CommandSupportType supportMove() const override {
return m_Move;
}
virtual CommandSupportType supportCheck() const override {
CommandSupportType supportCheck() const override {
return m_Check;
}
virtual CommandSupportType supportCopy() const override {
CommandSupportType supportCopy() const override {
return m_Copy;
}
virtual CommandSupportType supportBackup() const override {
CommandSupportType supportBackup() const override {
return m_Backup;
}
virtual CommandSupportType supportSetLabel() const override {
CommandSupportType supportSetLabel() const override {
return m_SetLabel;
}
virtual CommandSupportType supportUpdateUUID() const override {
CommandSupportType supportUpdateUUID() const override {
return m_UpdateUUID;
}
virtual CommandSupportType supportGetUUID() const override {
CommandSupportType supportGetUUID() const override {
return m_GetUUID;
}
virtual qint64 maxCapacity() const override;
virtual SupportTool supportToolName() const override;
virtual bool supportToolFound() const override;
qint64 maxCapacity() const override;
SupportTool supportToolName() const override;
bool supportToolFound() const override;
public:
static CommandSupportType m_GetUsed;

View File

@ -41,58 +41,58 @@ public:
nilfs2(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
public:
virtual void init() override;
void init() override;
// virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
virtual bool check(Report& report, const QString& deviceNode) const override;
virtual bool create(Report& report, const QString& deviceNode) const override;
virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
virtual bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
virtual bool updateUUID(Report& report, const QString& deviceNode) const override;
// qint64 readUsedCapacity(const QString& deviceNode) const override;
bool check(Report& report, const QString& deviceNode) const override;
bool create(Report& report, const QString& deviceNode) const override;
qint64 readUsedCapacity(const QString& deviceNode) const override;
bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
bool updateUUID(Report& report, const QString& deviceNode) const override;
virtual CommandSupportType supportGetUsed() const override {
CommandSupportType supportGetUsed() const override {
return m_GetUsed;
}
virtual CommandSupportType supportGetLabel() const override {
CommandSupportType supportGetLabel() const override {
return m_GetLabel;
}
virtual CommandSupportType supportCreate() const override {
CommandSupportType supportCreate() const override {
return m_Create;
}
virtual CommandSupportType supportGrow() const override {
CommandSupportType supportGrow() const override {
return m_Grow;
}
virtual CommandSupportType supportShrink() const override {
CommandSupportType supportShrink() const override {
return m_Shrink;
}
virtual CommandSupportType supportMove() const override {
CommandSupportType supportMove() const override {
return m_Move;
}
virtual CommandSupportType supportCheck() const override {
CommandSupportType supportCheck() const override {
return m_Check;
}
virtual CommandSupportType supportCopy() const override {
CommandSupportType supportCopy() const override {
return m_Copy;
}
virtual CommandSupportType supportBackup() const override {
CommandSupportType supportBackup() const override {
return m_Backup;
}
virtual CommandSupportType supportSetLabel() const override {
CommandSupportType supportSetLabel() const override {
return m_SetLabel;
}
virtual CommandSupportType supportUpdateUUID() const override {
CommandSupportType supportUpdateUUID() const override {
return m_UpdateUUID;
}
virtual CommandSupportType supportGetUUID() const override {
CommandSupportType supportGetUUID() const override {
return m_GetUUID;
}
virtual qint64 minCapacity() const override;
virtual qint64 maxCapacity() const override;
virtual qint64 maxLabelLength() const override;
virtual SupportTool supportToolName() const override;
virtual bool supportToolFound() const override;
qint64 minCapacity() const override;
qint64 maxCapacity() const override;
qint64 maxLabelLength() const override;
SupportTool supportToolName() const override;
bool supportToolFound() const override;
public:
static CommandSupportType m_GetUsed;

View File

@ -40,59 +40,59 @@ public:
ntfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
public:
virtual void init() override;
void init() override;
virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
virtual bool check(Report& report, const QString& deviceNode) const override;
virtual bool create(Report& report, const QString& deviceNode) const override;
virtual bool copy(Report& report, const QString& targetDeviceNode, const QString& sourceDeviceNode) const override;
virtual bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
virtual bool updateUUID(Report& report, const QString& deviceNode) const override;
virtual bool updateBootSector(Report& report, const QString& deviceNode) const override;
qint64 readUsedCapacity(const QString& deviceNode) const override;
bool check(Report& report, const QString& deviceNode) const override;
bool create(Report& report, const QString& deviceNode) const override;
bool copy(Report& report, const QString& targetDeviceNode, const QString& sourceDeviceNode) const override;
bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
bool updateUUID(Report& report, const QString& deviceNode) const override;
bool updateBootSector(Report& report, const QString& deviceNode) const override;
virtual CommandSupportType supportGetUsed() const override {
CommandSupportType supportGetUsed() const override {
return m_GetUsed;
}
virtual CommandSupportType supportGetLabel() const override {
CommandSupportType supportGetLabel() const override {
return m_GetLabel;
}
virtual CommandSupportType supportCreate() const override {
CommandSupportType supportCreate() const override {
return m_Create;
}
virtual CommandSupportType supportGrow() const override {
CommandSupportType supportGrow() const override {
return m_Grow;
}
virtual CommandSupportType supportShrink() const override {
CommandSupportType supportShrink() const override {
return m_Shrink;
}
virtual CommandSupportType supportMove() const override {
CommandSupportType supportMove() const override {
return m_Move;
}
virtual CommandSupportType supportCheck() const override {
CommandSupportType supportCheck() const override {
return m_Check;
}
virtual CommandSupportType supportCopy() const override {
CommandSupportType supportCopy() const override {
return m_Copy;
}
virtual CommandSupportType supportBackup() const override {
CommandSupportType supportBackup() const override {
return m_Backup;
}
virtual CommandSupportType supportSetLabel() const override {
CommandSupportType supportSetLabel() const override {
return m_SetLabel;
}
virtual CommandSupportType supportUpdateUUID() const override {
CommandSupportType supportUpdateUUID() const override {
return m_UpdateUUID;
}
virtual CommandSupportType supportGetUUID() const override {
CommandSupportType supportGetUUID() const override {
return m_GetUUID;
}
virtual qint64 minCapacity() const override;
virtual qint64 maxCapacity() const override;
virtual qint64 maxLabelLength() const override;
virtual SupportTool supportToolName() const override;
virtual bool supportToolFound() const override;
qint64 minCapacity() const override;
qint64 maxCapacity() const override;
qint64 maxLabelLength() const override;
SupportTool supportToolName() const override;
bool supportToolFound() const override;
public:
static CommandSupportType m_GetUsed;

View File

@ -40,56 +40,56 @@ public:
ocfs2(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
public:
virtual void init() override;
void init() override;
virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
virtual bool check(Report& report, const QString& deviceNode) const override;
virtual bool create(Report& report, const QString& deviceNode) const override;
virtual bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
virtual bool updateUUID(Report& report, const QString& deviceNode) const override;
qint64 readUsedCapacity(const QString& deviceNode) const override;
bool check(Report& report, const QString& deviceNode) const override;
bool create(Report& report, const QString& deviceNode) const override;
bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
bool updateUUID(Report& report, const QString& deviceNode) const override;
virtual CommandSupportType supportGetUsed() const override {
CommandSupportType supportGetUsed() const override {
return m_GetUsed;
}
virtual CommandSupportType supportGetLabel() const override {
CommandSupportType supportGetLabel() const override {
return m_GetLabel;
}
virtual CommandSupportType supportCreate() const override {
CommandSupportType supportCreate() const override {
return m_Create;
}
virtual CommandSupportType supportGrow() const override {
CommandSupportType supportGrow() const override {
return m_Grow;
}
virtual CommandSupportType supportShrink() const override {
CommandSupportType supportShrink() const override {
return m_Shrink;
}
virtual CommandSupportType supportMove() const override {
CommandSupportType supportMove() const override {
return m_Move;
}
virtual CommandSupportType supportCheck() const override {
CommandSupportType supportCheck() const override {
return m_Check;
}
virtual CommandSupportType supportCopy() const override {
CommandSupportType supportCopy() const override {
return m_Copy;
}
virtual CommandSupportType supportBackup() const override {
CommandSupportType supportBackup() const override {
return m_Backup;
}
virtual CommandSupportType supportSetLabel() const override {
CommandSupportType supportSetLabel() const override {
return m_SetLabel;
}
virtual CommandSupportType supportUpdateUUID() const override {
CommandSupportType supportUpdateUUID() const override {
return m_UpdateUUID;
}
virtual CommandSupportType supportGetUUID() const override {
CommandSupportType supportGetUUID() const override {
return m_GetUUID;
}
virtual qint64 minCapacity() const override;
virtual qint64 maxCapacity() const override;
virtual SupportTool supportToolName() const override;
virtual bool supportToolFound() const override;
qint64 minCapacity() const override;
qint64 maxCapacity() const override;
SupportTool supportToolName() const override;
bool supportToolFound() const override;
public:
static CommandSupportType m_GetUsed;

View File

@ -40,38 +40,38 @@ public:
reiser4(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
public:
virtual void init() override;
void init() override;
virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
virtual bool check(Report& report, const QString& deviceNode) const override;
virtual bool create(Report& report, const QString& deviceNode) const override;
qint64 readUsedCapacity(const QString& deviceNode) const override;
bool check(Report& report, const QString& deviceNode) const override;
bool create(Report& report, const QString& deviceNode) const override;
virtual CommandSupportType supportGetUsed() const override {
CommandSupportType supportGetUsed() const override {
return m_GetUsed;
}
virtual CommandSupportType supportGetLabel() const override {
CommandSupportType supportGetLabel() const override {
return m_GetLabel;
}
virtual CommandSupportType supportCreate() const override {
CommandSupportType supportCreate() const override {
return m_Create;
}
virtual CommandSupportType supportMove() const override {
CommandSupportType supportMove() const override {
return m_Move;
}
virtual CommandSupportType supportCheck() const override {
CommandSupportType supportCheck() const override {
return m_Check;
}
virtual CommandSupportType supportCopy() const override {
CommandSupportType supportCopy() const override {
return m_Copy;
}
virtual CommandSupportType supportBackup() const override {
CommandSupportType supportBackup() const override {
return m_Backup;
}
virtual qint64 maxCapacity() const override;
virtual qint64 maxLabelLength() const override;
virtual SupportTool supportToolName() const override;
virtual bool supportToolFound() const override;
qint64 maxCapacity() const override;
qint64 maxLabelLength() const override;
SupportTool supportToolName() const override;
bool supportToolFound() const override;
public:
static CommandSupportType m_GetUsed;

View File

@ -42,57 +42,57 @@ public:
reiserfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
public:
virtual void init() override;
void init() override;
virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
virtual bool check(Report& report, const QString& deviceNode) const override;
virtual bool create(Report& report, const QString& deviceNode) const override;
virtual bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
virtual bool updateUUID(Report& report, const QString& deviceNode) const override;
qint64 readUsedCapacity(const QString& deviceNode) const override;
bool check(Report& report, const QString& deviceNode) const override;
bool create(Report& report, const QString& deviceNode) const override;
bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
bool updateUUID(Report& report, const QString& deviceNode) const override;
virtual CommandSupportType supportGetUsed() const override {
CommandSupportType supportGetUsed() const override {
return m_GetUsed;
}
virtual CommandSupportType supportGetLabel() const override {
CommandSupportType supportGetLabel() const override {
return m_GetLabel;
}
virtual CommandSupportType supportCreate() const override {
CommandSupportType supportCreate() const override {
return m_Create;
}
virtual CommandSupportType supportGrow() const override {
CommandSupportType supportGrow() const override {
return m_Grow;
}
virtual CommandSupportType supportShrink() const override {
CommandSupportType supportShrink() const override {
return m_Shrink;
}
virtual CommandSupportType supportMove() const override {
CommandSupportType supportMove() const override {
return m_Move;
}
virtual CommandSupportType supportCheck() const override {
CommandSupportType supportCheck() const override {
return m_Check;
}
virtual CommandSupportType supportCopy() const override {
CommandSupportType supportCopy() const override {
return m_Copy;
}
virtual CommandSupportType supportBackup() const override {
CommandSupportType supportBackup() const override {
return m_Backup;
}
virtual CommandSupportType supportSetLabel() const override {
CommandSupportType supportSetLabel() const override {
return m_SetLabel;
}
virtual CommandSupportType supportUpdateUUID() const override {
CommandSupportType supportUpdateUUID() const override {
return m_UpdateUUID;
}
virtual CommandSupportType supportGetUUID() const override {
CommandSupportType supportGetUUID() const override {
return m_GetUUID;
}
virtual qint64 minCapacity() const override;
virtual qint64 maxCapacity() const override;
virtual qint64 maxLabelLength() const override;
virtual SupportTool supportToolName() const override;
virtual bool supportToolFound() const override;
qint64 minCapacity() const override;
qint64 maxCapacity() const override;
qint64 maxLabelLength() const override;
SupportTool supportToolName() const override;
bool supportToolFound() const override;
public:
static CommandSupportType m_GetUsed;

View File

@ -38,17 +38,17 @@ public:
ufs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
public:
virtual CommandSupportType supportMove() const override {
CommandSupportType supportMove() const override {
return m_Move;
}
virtual CommandSupportType supportCopy() const override {
CommandSupportType supportCopy() const override {
return m_Copy;
}
virtual CommandSupportType supportBackup() const override {
CommandSupportType supportBackup() const override {
return m_Backup;
}
virtual bool supportToolFound() const override {
bool supportToolFound() const override {
return true;
}

View File

@ -40,13 +40,13 @@ public:
unformatted(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
public:
virtual bool create(Report&, const QString&) const override;
bool create(Report&, const QString&) const override;
virtual CommandSupportType supportCreate() const override {
CommandSupportType supportCreate() const override {
return m_Create;
}
virtual bool supportToolFound() const override {
bool supportToolFound() const override {
return true;
}

View File

@ -36,7 +36,7 @@ public:
unknown(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
public:
virtual bool supportToolFound() const override {
bool supportToolFound() const override {
return true;
}
};

View File

@ -40,48 +40,48 @@ public:
xfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
public:
virtual void init() override;
void init() override;
virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
virtual bool check(Report& report, const QString& deviceNode) const override;
virtual bool create(Report& report, const QString& deviceNode) const override;
virtual bool copy(Report& report, const QString&, const QString&) const override;
virtual bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
qint64 readUsedCapacity(const QString& deviceNode) const override;
bool check(Report& report, const QString& deviceNode) const override;
bool create(Report& report, const QString& deviceNode) const override;
bool copy(Report& report, const QString&, const QString&) const override;
bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
virtual CommandSupportType supportGetUsed() const override {
CommandSupportType supportGetUsed() const override {
return m_GetUsed;
}
virtual CommandSupportType supportGetLabel() const override {
CommandSupportType supportGetLabel() const override {
return m_GetLabel;
}
virtual CommandSupportType supportCreate() const override {
CommandSupportType supportCreate() const override {
return m_Create;
}
virtual CommandSupportType supportGrow() const override {
CommandSupportType supportGrow() const override {
return m_Grow;
}
virtual CommandSupportType supportMove() const override {
CommandSupportType supportMove() const override {
return m_Move;
}
virtual CommandSupportType supportCheck() const override {
CommandSupportType supportCheck() const override {
return m_Check;
}
virtual CommandSupportType supportCopy() const override {
CommandSupportType supportCopy() const override {
return m_Copy;
}
virtual CommandSupportType supportBackup() const override {
CommandSupportType supportBackup() const override {
return m_Backup;
}
virtual CommandSupportType supportSetLabel() const override {
CommandSupportType supportSetLabel() const override {
return m_SetLabel;
}
virtual qint64 minCapacity() const override;
virtual qint64 maxCapacity() const override;
virtual qint64 maxLabelLength() const override;
virtual SupportTool supportToolName() const override;
virtual bool supportToolFound() const override;
qint64 minCapacity() const override;
qint64 maxCapacity() const override;
qint64 maxLabelLength() const override;
SupportTool supportToolName() const override;
bool supportToolFound() const override;
public:
static CommandSupportType m_GetUsed;

View File

@ -41,52 +41,52 @@ public:
zfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
public:
virtual void init() override;
void init() override;
virtual bool remove(Report& report, const QString& deviceNode) const override;
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
bool remove(Report& report, const QString& deviceNode) const override;
bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
virtual CommandSupportType supportGetUsed() const override {
CommandSupportType supportGetUsed() const override {
return m_GetUsed;
}
virtual CommandSupportType supportGetLabel() const override {
CommandSupportType supportGetLabel() const override {
return m_GetLabel;
}
virtual CommandSupportType supportCreate() const override {
CommandSupportType supportCreate() const override {
return m_Create;
}
virtual CommandSupportType supportGrow() const override {
CommandSupportType supportGrow() const override {
return m_Grow;
}
virtual CommandSupportType supportShrink() const override {
CommandSupportType supportShrink() const override {
return m_Shrink;
}
virtual CommandSupportType supportMove() const override {
CommandSupportType supportMove() const override {
return m_Move;
}
virtual CommandSupportType supportCheck() const override {
CommandSupportType supportCheck() const override {
return m_Check;
}
virtual CommandSupportType supportCopy() const override {
CommandSupportType supportCopy() const override {
return m_Copy;
}
virtual CommandSupportType supportBackup() const override {
CommandSupportType supportBackup() const override {
return m_Backup;
}
virtual CommandSupportType supportSetLabel() const override {
CommandSupportType supportSetLabel() const override {
return m_SetLabel;
}
virtual CommandSupportType supportUpdateUUID() const override {
CommandSupportType supportUpdateUUID() const override {
return m_UpdateUUID;
}
virtual CommandSupportType supportGetUUID() const override {
CommandSupportType supportGetUUID() const override {
return m_GetUUID;
}
virtual qint64 minCapacity() const override;
virtual qint64 maxCapacity() const override;
virtual SupportTool supportToolName() const override;
virtual bool supportToolFound() const override;
qint64 minCapacity() const override;
qint64 maxCapacity() const override;
SupportTool supportToolName() const override;
bool supportToolFound() const override;
public:
static CommandSupportType m_GetUsed;

View File

@ -39,9 +39,9 @@ public:
BackupFileSystemJob(Device& sourcedevice, Partition& sourcepartition, const QString& filename);
public:
virtual bool run(Report& parent) override;
virtual qint32 numSteps() const override;
virtual QString description() const override;
bool run(Report& parent) override;
qint32 numSteps() const override;
QString description() const override;
protected:
Partition& sourcePartition() {

View File

@ -35,8 +35,8 @@ public:
CheckFileSystemJob(Partition& p);
public:
virtual bool run(Report& parent) override;
virtual QString description() const override;
bool run(Report& parent) override;
QString description() const override;
protected:
Partition& partition() {

View File

@ -41,9 +41,9 @@ public:
CopyFileSystemJob(Device& targetdevice, Partition& targetpartition, Device& sourcedevice, Partition& sourcepartition);
public:
virtual bool run(Report& parent) override;
virtual qint32 numSteps() const override;
virtual QString description() const override;
bool run(Report& parent) override;
qint32 numSteps() const override;
QString description() const override;
protected:
Partition& targetPartition() {

View File

@ -36,8 +36,8 @@ public:
CreateFileSystemJob(Device& d, Partition& p);
public:
virtual bool run(Report& parent) override;
virtual QString description() const override;
bool run(Report& parent) override;
QString description() const override;
protected:
Partition& partition() {

View File

@ -36,8 +36,8 @@ public:
CreatePartitionJob(Device& d, Partition& p);
public:
virtual bool run(Report& parent) override;
virtual QString description() const override;
bool run(Report& parent) override;
QString description() const override;
protected:
Partition& partition() {

View File

@ -35,8 +35,8 @@ public:
CreatePartitionTableJob(Device& d);
public:
virtual bool run(Report& parent) override;
virtual QString description() const override;
bool run(Report& parent) override;
QString description() const override;
protected:
Device& device() {

View File

@ -39,8 +39,8 @@ public:
DeleteFileSystemJob(Device& d, Partition& p);
public:
virtual bool run(Report& parent) override;
virtual QString description() const override;
bool run(Report& parent) override;
QString description() const override;
protected:
Partition& partition() {

View File

@ -36,8 +36,8 @@ public:
DeletePartitionJob(Device& d, Partition& p);
public:
virtual bool run(Report& parent) override;
virtual QString description() const override;
bool run(Report& parent) override;
QString description() const override;
protected:
Partition& partition() {

View File

@ -39,9 +39,9 @@ public:
MoveFileSystemJob(Device& d, Partition& p, qint64 newstart);
public:
virtual bool run(Report& parent) override;
virtual qint32 numSteps() const override;
virtual QString description() const override;
bool run(Report& parent) override;
qint32 numSteps() const override;
QString description() const override;
protected:
Partition& partition() {

View File

@ -40,9 +40,9 @@ public:
ResizeFileSystemJob(Device& d, Partition& p, qint64 newlength = -1);
public:
virtual bool run(Report& parent) override;
virtual qint32 numSteps() const override;
virtual QString description() const override;
bool run(Report& parent) override;
qint32 numSteps() const override;
QString description() const override;
protected:
bool resizeFileSystemBackend(Report& report);

View File

@ -39,9 +39,9 @@ public:
RestoreFileSystemJob(Device& targetdevice, Partition& targetpartition, const QString& filename);
public:
virtual bool run(Report& parent) override;
virtual qint32 numSteps() const override;
virtual QString description() const override;
bool run(Report& parent) override;
qint32 numSteps() const override;
QString description() const override;
protected:
Partition& targetPartition() {

View File

@ -38,8 +38,8 @@ public:
SetFileSystemLabelJob(Partition& p, const QString& newlabel);
public:
virtual bool run(Report& parent) override;
virtual QString description() const override;
bool run(Report& parent) override;
QString description() const override;
protected:
Partition& partition() {

View File

@ -41,9 +41,9 @@ public:
SetPartFlagsJob(Device& d, Partition& p, PartitionTable::Flags flags);
public:
virtual bool run(Report& parent) override;
virtual qint32 numSteps() const override;
virtual QString description() const override;
bool run(Report& parent) override;
qint32 numSteps() const override;
QString description() const override;
protected:
Device& device() {

View File

@ -43,8 +43,8 @@ public:
SetPartGeometryJob(Device& d, Partition& p, qint64 newstart, qint64 newlength);
public:
virtual bool run(Report& parent) override;
virtual QString description() const override;
bool run(Report& parent) override;
QString description() const override;
protected:
Partition& partition() {

View File

@ -39,9 +39,9 @@ public:
ShredFileSystemJob(Device& d, Partition& p, bool randomShred);
public:
virtual bool run(Report& parent) override;
virtual qint32 numSteps() const override;
virtual QString description() const override;
bool run(Report& parent) override;
qint32 numSteps() const override;
QString description() const override;
protected:
Partition& partition() {

View File

@ -49,10 +49,10 @@ public:
void preview() override {}
void undo() override {}
virtual bool targets(const Device&) const override {
bool targets(const Device&) const override {
return false;
}
virtual bool targets(const Partition&) const override{
bool targets(const Partition&) const override{
return false;
}

View File

@ -52,8 +52,8 @@ public:
void preview() override {}
void undo() override {}
virtual bool targets(const Device& d) const override;
virtual bool targets(const Partition& p) const override;
bool targets(const Device& d) const override;
bool targets(const Partition& p) const override;
static bool canCheck(const Partition* p);

View File

@ -66,8 +66,8 @@ public:
void preview() override;
void undo() override;
virtual bool targets(const Device& d) const override;
virtual bool targets(const Partition& p) const override;
bool targets(const Device& d) const override;
bool targets(const Partition& p) const override;
static bool canCopy(const Partition* p);
static bool canPaste(const Partition* p, const Partition* source);

View File

@ -61,8 +61,8 @@ public:
void undo() override;
bool execute(Report& parent) override;
virtual bool targets(const Device& d) const override;
virtual bool targets(const Partition& p) const override;
bool targets(const Device& d) const override;
bool targets(const Partition& p) const override;
protected:
Device& targetDevice() {

View File

@ -57,8 +57,8 @@ public:
void undo() override;
bool execute(Report& parent) override;
virtual bool targets(const Device& d) const override;
virtual bool targets(const Partition&) const override{
bool targets(const Device& d) const override;
bool targets(const Partition&) const override{
return false;
}

View File

@ -66,8 +66,8 @@ public:
return m_ShredAction;
}
virtual bool targets(const Device& d) const override;
virtual bool targets(const Partition& p) const override;
bool targets(const Device& d) const override;
bool targets(const Partition& p) const override;
static bool canDelete(const Partition* p);

View File

@ -60,8 +60,8 @@ public:
void preview() override;
void undo() override;
virtual bool targets(const Device& d) const override;
virtual bool targets(const Partition& p) const override;
bool targets(const Device& d) const override;
bool targets(const Partition& p) const override;
static bool canCreateNew(const Partition* p);
static Partition* createNew(const Partition& cloneFrom, FileSystem::Type type);

View File

@ -83,8 +83,8 @@ public:
void preview() override;
void undo() override;
virtual bool targets(const Device& d) const override;
virtual bool targets(const Partition& p) const override;
bool targets(const Device& d) const override;
bool targets(const Partition& p) const override;
static bool canGrow(const Partition* p);
static bool canShrink(const Partition* p);

View File

@ -65,8 +65,8 @@ public:
void preview() override;
virtual bool targets(const Device& d) const override;
virtual bool targets(const Partition& p) const override;
bool targets(const Device& d) const override;
bool targets(const Partition& p) const override;
static bool canRestore(const Partition* p);
static Partition* createRestorePartition(const Device& device, PartitionNode& parent, qint64 start, const QString& fileName);

View File

@ -55,8 +55,8 @@ public:
void preview() override;
void undo() override;
virtual bool targets(const Device& d) const override;
virtual bool targets(const Partition& p) const override;
bool targets(const Device& d) const override;
bool targets(const Partition& p) const override;
protected:
Partition& labeledPartition() {

View File

@ -58,8 +58,8 @@ public:
void preview() override;
void undo() override;
virtual bool targets(const Device& d) const override;
virtual bool targets(const Partition& p) const override;
bool targets(const Device& d) const override;
bool targets(const Partition& p) const override;
protected:
Partition& flagPartition() {

View File

@ -42,14 +42,14 @@ private:
DummyBackend(QObject* parent, const QList<QVariant>& args);
public:
virtual void initFSSupport() override;
void initFSSupport() override;
virtual QList<Device*> scanDevices(bool excludeReadOnly = false) override;
virtual CoreBackendDevice* openDevice(const QString& device_node) override;
virtual CoreBackendDevice* openDeviceExclusive(const QString& device_node) override;
virtual bool closeDevice(CoreBackendDevice* core_device) override;
virtual Device* scanDevice(const QString& device_node) override;
virtual FileSystem::Type detectFileSystem(const QString& deviceNode) override;
QList<Device*> scanDevices(bool excludeReadOnly = false) override;
CoreBackendDevice* openDevice(const QString& device_node) override;
CoreBackendDevice* openDeviceExclusive(const QString& device_node) override;
bool closeDevice(CoreBackendDevice* core_device) override;
Device* scanDevice(const QString& device_node) override;
FileSystem::Type detectFileSystem(const QString& deviceNode) override;
};
#endif

View File

@ -37,16 +37,16 @@ public:
~DummyDevice();
public:
virtual bool open() override;
virtual bool openExclusive() override;
virtual bool close() override;
bool open() override;
bool openExclusive() override;
bool close() override;
virtual CoreBackendPartitionTable* openPartitionTable() override;
CoreBackendPartitionTable* openPartitionTable() override;
virtual bool createPartitionTable(Report& report, const PartitionTable& ptable) override;
bool createPartitionTable(Report& report, const PartitionTable& ptable) override;
virtual bool readSectors(void* buffer, qint64 offset, qint64 numSectors) override;
virtual bool writeSectors(void* buffer, qint64 offset, qint64 numSectors) override;
bool readSectors(void* buffer, qint64 offset, qint64 numSectors) override;
bool writeSectors(void* buffer, qint64 offset, qint64 numSectors) override;
};
#endif

View File

@ -33,7 +33,7 @@ public:
DummyPartition();
public:
virtual bool setFlag(Report& report, PartitionTable::Flag flag, bool state) override;
bool setFlag(Report& report, PartitionTable::Flag flag, bool state) override;
};

View File

@ -36,20 +36,20 @@ public:
~DummyPartitionTable();
public:
virtual bool open() override;
bool open() override;
virtual bool commit(quint32 timeout = 10) override;
bool commit(quint32 timeout = 10) override;
virtual CoreBackendPartition* getExtendedPartition() override;
virtual CoreBackendPartition* getPartitionBySector(qint64 sector) override;
CoreBackendPartition* getExtendedPartition() override;
CoreBackendPartition* getPartitionBySector(qint64 sector) override;
virtual QString createPartition(Report& report, const Partition& partition) override;
virtual bool deletePartition(Report& report, const Partition& partition) override;
virtual bool updateGeometry(Report& report, const Partition& partition, qint64 sector_start, qint64 sector_end) override;
virtual bool clobberFileSystem(Report& report, const Partition& partition) override;
virtual bool resizeFileSystem(Report& report, const Partition& partition, qint64 newLength) override;
virtual FileSystem::Type detectFileSystemBySector(Report& report, const Device& device, qint64 sector) override;
virtual bool setPartitionSystemType(Report& report, const Partition& partition) override;
QString createPartition(Report& report, const Partition& partition) override;
bool deletePartition(Report& report, const Partition& partition) override;
bool updateGeometry(Report& report, const Partition& partition, qint64 sector_start, qint64 sector_end) override;
bool clobberFileSystem(Report& report, const Partition& partition) override;
bool resizeFileSystem(Report& report, const Partition& partition, qint64 newLength) override;
FileSystem::Type detectFileSystemBySector(Report& report, const Device& device, qint64 sector) override;
bool setPartitionSystemType(Report& report, const Partition& partition) override;
};
#endif

View File

@ -59,14 +59,14 @@ private:
LibPartedBackend(QObject* parent, const QList<QVariant>& args);
public:
virtual void initFSSupport() override;
void initFSSupport() override;
virtual CoreBackendDevice* openDevice(const QString& device_node) override;
virtual CoreBackendDevice* openDeviceExclusive(const QString& device_node) override;
virtual bool closeDevice(CoreBackendDevice* core_device) override;
virtual Device* scanDevice(const QString& device_node) override;
virtual QList<Device*> scanDevices(bool excludeReadOnly = false) override;
virtual FileSystem::Type detectFileSystem(const QString& partitionPath) override;
CoreBackendDevice* openDevice(const QString& device_node) override;
CoreBackendDevice* openDeviceExclusive(const QString& device_node) override;
bool closeDevice(CoreBackendDevice* core_device) override;
Device* scanDevice(const QString& device_node) override;
QList<Device*> scanDevices(bool excludeReadOnly = false) override;
FileSystem::Type detectFileSystem(const QString& partitionPath) override;
static QString lastPartedExceptionMessage();

View File

@ -39,16 +39,16 @@ public:
~LibPartedDevice();
public:
virtual bool open() override;
virtual bool openExclusive() override;
virtual bool close() override;
bool open() override;
bool openExclusive() override;
bool close() override;
virtual CoreBackendPartitionTable* openPartitionTable() override;
CoreBackendPartitionTable* openPartitionTable() override;
virtual bool createPartitionTable(Report& report, const PartitionTable& ptable) override;
bool createPartitionTable(Report& report, const PartitionTable& ptable) override;
virtual bool readSectors(void* buffer, qint64 offset, qint64 numSectors) override;
virtual bool writeSectors(void* buffer, qint64 offset, qint64 numSectors) override;
bool readSectors(void* buffer, qint64 offset, qint64 numSectors) override;
bool writeSectors(void* buffer, qint64 offset, qint64 numSectors) override;
protected:
PedDevice* pedDevice() {

View File

@ -35,7 +35,7 @@ public:
LibPartedPartition(PedPartition* ped_partition);
public:
virtual bool setFlag(Report& report, PartitionTable::Flag flag, bool state) override;
bool setFlag(Report& report, PartitionTable::Flag flag, bool state) override;
private:
PedPartition* pedPartition() {

View File

@ -38,21 +38,21 @@ public:
~LibPartedPartitionTable();
public:
virtual bool open() override;
bool open() override;
virtual bool commit(quint32 timeout = 10) override;
bool commit(quint32 timeout = 10) override;
static bool commit(PedDisk* pd, quint32 timeout = 10);
virtual CoreBackendPartition* getExtendedPartition() override;
virtual CoreBackendPartition* getPartitionBySector(qint64 sector) override;
CoreBackendPartition* getExtendedPartition() override;
CoreBackendPartition* getPartitionBySector(qint64 sector) override;
virtual QString createPartition(Report& report, const Partition& partition) override;
virtual bool deletePartition(Report& report, const Partition& partition) override;
virtual bool updateGeometry(Report& report, const Partition& partition, qint64 sector_start, qint64 sector_end) override;
virtual bool clobberFileSystem(Report& report, const Partition& partition) override;
virtual bool resizeFileSystem(Report& report, const Partition& partition, qint64 newLength) override;
virtual FileSystem::Type detectFileSystemBySector(Report& report, const Device& device, qint64 sector) override;
virtual bool setPartitionSystemType(Report& report, const Partition& partition) override;
QString createPartition(Report& report, const Partition& partition) override;
bool deletePartition(Report& report, const Partition& partition) override;
bool updateGeometry(Report& report, const Partition& partition, qint64 sector_start, qint64 sector_end) override;
bool clobberFileSystem(Report& report, const Partition& partition) override;
bool resizeFileSystem(Report& report, const Partition& partition, qint64 newLength) override;
FileSystem::Type detectFileSystemBySector(Report& report, const Device& device, qint64 sector) override;
bool setPartitionSystemType(Report& report, const Partition& partition) override;
private:
PedDevice* pedDevice() {