Remove reduntant virtual keywords.
This commit is contained in:
parent
094042cc75
commit
142ff07938
|
@ -43,16 +43,16 @@ public:
|
||||||
~CopySourceDevice();
|
~CopySourceDevice();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool open() override;
|
bool open() override;
|
||||||
virtual qint32 sectorSize() const override;
|
qint32 sectorSize() const override;
|
||||||
virtual bool readSectors(void* buffer, qint64 readOffset, qint64 numSectors) override;
|
bool readSectors(void* buffer, qint64 readOffset, qint64 numSectors) override;
|
||||||
virtual qint64 length() const override;
|
qint64 length() const override;
|
||||||
virtual bool overlaps(const CopyTarget& target) 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 */
|
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 */
|
return m_LastSector; /**< @return last sector to copy */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -39,20 +39,20 @@ public:
|
||||||
CopySourceFile(const QString& filename, qint32 sectorsize);
|
CopySourceFile(const QString& filename, qint32 sectorsize);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool open() override;
|
bool open() override;
|
||||||
virtual bool readSectors(void* buffer, qint64 readOffset, qint64 numSectors) override;
|
bool readSectors(void* buffer, qint64 readOffset, qint64 numSectors) override;
|
||||||
virtual qint64 length() const override;
|
qint64 length() const override;
|
||||||
|
|
||||||
virtual qint32 sectorSize() const override {
|
qint32 sectorSize() const override {
|
||||||
return m_SectorSize; /**< @return the file's sector size */
|
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 */
|
return false; /**< @return false for file */
|
||||||
}
|
}
|
||||||
virtual qint64 firstSector() const override {
|
qint64 firstSector() const override {
|
||||||
return 0; /**< @return 0 for file */
|
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() */
|
return length(); /**< @return equal to length for file. @see length() */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,20 +37,20 @@ public:
|
||||||
CopySourceShred(qint64 size, qint32 sectorsize, bool randomShred);
|
CopySourceShred(qint64 size, qint32 sectorsize, bool randomShred);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool open() override;
|
bool open() override;
|
||||||
virtual bool readSectors(void* buffer, qint64 readOffset, qint64 numSectors) override;
|
bool readSectors(void* buffer, qint64 readOffset, qint64 numSectors) override;
|
||||||
virtual qint64 length() const override;
|
qint64 length() const override;
|
||||||
|
|
||||||
virtual qint32 sectorSize() const override {
|
qint32 sectorSize() const override {
|
||||||
return m_SectorSize; /**< @return the file's sector size */
|
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 */
|
return false; /**< @return false for shred source */
|
||||||
}
|
}
|
||||||
virtual qint64 firstSector() const override {
|
qint64 firstSector() const override {
|
||||||
return 0; /**< @return 0 for shred source */
|
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() */
|
return length(); /**< @return equal to length for shred source. @see length() */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,13 +45,13 @@ public:
|
||||||
~CopyTargetDevice();
|
~CopyTargetDevice();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool open() override;
|
bool open() override;
|
||||||
virtual qint32 sectorSize() const override;
|
qint32 sectorSize() const override;
|
||||||
virtual bool writeSectors(void* buffer, qint64 writeOffset, qint64 numSectors) override;
|
bool writeSectors(void* buffer, qint64 writeOffset, qint64 numSectors) override;
|
||||||
virtual qint64 firstSector() const override {
|
qint64 firstSector() const override {
|
||||||
return m_FirstSector; /**< @return the first sector to write to */
|
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 */
|
return m_LastSector; /**< @return the last sector to write to */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -39,16 +39,16 @@ public:
|
||||||
CopyTargetFile(const QString& filename, qint32 sectorsize);
|
CopyTargetFile(const QString& filename, qint32 sectorsize);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool open() override;
|
bool open() override;
|
||||||
virtual bool writeSectors(void* buffer, qint64 writeOffset, qint64 numSectors) 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 */
|
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 */
|
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 */
|
return sectorsWritten(); /**< @return the number of sectors written so far */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ Q_SIGNALS:
|
||||||
void progress(const QString& device_node, int progress);
|
void progress(const QString& device_node, int progress);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void run() override;
|
void run() override;
|
||||||
OperationStack& operationStack() {
|
OperationStack& operationStack() {
|
||||||
return m_OperationStack;
|
return m_OperationStack;
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,57 +41,57 @@ public:
|
||||||
btrfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
btrfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual void init() override;
|
void init() override;
|
||||||
|
|
||||||
virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
|
qint64 readUsedCapacity(const QString& deviceNode) const override;
|
||||||
virtual bool check(Report& report, const QString& deviceNode) const override;
|
bool check(Report& report, const QString& deviceNode) const override;
|
||||||
virtual bool create(Report& report, const QString& deviceNode) const override;
|
bool create(Report& report, const QString& deviceNode) const override;
|
||||||
virtual bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
|
bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
|
||||||
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
||||||
virtual bool updateUUID(Report& report, const QString& deviceNode) const override;
|
bool updateUUID(Report& report, const QString& deviceNode) const override;
|
||||||
|
|
||||||
virtual CommandSupportType supportGetUsed() const override {
|
CommandSupportType supportGetUsed() const override {
|
||||||
return m_GetUsed;
|
return m_GetUsed;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetLabel() const override {
|
CommandSupportType supportGetLabel() const override {
|
||||||
return m_GetLabel;
|
return m_GetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCreate() const override {
|
CommandSupportType supportCreate() const override {
|
||||||
return m_Create;
|
return m_Create;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGrow() const override {
|
CommandSupportType supportGrow() const override {
|
||||||
return m_Grow;
|
return m_Grow;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportShrink() const override {
|
CommandSupportType supportShrink() const override {
|
||||||
return m_Shrink;
|
return m_Shrink;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportMove() const override {
|
CommandSupportType supportMove() const override {
|
||||||
return m_Move;
|
return m_Move;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCheck() const override {
|
CommandSupportType supportCheck() const override {
|
||||||
return m_Check;
|
return m_Check;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCopy() const override {
|
CommandSupportType supportCopy() const override {
|
||||||
return m_Copy;
|
return m_Copy;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportBackup() const override {
|
CommandSupportType supportBackup() const override {
|
||||||
return m_Backup;
|
return m_Backup;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportSetLabel() const override {
|
CommandSupportType supportSetLabel() const override {
|
||||||
return m_SetLabel;
|
return m_SetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportUpdateUUID() const override {
|
CommandSupportType supportUpdateUUID() const override {
|
||||||
return m_UpdateUUID;
|
return m_UpdateUUID;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetUUID() const override {
|
CommandSupportType supportGetUUID() const override {
|
||||||
return m_GetUUID;
|
return m_GetUUID;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual qint64 minCapacity() const override;
|
qint64 minCapacity() const override;
|
||||||
virtual qint64 maxCapacity() const override;
|
qint64 maxCapacity() const override;
|
||||||
virtual qint64 maxLabelLength() const override;
|
qint64 maxLabelLength() const override;
|
||||||
virtual SupportTool supportToolName() const override;
|
SupportTool supportToolName() const override;
|
||||||
virtual bool supportToolFound() const override;
|
bool supportToolFound() const override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static CommandSupportType m_GetUsed;
|
static CommandSupportType m_GetUsed;
|
||||||
|
|
|
@ -40,57 +40,57 @@ public:
|
||||||
exfat(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
exfat(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual void init() override;
|
void init() override;
|
||||||
|
|
||||||
// virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
|
// qint64 readUsedCapacity(const QString& deviceNode) const override;
|
||||||
virtual bool check(Report& report, const QString& deviceNode) const override;
|
bool check(Report& report, const QString& deviceNode) const override;
|
||||||
virtual bool create(Report& report, const QString& deviceNode) const override;
|
bool create(Report& report, const QString& deviceNode) const override;
|
||||||
// virtual bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
|
// bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
|
||||||
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
||||||
virtual bool updateUUID(Report& report, const QString& deviceNode) const override;
|
bool updateUUID(Report& report, const QString& deviceNode) const override;
|
||||||
|
|
||||||
virtual CommandSupportType supportGetUsed() const override {
|
CommandSupportType supportGetUsed() const override {
|
||||||
return m_GetUsed;
|
return m_GetUsed;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetLabel() const override {
|
CommandSupportType supportGetLabel() const override {
|
||||||
return m_GetLabel;
|
return m_GetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCreate() const override {
|
CommandSupportType supportCreate() const override {
|
||||||
return m_Create;
|
return m_Create;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGrow() const override {
|
CommandSupportType supportGrow() const override {
|
||||||
return m_Grow;
|
return m_Grow;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportShrink() const override {
|
CommandSupportType supportShrink() const override {
|
||||||
return m_Shrink;
|
return m_Shrink;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportMove() const override {
|
CommandSupportType supportMove() const override {
|
||||||
return m_Move;
|
return m_Move;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCheck() const override {
|
CommandSupportType supportCheck() const override {
|
||||||
return m_Check;
|
return m_Check;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCopy() const override {
|
CommandSupportType supportCopy() const override {
|
||||||
return m_Copy;
|
return m_Copy;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportBackup() const override {
|
CommandSupportType supportBackup() const override {
|
||||||
return m_Backup;
|
return m_Backup;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportSetLabel() const override {
|
CommandSupportType supportSetLabel() const override {
|
||||||
return m_SetLabel;
|
return m_SetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportUpdateUUID() const override {
|
CommandSupportType supportUpdateUUID() const override {
|
||||||
return m_UpdateUUID;
|
return m_UpdateUUID;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetUUID() const override {
|
CommandSupportType supportGetUUID() const override {
|
||||||
return m_GetUUID;
|
return m_GetUUID;
|
||||||
}
|
}
|
||||||
|
|
||||||
// virtual qint64 minCapacity() const;
|
// qint64 minCapacity() const;
|
||||||
virtual qint64 maxCapacity() const override;
|
qint64 maxCapacity() const override;
|
||||||
virtual qint64 maxLabelLength() const override;
|
qint64 maxLabelLength() const override;
|
||||||
virtual SupportTool supportToolName() const override;
|
SupportTool supportToolName() const override;
|
||||||
virtual bool supportToolFound() const override;
|
bool supportToolFound() const override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static CommandSupportType m_GetUsed;
|
static CommandSupportType m_GetUsed;
|
||||||
|
|
|
@ -40,56 +40,56 @@ public:
|
||||||
ext2(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label, FileSystem::Type t = FileSystem::Ext2);
|
ext2(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label, FileSystem::Type t = FileSystem::Ext2);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual void init() override;
|
void init() override;
|
||||||
|
|
||||||
virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
|
qint64 readUsedCapacity(const QString& deviceNode) const override;
|
||||||
virtual bool check(Report& report, const QString& deviceNode) const override;
|
bool check(Report& report, const QString& deviceNode) const override;
|
||||||
virtual bool create(Report& report, const QString& deviceNode) const override;
|
bool create(Report& report, const QString& deviceNode) const override;
|
||||||
virtual bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
|
bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
|
||||||
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
||||||
virtual bool updateUUID(Report& report, const QString& deviceNode) const override;
|
bool updateUUID(Report& report, const QString& deviceNode) const override;
|
||||||
|
|
||||||
virtual CommandSupportType supportGetUsed() const override {
|
CommandSupportType supportGetUsed() const override {
|
||||||
return m_GetUsed;
|
return m_GetUsed;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetLabel() const override {
|
CommandSupportType supportGetLabel() const override {
|
||||||
return m_GetLabel;
|
return m_GetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCreate() const override {
|
CommandSupportType supportCreate() const override {
|
||||||
return m_Create;
|
return m_Create;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGrow() const override {
|
CommandSupportType supportGrow() const override {
|
||||||
return m_Grow;
|
return m_Grow;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportShrink() const override {
|
CommandSupportType supportShrink() const override {
|
||||||
return m_Shrink;
|
return m_Shrink;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportMove() const override {
|
CommandSupportType supportMove() const override {
|
||||||
return m_Move;
|
return m_Move;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCheck() const override {
|
CommandSupportType supportCheck() const override {
|
||||||
return m_Check;
|
return m_Check;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCopy() const override {
|
CommandSupportType supportCopy() const override {
|
||||||
return m_Copy;
|
return m_Copy;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportBackup() const override {
|
CommandSupportType supportBackup() const override {
|
||||||
return m_Backup;
|
return m_Backup;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportSetLabel() const override {
|
CommandSupportType supportSetLabel() const override {
|
||||||
return m_SetLabel;
|
return m_SetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportUpdateUUID() const override {
|
CommandSupportType supportUpdateUUID() const override {
|
||||||
return m_UpdateUUID;
|
return m_UpdateUUID;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetUUID() const override {
|
CommandSupportType supportGetUUID() const override {
|
||||||
return m_GetUUID;
|
return m_GetUUID;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual qint64 maxCapacity() const override;
|
qint64 maxCapacity() const override;
|
||||||
virtual qint64 maxLabelLength() const override;
|
qint64 maxLabelLength() const override;
|
||||||
virtual SupportTool supportToolName() const override;
|
SupportTool supportToolName() const override;
|
||||||
virtual bool supportToolFound() const override;
|
bool supportToolFound() const override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static CommandSupportType m_GetUsed;
|
static CommandSupportType m_GetUsed;
|
||||||
|
|
|
@ -43,8 +43,8 @@ public:
|
||||||
ext3(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
ext3(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool create(Report& report, const QString& deviceNode) const override;
|
bool create(Report& report, const QString& deviceNode) const override;
|
||||||
virtual qint64 maxCapacity() const override;
|
qint64 maxCapacity() const override;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,8 +43,8 @@ public:
|
||||||
ext4(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
ext4(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool create(Report& report, const QString& deviceNode) const override;
|
bool create(Report& report, const QString& deviceNode) const override;
|
||||||
virtual qint64 maxCapacity() const override;
|
qint64 maxCapacity() const override;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -44,22 +44,22 @@ public:
|
||||||
|
|
||||||
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;
|
return m_Create;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGrow() const override {
|
CommandSupportType supportGrow() const override {
|
||||||
return m_Grow;
|
return m_Grow;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportShrink() const override {
|
CommandSupportType supportShrink() const override {
|
||||||
return m_Shrink;
|
return m_Shrink;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportMove() const override {
|
CommandSupportType supportMove() const override {
|
||||||
return m_Move;
|
return m_Move;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool supportToolFound() const override {
|
bool supportToolFound() const override {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,58 +40,58 @@ public:
|
||||||
f2fs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
f2fs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual void init() override;
|
void init() override;
|
||||||
|
|
||||||
// virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
|
// qint64 readUsedCapacity(const QString& deviceNode) const override;
|
||||||
virtual bool check(Report& report, const QString& deviceNode) const override;
|
bool check(Report& report, const QString& deviceNode) const override;
|
||||||
virtual bool create(Report& report, const QString& deviceNode) const override;
|
bool create(Report& report, const QString& deviceNode) const override;
|
||||||
// virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
|
// qint64 readUsedCapacity(const QString& deviceNode) const override;
|
||||||
// virtual bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
|
// bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
|
||||||
// virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
// bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
||||||
// virtual bool updateUUID(Report& report, const QString& deviceNode) const override;
|
// bool updateUUID(Report& report, const QString& deviceNode) const override;
|
||||||
|
|
||||||
virtual CommandSupportType supportGetUsed() const override {
|
CommandSupportType supportGetUsed() const override {
|
||||||
return m_GetUsed;
|
return m_GetUsed;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetLabel() const override {
|
CommandSupportType supportGetLabel() const override {
|
||||||
return m_GetLabel;
|
return m_GetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCreate() const override {
|
CommandSupportType supportCreate() const override {
|
||||||
return m_Create;
|
return m_Create;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGrow() const override {
|
CommandSupportType supportGrow() const override {
|
||||||
return m_Grow;
|
return m_Grow;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportShrink() const override {
|
CommandSupportType supportShrink() const override {
|
||||||
return m_Shrink;
|
return m_Shrink;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportMove() const override {
|
CommandSupportType supportMove() const override {
|
||||||
return m_Move;
|
return m_Move;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCheck() const override {
|
CommandSupportType supportCheck() const override {
|
||||||
return m_Check;
|
return m_Check;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCopy() const override {
|
CommandSupportType supportCopy() const override {
|
||||||
return m_Copy;
|
return m_Copy;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportBackup() const override {
|
CommandSupportType supportBackup() const override {
|
||||||
return m_Backup;
|
return m_Backup;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportSetLabel() const override {
|
CommandSupportType supportSetLabel() const override {
|
||||||
return m_SetLabel;
|
return m_SetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportUpdateUUID() const override {
|
CommandSupportType supportUpdateUUID() const override {
|
||||||
return m_UpdateUUID;
|
return m_UpdateUUID;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetUUID() const override {
|
CommandSupportType supportGetUUID() const override {
|
||||||
return m_GetUUID;
|
return m_GetUUID;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual qint64 minCapacity() const override;
|
qint64 minCapacity() const override;
|
||||||
virtual qint64 maxCapacity() const override;
|
qint64 maxCapacity() const override;
|
||||||
virtual qint64 maxLabelLength() const override;
|
qint64 maxLabelLength() const override;
|
||||||
virtual SupportTool supportToolName() const override;
|
SupportTool supportToolName() const override;
|
||||||
virtual bool supportToolFound() const override;
|
bool supportToolFound() const override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static CommandSupportType m_GetUsed;
|
static CommandSupportType m_GetUsed;
|
||||||
|
|
|
@ -40,56 +40,56 @@ public:
|
||||||
fat16(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label, FileSystem::Type t = FileSystem::Fat16);
|
fat16(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label, FileSystem::Type t = FileSystem::Fat16);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual void init() override;
|
void init() override;
|
||||||
|
|
||||||
virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
|
qint64 readUsedCapacity(const QString& deviceNode) const override;
|
||||||
virtual bool check(Report& report, const QString& deviceNode) const override;
|
bool check(Report& report, const QString& deviceNode) const override;
|
||||||
virtual bool create(Report& report, const QString& deviceNode) const override;
|
bool create(Report& report, const QString& deviceNode) const override;
|
||||||
virtual bool updateUUID(Report& report, const QString& deviceNode) const override;
|
bool updateUUID(Report& report, const QString& deviceNode) const override;
|
||||||
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
||||||
|
|
||||||
virtual CommandSupportType supportGetUsed() const override {
|
CommandSupportType supportGetUsed() const override {
|
||||||
return m_GetUsed;
|
return m_GetUsed;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetLabel() const override {
|
CommandSupportType supportGetLabel() const override {
|
||||||
return m_GetLabel;
|
return m_GetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportSetLabel() const override {
|
CommandSupportType supportSetLabel() const override {
|
||||||
return m_SetLabel;
|
return m_SetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCreate() const override {
|
CommandSupportType supportCreate() const override {
|
||||||
return m_Create;
|
return m_Create;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGrow() const override {
|
CommandSupportType supportGrow() const override {
|
||||||
return m_Grow;
|
return m_Grow;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportShrink() const override {
|
CommandSupportType supportShrink() const override {
|
||||||
return m_Shrink;
|
return m_Shrink;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportMove() const override {
|
CommandSupportType supportMove() const override {
|
||||||
return m_Move;
|
return m_Move;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCheck() const override {
|
CommandSupportType supportCheck() const override {
|
||||||
return m_Check;
|
return m_Check;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCopy() const override {
|
CommandSupportType supportCopy() const override {
|
||||||
return m_Copy;
|
return m_Copy;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportBackup() const override {
|
CommandSupportType supportBackup() const override {
|
||||||
return m_Backup;
|
return m_Backup;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportUpdateUUID() const override {
|
CommandSupportType supportUpdateUUID() const override {
|
||||||
return m_UpdateUUID;
|
return m_UpdateUUID;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetUUID() const override {
|
CommandSupportType supportGetUUID() const override {
|
||||||
return m_GetUUID;
|
return m_GetUUID;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual qint64 minCapacity() const override;
|
qint64 minCapacity() const override;
|
||||||
virtual qint64 maxCapacity() const override;
|
qint64 maxCapacity() const override;
|
||||||
virtual qint64 maxLabelLength() const override;
|
qint64 maxLabelLength() const override;
|
||||||
virtual SupportTool supportToolName() const override;
|
SupportTool supportToolName() const override;
|
||||||
virtual bool supportToolFound() const override;
|
bool supportToolFound() const override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static CommandSupportType m_GetUsed;
|
static CommandSupportType m_GetUsed;
|
||||||
|
|
|
@ -43,11 +43,11 @@ public:
|
||||||
fat32(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
fat32(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool create(Report& report, const QString& deviceNode) const override;
|
bool create(Report& report, const QString& deviceNode) const override;
|
||||||
virtual bool updateUUID(Report& report, const QString& deviceNode) const override;
|
bool updateUUID(Report& report, const QString& deviceNode) const override;
|
||||||
|
|
||||||
virtual qint64 minCapacity() const override;
|
qint64 minCapacity() const override;
|
||||||
virtual qint64 maxCapacity() const override;
|
qint64 maxCapacity() const override;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
30
src/fs/hfs.h
30
src/fs/hfs.h
|
@ -40,40 +40,40 @@ public:
|
||||||
hfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
hfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
||||||
|
|
||||||
public:
|
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 bool create(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;
|
return m_GetUsed;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetLabel() const override {
|
CommandSupportType supportGetLabel() const override {
|
||||||
return m_GetLabel;
|
return m_GetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCreate() const override {
|
CommandSupportType supportCreate() const override {
|
||||||
return m_Create;
|
return m_Create;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportShrink() const override {
|
CommandSupportType supportShrink() const override {
|
||||||
return m_Shrink;
|
return m_Shrink;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportMove() const override {
|
CommandSupportType supportMove() const override {
|
||||||
return m_Move;
|
return m_Move;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCheck() const override {
|
CommandSupportType supportCheck() const override {
|
||||||
return m_Check;
|
return m_Check;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCopy() const override {
|
CommandSupportType supportCopy() const override {
|
||||||
return m_Copy;
|
return m_Copy;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportBackup() const override {
|
CommandSupportType supportBackup() const override {
|
||||||
return m_Backup;
|
return m_Backup;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual qint64 maxCapacity() const override;
|
qint64 maxCapacity() const override;
|
||||||
virtual qint64 maxLabelLength() const override;
|
qint64 maxLabelLength() const override;
|
||||||
virtual SupportTool supportToolName() const override;
|
SupportTool supportToolName() const override;
|
||||||
virtual bool supportToolFound() const override;
|
bool supportToolFound() const override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static CommandSupportType m_GetUsed;
|
static CommandSupportType m_GetUsed;
|
||||||
|
|
|
@ -40,33 +40,33 @@ public:
|
||||||
hfsplus(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
hfsplus(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
||||||
|
|
||||||
public:
|
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;
|
return m_GetUsed;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportShrink() const override {
|
CommandSupportType supportShrink() const override {
|
||||||
return m_Shrink;
|
return m_Shrink;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportMove() const override {
|
CommandSupportType supportMove() const override {
|
||||||
return m_Move;
|
return m_Move;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCheck() const override {
|
CommandSupportType supportCheck() const override {
|
||||||
return m_Check;
|
return m_Check;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCopy() const override {
|
CommandSupportType supportCopy() const override {
|
||||||
return m_Copy;
|
return m_Copy;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportBackup() const override {
|
CommandSupportType supportBackup() const override {
|
||||||
return m_Backup;
|
return m_Backup;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual qint64 maxCapacity() const override;
|
qint64 maxCapacity() const override;
|
||||||
virtual qint64 maxLabelLength() const override;
|
qint64 maxLabelLength() const override;
|
||||||
virtual SupportTool supportToolName() const override;
|
SupportTool supportToolName() const override;
|
||||||
virtual bool supportToolFound() const override;
|
bool supportToolFound() const override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static CommandSupportType m_GetUsed;
|
static CommandSupportType m_GetUsed;
|
||||||
|
|
|
@ -40,45 +40,45 @@ public:
|
||||||
hpfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
hpfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual CommandSupportType supportGetUsed() const override {
|
CommandSupportType supportGetUsed() const override {
|
||||||
return m_GetUsed;
|
return m_GetUsed;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetLabel() const override {
|
CommandSupportType supportGetLabel() const override {
|
||||||
return m_GetLabel;
|
return m_GetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCreate() const override {
|
CommandSupportType supportCreate() const override {
|
||||||
return m_Create;
|
return m_Create;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGrow() const override {
|
CommandSupportType supportGrow() const override {
|
||||||
return m_Grow;
|
return m_Grow;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportShrink() const override {
|
CommandSupportType supportShrink() const override {
|
||||||
return m_Shrink;
|
return m_Shrink;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportMove() const override {
|
CommandSupportType supportMove() const override {
|
||||||
return m_Move;
|
return m_Move;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCheck() const override {
|
CommandSupportType supportCheck() const override {
|
||||||
return m_Check;
|
return m_Check;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCopy() const override {
|
CommandSupportType supportCopy() const override {
|
||||||
return m_Copy;
|
return m_Copy;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportBackup() const override {
|
CommandSupportType supportBackup() const override {
|
||||||
return m_Backup;
|
return m_Backup;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportSetLabel() const override {
|
CommandSupportType supportSetLabel() const override {
|
||||||
return m_SetLabel;
|
return m_SetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportUpdateUUID() const override {
|
CommandSupportType supportUpdateUUID() const override {
|
||||||
return m_UpdateUUID;
|
return m_UpdateUUID;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetUUID() const override {
|
CommandSupportType supportGetUUID() const override {
|
||||||
return m_GetUUID;
|
return m_GetUUID;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual qint64 maxCapacity() const override;
|
qint64 maxCapacity() const override;
|
||||||
virtual bool supportToolFound() const override {
|
bool supportToolFound() const override {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
40
src/fs/jfs.h
40
src/fs/jfs.h
|
@ -40,47 +40,47 @@ public:
|
||||||
jfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
jfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual void init() override;
|
void init() override;
|
||||||
|
|
||||||
virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
|
qint64 readUsedCapacity(const QString& deviceNode) const override;
|
||||||
virtual bool check(Report& report, const QString& deviceNode) const override;
|
bool check(Report& report, const QString& deviceNode) const override;
|
||||||
virtual bool create(Report& report, const QString& deviceNode) const override;
|
bool create(Report& report, const QString& deviceNode) const override;
|
||||||
virtual bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
|
bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
|
||||||
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
||||||
|
|
||||||
virtual CommandSupportType supportGetUsed() const override {
|
CommandSupportType supportGetUsed() const override {
|
||||||
return m_GetUsed;
|
return m_GetUsed;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetLabel() const override {
|
CommandSupportType supportGetLabel() const override {
|
||||||
return m_GetLabel;
|
return m_GetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCreate() const override {
|
CommandSupportType supportCreate() const override {
|
||||||
return m_Create;
|
return m_Create;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGrow() const override {
|
CommandSupportType supportGrow() const override {
|
||||||
return m_Grow;
|
return m_Grow;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportMove() const override {
|
CommandSupportType supportMove() const override {
|
||||||
return m_Move;
|
return m_Move;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCheck() const override {
|
CommandSupportType supportCheck() const override {
|
||||||
return m_Check;
|
return m_Check;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCopy() const override {
|
CommandSupportType supportCopy() const override {
|
||||||
return m_Copy;
|
return m_Copy;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportBackup() const override {
|
CommandSupportType supportBackup() const override {
|
||||||
return m_Backup;
|
return m_Backup;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportSetLabel() const override {
|
CommandSupportType supportSetLabel() const override {
|
||||||
return m_SetLabel;
|
return m_SetLabel;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual qint64 minCapacity() const override;
|
qint64 minCapacity() const override;
|
||||||
virtual qint64 maxCapacity() const override;
|
qint64 maxCapacity() const override;
|
||||||
virtual qint64 maxLabelLength() const override;
|
qint64 maxLabelLength() const override;
|
||||||
virtual SupportTool supportToolName() const override;
|
SupportTool supportToolName() const override;
|
||||||
virtual bool supportToolFound() const override;
|
bool supportToolFound() const override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static CommandSupportType m_GetUsed;
|
static CommandSupportType m_GetUsed;
|
||||||
|
|
|
@ -40,52 +40,52 @@ public:
|
||||||
linuxswap(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
linuxswap(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual void init() override;
|
void init() override;
|
||||||
|
|
||||||
virtual bool create(Report& report, const QString& deviceNode) const override;
|
bool create(Report& report, const QString& deviceNode) const override;
|
||||||
virtual bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
|
bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
|
||||||
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
||||||
virtual bool copy(Report& report, const QString& targetDeviceNode, const QString& sourceDeviceNode) const override;
|
bool copy(Report& report, const QString& targetDeviceNode, const QString& sourceDeviceNode) const override;
|
||||||
virtual bool updateUUID(Report& report, const QString& deviceNode) const override;
|
bool updateUUID(Report& report, const QString& deviceNode) const override;
|
||||||
|
|
||||||
virtual bool canMount(const QString& deviceNode, const QString& mountPoint) const override;
|
bool canMount(const QString& deviceNode, const QString& mountPoint) const override;
|
||||||
virtual bool mount(Report& report, const QString& deviceNode, const QString& mountPoint) override;
|
bool mount(Report& report, const QString& deviceNode, const QString& mountPoint) override;
|
||||||
virtual bool unmount(Report& report, const QString& deviceNode) override;
|
bool unmount(Report& report, const QString& deviceNode) override;
|
||||||
|
|
||||||
virtual QString mountTitle() const override;
|
QString mountTitle() const override;
|
||||||
virtual QString unmountTitle() const override;
|
QString unmountTitle() const override;
|
||||||
|
|
||||||
virtual CommandSupportType supportCreate() const override {
|
CommandSupportType supportCreate() const override {
|
||||||
return m_Create;
|
return m_Create;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGrow() const override {
|
CommandSupportType supportGrow() const override {
|
||||||
return m_Grow;
|
return m_Grow;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportShrink() const override {
|
CommandSupportType supportShrink() const override {
|
||||||
return m_Shrink;
|
return m_Shrink;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportMove() const override {
|
CommandSupportType supportMove() const override {
|
||||||
return m_Move;
|
return m_Move;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCopy() const override {
|
CommandSupportType supportCopy() const override {
|
||||||
return m_Copy;
|
return m_Copy;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetLabel() const override {
|
CommandSupportType supportGetLabel() const override {
|
||||||
return m_GetLabel;
|
return m_GetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportSetLabel() const override {
|
CommandSupportType supportSetLabel() const override {
|
||||||
return m_SetLabel;
|
return m_SetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportUpdateUUID() const override {
|
CommandSupportType supportUpdateUUID() const override {
|
||||||
return m_UpdateUUID;
|
return m_UpdateUUID;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetUUID() const override {
|
CommandSupportType supportGetUUID() const override {
|
||||||
return m_GetUUID;
|
return m_GetUUID;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual qint64 maxLabelLength() const override;
|
qint64 maxLabelLength() const override;
|
||||||
virtual SupportTool supportToolName() const override;
|
SupportTool supportToolName() const override;
|
||||||
virtual bool supportToolFound() const override;
|
bool supportToolFound() const override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static CommandSupportType m_Create;
|
static CommandSupportType m_Create;
|
||||||
|
|
|
@ -45,54 +45,54 @@ public:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void init() override;
|
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;
|
return m_GetUsed;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetLabel() const override {
|
CommandSupportType supportGetLabel() const override {
|
||||||
return m_GetLabel;
|
return m_GetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCreate() const override {
|
CommandSupportType supportCreate() const override {
|
||||||
return m_Create;
|
return m_Create;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGrow() const override {
|
CommandSupportType supportGrow() const override {
|
||||||
if (!m_isCryptOpen)
|
if (!m_isCryptOpen)
|
||||||
return cmdSupportNone;
|
return cmdSupportNone;
|
||||||
if (m_Grow && m_innerFs)
|
if (m_Grow && m_innerFs)
|
||||||
return m_innerFs->supportGrow();
|
return m_innerFs->supportGrow();
|
||||||
return cmdSupportNone;
|
return cmdSupportNone;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportShrink() const override {
|
CommandSupportType supportShrink() const override {
|
||||||
if (!m_isCryptOpen)
|
if (!m_isCryptOpen)
|
||||||
return cmdSupportNone;
|
return cmdSupportNone;
|
||||||
if (m_Shrink && m_innerFs)
|
if (m_Shrink && m_innerFs)
|
||||||
return m_innerFs->supportShrink();
|
return m_innerFs->supportShrink();
|
||||||
return cmdSupportNone;
|
return cmdSupportNone;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportMove() const override {
|
CommandSupportType supportMove() const override {
|
||||||
return m_Move;
|
return m_Move;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCheck() const override {
|
CommandSupportType supportCheck() const override {
|
||||||
if (!m_isCryptOpen)
|
if (!m_isCryptOpen)
|
||||||
return cmdSupportNone;
|
return cmdSupportNone;
|
||||||
if (m_Check && m_innerFs)
|
if (m_Check && m_innerFs)
|
||||||
return m_innerFs->supportCheck();
|
return m_innerFs->supportCheck();
|
||||||
return cmdSupportNone;
|
return cmdSupportNone;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCopy() const override {
|
CommandSupportType supportCopy() const override {
|
||||||
return m_Copy;
|
return m_Copy;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportBackup() const override {
|
CommandSupportType supportBackup() const override {
|
||||||
return m_Backup;
|
return m_Backup;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportSetLabel() const override {
|
CommandSupportType supportSetLabel() const override {
|
||||||
return m_SetLabel;
|
return m_SetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportUpdateUUID() const override {
|
CommandSupportType supportUpdateUUID() const override {
|
||||||
return m_UpdateUUID;
|
return m_UpdateUUID;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetUUID() const override {
|
CommandSupportType supportGetUUID() const override {
|
||||||
return m_GetUUID;
|
return m_GetUUID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,26 +100,26 @@ public:
|
||||||
m_logicalSectorSize = logicalSectorSize;
|
m_logicalSectorSize = logicalSectorSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool check(Report& report, const QString& deviceNode) const override;
|
bool check(Report& report, const QString& deviceNode) const override;
|
||||||
virtual bool create(Report &report, const QString &deviceNode) const override;
|
bool create(Report &report, const QString &deviceNode) const override;
|
||||||
virtual SupportTool supportToolName() const override;
|
SupportTool supportToolName() const override;
|
||||||
virtual bool supportToolFound() const override;
|
bool supportToolFound() const override;
|
||||||
virtual QString readUUID(const QString& deviceNode) const override;
|
QString readUUID(const QString& deviceNode) const override;
|
||||||
virtual bool updateUUID(Report& report, const QString& deviceNode) const override;
|
bool updateUUID(Report& report, const QString& deviceNode) const override;
|
||||||
virtual bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
|
bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
|
||||||
virtual QString readLabel(const QString& deviceNode) const override;
|
QString readLabel(const QString& deviceNode) const override;
|
||||||
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
||||||
|
|
||||||
virtual QString mountTitle() const override;
|
QString mountTitle() const override;
|
||||||
virtual QString unmountTitle() const override;
|
QString unmountTitle() const override;
|
||||||
QString cryptOpenTitle() const;
|
QString cryptOpenTitle() const;
|
||||||
QString cryptCloseTitle() const;
|
QString cryptCloseTitle() const;
|
||||||
|
|
||||||
void setPassphrase(const QString&);
|
void setPassphrase(const QString&);
|
||||||
QString passphrase() const;
|
QString passphrase() const;
|
||||||
|
|
||||||
virtual bool canMount(const QString&, const QString&) const override;
|
bool canMount(const QString&, const QString&) const override;
|
||||||
virtual bool canUnmount(const QString&) const override;
|
bool canUnmount(const QString&) const override;
|
||||||
bool isMounted() const;
|
bool isMounted() const;
|
||||||
void setMounted(bool mounted);
|
void setMounted(bool mounted);
|
||||||
|
|
||||||
|
@ -134,10 +134,10 @@ public:
|
||||||
void loadInnerFileSystem(const QString& mapperNode);
|
void loadInnerFileSystem(const QString& mapperNode);
|
||||||
void createInnerFileSystem(Type type);
|
void createInnerFileSystem(Type type);
|
||||||
|
|
||||||
virtual bool mount(Report& report, const QString& deviceNode, const QString& mountPoint) override;
|
bool mount(Report& report, const QString& deviceNode, const QString& mountPoint) override;
|
||||||
virtual bool unmount(Report& report, const QString& deviceNode) 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;
|
QString suggestedMapperName(const QString& deviceNode) const;
|
||||||
|
|
||||||
|
|
|
@ -41,56 +41,56 @@ public:
|
||||||
lvm2_pv(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
lvm2_pv(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual void init() override;
|
void init() override;
|
||||||
|
|
||||||
// virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
|
// qint64 readUsedCapacity(const QString& deviceNode) const override;
|
||||||
virtual bool check(Report& report, const QString& deviceNode) const override;
|
bool check(Report& report, const QString& deviceNode) const override;
|
||||||
virtual bool create(Report& report, const QString& deviceNode) const override;
|
bool create(Report& report, const QString& deviceNode) const override;
|
||||||
virtual bool remove(Report& report, const QString& deviceNode) const override;
|
bool remove(Report& report, const QString& deviceNode) const override;
|
||||||
// virtual bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
|
// bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
|
||||||
// virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
// bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
||||||
virtual bool updateUUID(Report& report, const QString& deviceNode) const override;
|
bool updateUUID(Report& report, const QString& deviceNode) const override;
|
||||||
|
|
||||||
virtual CommandSupportType supportGetUsed() const override {
|
CommandSupportType supportGetUsed() const override {
|
||||||
return m_GetUsed;
|
return m_GetUsed;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetLabel() const override {
|
CommandSupportType supportGetLabel() const override {
|
||||||
return m_GetLabel;
|
return m_GetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCreate() const override {
|
CommandSupportType supportCreate() const override {
|
||||||
return m_Create;
|
return m_Create;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGrow() const override {
|
CommandSupportType supportGrow() const override {
|
||||||
return m_Grow;
|
return m_Grow;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportShrink() const override {
|
CommandSupportType supportShrink() const override {
|
||||||
return m_Shrink;
|
return m_Shrink;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportMove() const override {
|
CommandSupportType supportMove() const override {
|
||||||
return m_Move;
|
return m_Move;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCheck() const override {
|
CommandSupportType supportCheck() const override {
|
||||||
return m_Check;
|
return m_Check;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCopy() const override {
|
CommandSupportType supportCopy() const override {
|
||||||
return m_Copy;
|
return m_Copy;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportBackup() const override {
|
CommandSupportType supportBackup() const override {
|
||||||
return m_Backup;
|
return m_Backup;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportSetLabel() const override {
|
CommandSupportType supportSetLabel() const override {
|
||||||
return m_SetLabel;
|
return m_SetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportUpdateUUID() const override {
|
CommandSupportType supportUpdateUUID() const override {
|
||||||
return m_UpdateUUID;
|
return m_UpdateUUID;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetUUID() const override {
|
CommandSupportType supportGetUUID() const override {
|
||||||
return m_GetUUID;
|
return m_GetUUID;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual qint64 maxCapacity() const override;
|
qint64 maxCapacity() const override;
|
||||||
virtual SupportTool supportToolName() const override;
|
SupportTool supportToolName() const override;
|
||||||
virtual bool supportToolFound() const override;
|
bool supportToolFound() const override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static CommandSupportType m_GetUsed;
|
static CommandSupportType m_GetUsed;
|
||||||
|
|
|
@ -41,58 +41,58 @@ public:
|
||||||
nilfs2(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
nilfs2(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual void init() override;
|
void init() override;
|
||||||
|
|
||||||
// virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
|
// qint64 readUsedCapacity(const QString& deviceNode) const override;
|
||||||
virtual bool check(Report& report, const QString& deviceNode) const override;
|
bool check(Report& report, const QString& deviceNode) const override;
|
||||||
virtual bool create(Report& report, const QString& deviceNode) const override;
|
bool create(Report& report, const QString& deviceNode) const override;
|
||||||
virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
|
qint64 readUsedCapacity(const QString& deviceNode) const override;
|
||||||
virtual bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
|
bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
|
||||||
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
||||||
virtual bool updateUUID(Report& report, const QString& deviceNode) const override;
|
bool updateUUID(Report& report, const QString& deviceNode) const override;
|
||||||
|
|
||||||
virtual CommandSupportType supportGetUsed() const override {
|
CommandSupportType supportGetUsed() const override {
|
||||||
return m_GetUsed;
|
return m_GetUsed;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetLabel() const override {
|
CommandSupportType supportGetLabel() const override {
|
||||||
return m_GetLabel;
|
return m_GetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCreate() const override {
|
CommandSupportType supportCreate() const override {
|
||||||
return m_Create;
|
return m_Create;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGrow() const override {
|
CommandSupportType supportGrow() const override {
|
||||||
return m_Grow;
|
return m_Grow;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportShrink() const override {
|
CommandSupportType supportShrink() const override {
|
||||||
return m_Shrink;
|
return m_Shrink;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportMove() const override {
|
CommandSupportType supportMove() const override {
|
||||||
return m_Move;
|
return m_Move;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCheck() const override {
|
CommandSupportType supportCheck() const override {
|
||||||
return m_Check;
|
return m_Check;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCopy() const override {
|
CommandSupportType supportCopy() const override {
|
||||||
return m_Copy;
|
return m_Copy;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportBackup() const override {
|
CommandSupportType supportBackup() const override {
|
||||||
return m_Backup;
|
return m_Backup;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportSetLabel() const override {
|
CommandSupportType supportSetLabel() const override {
|
||||||
return m_SetLabel;
|
return m_SetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportUpdateUUID() const override {
|
CommandSupportType supportUpdateUUID() const override {
|
||||||
return m_UpdateUUID;
|
return m_UpdateUUID;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetUUID() const override {
|
CommandSupportType supportGetUUID() const override {
|
||||||
return m_GetUUID;
|
return m_GetUUID;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual qint64 minCapacity() const override;
|
qint64 minCapacity() const override;
|
||||||
virtual qint64 maxCapacity() const override;
|
qint64 maxCapacity() const override;
|
||||||
virtual qint64 maxLabelLength() const override;
|
qint64 maxLabelLength() const override;
|
||||||
virtual SupportTool supportToolName() const override;
|
SupportTool supportToolName() const override;
|
||||||
virtual bool supportToolFound() const override;
|
bool supportToolFound() const override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static CommandSupportType m_GetUsed;
|
static CommandSupportType m_GetUsed;
|
||||||
|
|
|
@ -40,59 +40,59 @@ public:
|
||||||
ntfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
ntfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual void init() override;
|
void init() override;
|
||||||
|
|
||||||
virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
|
qint64 readUsedCapacity(const QString& deviceNode) const override;
|
||||||
virtual bool check(Report& report, const QString& deviceNode) const override;
|
bool check(Report& report, const QString& deviceNode) const override;
|
||||||
virtual bool create(Report& report, const QString& deviceNode) const override;
|
bool create(Report& report, const QString& deviceNode) const override;
|
||||||
virtual bool copy(Report& report, const QString& targetDeviceNode, const QString& sourceDeviceNode) const override;
|
bool copy(Report& report, const QString& targetDeviceNode, const QString& sourceDeviceNode) const override;
|
||||||
virtual bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
|
bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
|
||||||
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
||||||
virtual bool updateUUID(Report& report, const QString& deviceNode) const override;
|
bool updateUUID(Report& report, const QString& deviceNode) const override;
|
||||||
virtual bool updateBootSector(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;
|
return m_GetUsed;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetLabel() const override {
|
CommandSupportType supportGetLabel() const override {
|
||||||
return m_GetLabel;
|
return m_GetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCreate() const override {
|
CommandSupportType supportCreate() const override {
|
||||||
return m_Create;
|
return m_Create;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGrow() const override {
|
CommandSupportType supportGrow() const override {
|
||||||
return m_Grow;
|
return m_Grow;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportShrink() const override {
|
CommandSupportType supportShrink() const override {
|
||||||
return m_Shrink;
|
return m_Shrink;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportMove() const override {
|
CommandSupportType supportMove() const override {
|
||||||
return m_Move;
|
return m_Move;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCheck() const override {
|
CommandSupportType supportCheck() const override {
|
||||||
return m_Check;
|
return m_Check;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCopy() const override {
|
CommandSupportType supportCopy() const override {
|
||||||
return m_Copy;
|
return m_Copy;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportBackup() const override {
|
CommandSupportType supportBackup() const override {
|
||||||
return m_Backup;
|
return m_Backup;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportSetLabel() const override {
|
CommandSupportType supportSetLabel() const override {
|
||||||
return m_SetLabel;
|
return m_SetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportUpdateUUID() const override {
|
CommandSupportType supportUpdateUUID() const override {
|
||||||
return m_UpdateUUID;
|
return m_UpdateUUID;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetUUID() const override {
|
CommandSupportType supportGetUUID() const override {
|
||||||
return m_GetUUID;
|
return m_GetUUID;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual qint64 minCapacity() const override;
|
qint64 minCapacity() const override;
|
||||||
virtual qint64 maxCapacity() const override;
|
qint64 maxCapacity() const override;
|
||||||
virtual qint64 maxLabelLength() const override;
|
qint64 maxLabelLength() const override;
|
||||||
virtual SupportTool supportToolName() const override;
|
SupportTool supportToolName() const override;
|
||||||
virtual bool supportToolFound() const override;
|
bool supportToolFound() const override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static CommandSupportType m_GetUsed;
|
static CommandSupportType m_GetUsed;
|
||||||
|
|
|
@ -40,56 +40,56 @@ public:
|
||||||
ocfs2(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
ocfs2(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual void init() override;
|
void init() override;
|
||||||
|
|
||||||
virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
|
qint64 readUsedCapacity(const QString& deviceNode) const override;
|
||||||
virtual bool check(Report& report, const QString& deviceNode) const override;
|
bool check(Report& report, const QString& deviceNode) const override;
|
||||||
virtual bool create(Report& report, const QString& deviceNode) const override;
|
bool create(Report& report, const QString& deviceNode) const override;
|
||||||
virtual bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
|
bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
|
||||||
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
||||||
virtual bool updateUUID(Report& report, const QString& deviceNode) const override;
|
bool updateUUID(Report& report, const QString& deviceNode) const override;
|
||||||
|
|
||||||
virtual CommandSupportType supportGetUsed() const override {
|
CommandSupportType supportGetUsed() const override {
|
||||||
return m_GetUsed;
|
return m_GetUsed;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetLabel() const override {
|
CommandSupportType supportGetLabel() const override {
|
||||||
return m_GetLabel;
|
return m_GetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCreate() const override {
|
CommandSupportType supportCreate() const override {
|
||||||
return m_Create;
|
return m_Create;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGrow() const override {
|
CommandSupportType supportGrow() const override {
|
||||||
return m_Grow;
|
return m_Grow;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportShrink() const override {
|
CommandSupportType supportShrink() const override {
|
||||||
return m_Shrink;
|
return m_Shrink;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportMove() const override {
|
CommandSupportType supportMove() const override {
|
||||||
return m_Move;
|
return m_Move;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCheck() const override {
|
CommandSupportType supportCheck() const override {
|
||||||
return m_Check;
|
return m_Check;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCopy() const override {
|
CommandSupportType supportCopy() const override {
|
||||||
return m_Copy;
|
return m_Copy;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportBackup() const override {
|
CommandSupportType supportBackup() const override {
|
||||||
return m_Backup;
|
return m_Backup;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportSetLabel() const override {
|
CommandSupportType supportSetLabel() const override {
|
||||||
return m_SetLabel;
|
return m_SetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportUpdateUUID() const override {
|
CommandSupportType supportUpdateUUID() const override {
|
||||||
return m_UpdateUUID;
|
return m_UpdateUUID;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetUUID() const override {
|
CommandSupportType supportGetUUID() const override {
|
||||||
return m_GetUUID;
|
return m_GetUUID;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual qint64 minCapacity() const override;
|
qint64 minCapacity() const override;
|
||||||
virtual qint64 maxCapacity() const override;
|
qint64 maxCapacity() const override;
|
||||||
virtual SupportTool supportToolName() const override;
|
SupportTool supportToolName() const override;
|
||||||
virtual bool supportToolFound() const override;
|
bool supportToolFound() const override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static CommandSupportType m_GetUsed;
|
static CommandSupportType m_GetUsed;
|
||||||
|
|
|
@ -40,38 +40,38 @@ public:
|
||||||
reiser4(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
reiser4(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual void init() override;
|
void init() override;
|
||||||
|
|
||||||
virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
|
qint64 readUsedCapacity(const QString& deviceNode) const override;
|
||||||
virtual bool check(Report& report, const QString& deviceNode) const override;
|
bool check(Report& report, const QString& deviceNode) const override;
|
||||||
virtual bool create(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;
|
return m_GetUsed;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetLabel() const override {
|
CommandSupportType supportGetLabel() const override {
|
||||||
return m_GetLabel;
|
return m_GetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCreate() const override {
|
CommandSupportType supportCreate() const override {
|
||||||
return m_Create;
|
return m_Create;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportMove() const override {
|
CommandSupportType supportMove() const override {
|
||||||
return m_Move;
|
return m_Move;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCheck() const override {
|
CommandSupportType supportCheck() const override {
|
||||||
return m_Check;
|
return m_Check;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCopy() const override {
|
CommandSupportType supportCopy() const override {
|
||||||
return m_Copy;
|
return m_Copy;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportBackup() const override {
|
CommandSupportType supportBackup() const override {
|
||||||
return m_Backup;
|
return m_Backup;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual qint64 maxCapacity() const override;
|
qint64 maxCapacity() const override;
|
||||||
virtual qint64 maxLabelLength() const override;
|
qint64 maxLabelLength() const override;
|
||||||
virtual SupportTool supportToolName() const override;
|
SupportTool supportToolName() const override;
|
||||||
virtual bool supportToolFound() const override;
|
bool supportToolFound() const override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static CommandSupportType m_GetUsed;
|
static CommandSupportType m_GetUsed;
|
||||||
|
|
|
@ -42,57 +42,57 @@ public:
|
||||||
reiserfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
reiserfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual void init() override;
|
void init() override;
|
||||||
|
|
||||||
virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
|
qint64 readUsedCapacity(const QString& deviceNode) const override;
|
||||||
virtual bool check(Report& report, const QString& deviceNode) const override;
|
bool check(Report& report, const QString& deviceNode) const override;
|
||||||
virtual bool create(Report& report, const QString& deviceNode) const override;
|
bool create(Report& report, const QString& deviceNode) const override;
|
||||||
virtual bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
|
bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
|
||||||
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
||||||
virtual bool updateUUID(Report& report, const QString& deviceNode) const override;
|
bool updateUUID(Report& report, const QString& deviceNode) const override;
|
||||||
|
|
||||||
virtual CommandSupportType supportGetUsed() const override {
|
CommandSupportType supportGetUsed() const override {
|
||||||
return m_GetUsed;
|
return m_GetUsed;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetLabel() const override {
|
CommandSupportType supportGetLabel() const override {
|
||||||
return m_GetLabel;
|
return m_GetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCreate() const override {
|
CommandSupportType supportCreate() const override {
|
||||||
return m_Create;
|
return m_Create;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGrow() const override {
|
CommandSupportType supportGrow() const override {
|
||||||
return m_Grow;
|
return m_Grow;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportShrink() const override {
|
CommandSupportType supportShrink() const override {
|
||||||
return m_Shrink;
|
return m_Shrink;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportMove() const override {
|
CommandSupportType supportMove() const override {
|
||||||
return m_Move;
|
return m_Move;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCheck() const override {
|
CommandSupportType supportCheck() const override {
|
||||||
return m_Check;
|
return m_Check;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCopy() const override {
|
CommandSupportType supportCopy() const override {
|
||||||
return m_Copy;
|
return m_Copy;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportBackup() const override {
|
CommandSupportType supportBackup() const override {
|
||||||
return m_Backup;
|
return m_Backup;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportSetLabel() const override {
|
CommandSupportType supportSetLabel() const override {
|
||||||
return m_SetLabel;
|
return m_SetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportUpdateUUID() const override {
|
CommandSupportType supportUpdateUUID() const override {
|
||||||
return m_UpdateUUID;
|
return m_UpdateUUID;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetUUID() const override {
|
CommandSupportType supportGetUUID() const override {
|
||||||
return m_GetUUID;
|
return m_GetUUID;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual qint64 minCapacity() const override;
|
qint64 minCapacity() const override;
|
||||||
virtual qint64 maxCapacity() const override;
|
qint64 maxCapacity() const override;
|
||||||
virtual qint64 maxLabelLength() const override;
|
qint64 maxLabelLength() const override;
|
||||||
virtual SupportTool supportToolName() const override;
|
SupportTool supportToolName() const override;
|
||||||
virtual bool supportToolFound() const override;
|
bool supportToolFound() const override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static CommandSupportType m_GetUsed;
|
static CommandSupportType m_GetUsed;
|
||||||
|
|
|
@ -38,17 +38,17 @@ public:
|
||||||
ufs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
ufs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual CommandSupportType supportMove() const override {
|
CommandSupportType supportMove() const override {
|
||||||
return m_Move;
|
return m_Move;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCopy() const override {
|
CommandSupportType supportCopy() const override {
|
||||||
return m_Copy;
|
return m_Copy;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportBackup() const override {
|
CommandSupportType supportBackup() const override {
|
||||||
return m_Backup;
|
return m_Backup;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool supportToolFound() const override {
|
bool supportToolFound() const override {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,13 +40,13 @@ public:
|
||||||
unformatted(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
unformatted(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
||||||
|
|
||||||
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;
|
return m_Create;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool supportToolFound() const override {
|
bool supportToolFound() const override {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ public:
|
||||||
unknown(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
unknown(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool supportToolFound() const override {
|
bool supportToolFound() const override {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
42
src/fs/xfs.h
42
src/fs/xfs.h
|
@ -40,48 +40,48 @@ public:
|
||||||
xfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
xfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual void init() override;
|
void init() override;
|
||||||
|
|
||||||
virtual qint64 readUsedCapacity(const QString& deviceNode) const override;
|
qint64 readUsedCapacity(const QString& deviceNode) const override;
|
||||||
virtual bool check(Report& report, const QString& deviceNode) const override;
|
bool check(Report& report, const QString& deviceNode) const override;
|
||||||
virtual bool create(Report& report, const QString& deviceNode) const override;
|
bool create(Report& report, const QString& deviceNode) const override;
|
||||||
virtual bool copy(Report& report, const QString&, const QString&) const override;
|
bool copy(Report& report, const QString&, const QString&) const override;
|
||||||
virtual bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
|
bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
|
||||||
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
||||||
|
|
||||||
virtual CommandSupportType supportGetUsed() const override {
|
CommandSupportType supportGetUsed() const override {
|
||||||
return m_GetUsed;
|
return m_GetUsed;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetLabel() const override {
|
CommandSupportType supportGetLabel() const override {
|
||||||
return m_GetLabel;
|
return m_GetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCreate() const override {
|
CommandSupportType supportCreate() const override {
|
||||||
return m_Create;
|
return m_Create;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGrow() const override {
|
CommandSupportType supportGrow() const override {
|
||||||
return m_Grow;
|
return m_Grow;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportMove() const override {
|
CommandSupportType supportMove() const override {
|
||||||
return m_Move;
|
return m_Move;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCheck() const override {
|
CommandSupportType supportCheck() const override {
|
||||||
return m_Check;
|
return m_Check;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCopy() const override {
|
CommandSupportType supportCopy() const override {
|
||||||
return m_Copy;
|
return m_Copy;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportBackup() const override {
|
CommandSupportType supportBackup() const override {
|
||||||
return m_Backup;
|
return m_Backup;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportSetLabel() const override {
|
CommandSupportType supportSetLabel() const override {
|
||||||
return m_SetLabel;
|
return m_SetLabel;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual qint64 minCapacity() const override;
|
qint64 minCapacity() const override;
|
||||||
virtual qint64 maxCapacity() const override;
|
qint64 maxCapacity() const override;
|
||||||
virtual qint64 maxLabelLength() const override;
|
qint64 maxLabelLength() const override;
|
||||||
virtual SupportTool supportToolName() const override;
|
SupportTool supportToolName() const override;
|
||||||
virtual bool supportToolFound() const override;
|
bool supportToolFound() const override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static CommandSupportType m_GetUsed;
|
static CommandSupportType m_GetUsed;
|
||||||
|
|
38
src/fs/zfs.h
38
src/fs/zfs.h
|
@ -41,52 +41,52 @@ public:
|
||||||
zfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
zfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual void init() override;
|
void init() override;
|
||||||
|
|
||||||
virtual bool remove(Report& report, const QString& deviceNode) const override;
|
bool remove(Report& report, const QString& deviceNode) const override;
|
||||||
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
||||||
|
|
||||||
virtual CommandSupportType supportGetUsed() const override {
|
CommandSupportType supportGetUsed() const override {
|
||||||
return m_GetUsed;
|
return m_GetUsed;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetLabel() const override {
|
CommandSupportType supportGetLabel() const override {
|
||||||
return m_GetLabel;
|
return m_GetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCreate() const override {
|
CommandSupportType supportCreate() const override {
|
||||||
return m_Create;
|
return m_Create;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGrow() const override {
|
CommandSupportType supportGrow() const override {
|
||||||
return m_Grow;
|
return m_Grow;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportShrink() const override {
|
CommandSupportType supportShrink() const override {
|
||||||
return m_Shrink;
|
return m_Shrink;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportMove() const override {
|
CommandSupportType supportMove() const override {
|
||||||
return m_Move;
|
return m_Move;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCheck() const override {
|
CommandSupportType supportCheck() const override {
|
||||||
return m_Check;
|
return m_Check;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportCopy() const override {
|
CommandSupportType supportCopy() const override {
|
||||||
return m_Copy;
|
return m_Copy;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportBackup() const override {
|
CommandSupportType supportBackup() const override {
|
||||||
return m_Backup;
|
return m_Backup;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportSetLabel() const override {
|
CommandSupportType supportSetLabel() const override {
|
||||||
return m_SetLabel;
|
return m_SetLabel;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportUpdateUUID() const override {
|
CommandSupportType supportUpdateUUID() const override {
|
||||||
return m_UpdateUUID;
|
return m_UpdateUUID;
|
||||||
}
|
}
|
||||||
virtual CommandSupportType supportGetUUID() const override {
|
CommandSupportType supportGetUUID() const override {
|
||||||
return m_GetUUID;
|
return m_GetUUID;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual qint64 minCapacity() const override;
|
qint64 minCapacity() const override;
|
||||||
virtual qint64 maxCapacity() const override;
|
qint64 maxCapacity() const override;
|
||||||
virtual SupportTool supportToolName() const override;
|
SupportTool supportToolName() const override;
|
||||||
virtual bool supportToolFound() const override;
|
bool supportToolFound() const override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static CommandSupportType m_GetUsed;
|
static CommandSupportType m_GetUsed;
|
||||||
|
|
|
@ -39,9 +39,9 @@ public:
|
||||||
BackupFileSystemJob(Device& sourcedevice, Partition& sourcepartition, const QString& filename);
|
BackupFileSystemJob(Device& sourcedevice, Partition& sourcepartition, const QString& filename);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool run(Report& parent) override;
|
bool run(Report& parent) override;
|
||||||
virtual qint32 numSteps() const override;
|
qint32 numSteps() const override;
|
||||||
virtual QString description() const override;
|
QString description() const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Partition& sourcePartition() {
|
Partition& sourcePartition() {
|
||||||
|
|
|
@ -35,8 +35,8 @@ public:
|
||||||
CheckFileSystemJob(Partition& p);
|
CheckFileSystemJob(Partition& p);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool run(Report& parent) override;
|
bool run(Report& parent) override;
|
||||||
virtual QString description() const override;
|
QString description() const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Partition& partition() {
|
Partition& partition() {
|
||||||
|
|
|
@ -41,9 +41,9 @@ public:
|
||||||
CopyFileSystemJob(Device& targetdevice, Partition& targetpartition, Device& sourcedevice, Partition& sourcepartition);
|
CopyFileSystemJob(Device& targetdevice, Partition& targetpartition, Device& sourcedevice, Partition& sourcepartition);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool run(Report& parent) override;
|
bool run(Report& parent) override;
|
||||||
virtual qint32 numSteps() const override;
|
qint32 numSteps() const override;
|
||||||
virtual QString description() const override;
|
QString description() const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Partition& targetPartition() {
|
Partition& targetPartition() {
|
||||||
|
|
|
@ -36,8 +36,8 @@ public:
|
||||||
CreateFileSystemJob(Device& d, Partition& p);
|
CreateFileSystemJob(Device& d, Partition& p);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool run(Report& parent) override;
|
bool run(Report& parent) override;
|
||||||
virtual QString description() const override;
|
QString description() const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Partition& partition() {
|
Partition& partition() {
|
||||||
|
|
|
@ -36,8 +36,8 @@ public:
|
||||||
CreatePartitionJob(Device& d, Partition& p);
|
CreatePartitionJob(Device& d, Partition& p);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool run(Report& parent) override;
|
bool run(Report& parent) override;
|
||||||
virtual QString description() const override;
|
QString description() const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Partition& partition() {
|
Partition& partition() {
|
||||||
|
|
|
@ -35,8 +35,8 @@ public:
|
||||||
CreatePartitionTableJob(Device& d);
|
CreatePartitionTableJob(Device& d);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool run(Report& parent) override;
|
bool run(Report& parent) override;
|
||||||
virtual QString description() const override;
|
QString description() const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Device& device() {
|
Device& device() {
|
||||||
|
|
|
@ -39,8 +39,8 @@ public:
|
||||||
DeleteFileSystemJob(Device& d, Partition& p);
|
DeleteFileSystemJob(Device& d, Partition& p);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool run(Report& parent) override;
|
bool run(Report& parent) override;
|
||||||
virtual QString description() const override;
|
QString description() const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Partition& partition() {
|
Partition& partition() {
|
||||||
|
|
|
@ -36,8 +36,8 @@ public:
|
||||||
DeletePartitionJob(Device& d, Partition& p);
|
DeletePartitionJob(Device& d, Partition& p);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool run(Report& parent) override;
|
bool run(Report& parent) override;
|
||||||
virtual QString description() const override;
|
QString description() const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Partition& partition() {
|
Partition& partition() {
|
||||||
|
|
|
@ -39,9 +39,9 @@ public:
|
||||||
MoveFileSystemJob(Device& d, Partition& p, qint64 newstart);
|
MoveFileSystemJob(Device& d, Partition& p, qint64 newstart);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool run(Report& parent) override;
|
bool run(Report& parent) override;
|
||||||
virtual qint32 numSteps() const override;
|
qint32 numSteps() const override;
|
||||||
virtual QString description() const override;
|
QString description() const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Partition& partition() {
|
Partition& partition() {
|
||||||
|
|
|
@ -40,9 +40,9 @@ public:
|
||||||
ResizeFileSystemJob(Device& d, Partition& p, qint64 newlength = -1);
|
ResizeFileSystemJob(Device& d, Partition& p, qint64 newlength = -1);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool run(Report& parent) override;
|
bool run(Report& parent) override;
|
||||||
virtual qint32 numSteps() const override;
|
qint32 numSteps() const override;
|
||||||
virtual QString description() const override;
|
QString description() const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool resizeFileSystemBackend(Report& report);
|
bool resizeFileSystemBackend(Report& report);
|
||||||
|
|
|
@ -39,9 +39,9 @@ public:
|
||||||
RestoreFileSystemJob(Device& targetdevice, Partition& targetpartition, const QString& filename);
|
RestoreFileSystemJob(Device& targetdevice, Partition& targetpartition, const QString& filename);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool run(Report& parent) override;
|
bool run(Report& parent) override;
|
||||||
virtual qint32 numSteps() const override;
|
qint32 numSteps() const override;
|
||||||
virtual QString description() const override;
|
QString description() const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Partition& targetPartition() {
|
Partition& targetPartition() {
|
||||||
|
|
|
@ -38,8 +38,8 @@ public:
|
||||||
SetFileSystemLabelJob(Partition& p, const QString& newlabel);
|
SetFileSystemLabelJob(Partition& p, const QString& newlabel);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool run(Report& parent) override;
|
bool run(Report& parent) override;
|
||||||
virtual QString description() const override;
|
QString description() const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Partition& partition() {
|
Partition& partition() {
|
||||||
|
|
|
@ -41,9 +41,9 @@ public:
|
||||||
SetPartFlagsJob(Device& d, Partition& p, PartitionTable::Flags flags);
|
SetPartFlagsJob(Device& d, Partition& p, PartitionTable::Flags flags);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool run(Report& parent) override;
|
bool run(Report& parent) override;
|
||||||
virtual qint32 numSteps() const override;
|
qint32 numSteps() const override;
|
||||||
virtual QString description() const override;
|
QString description() const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Device& device() {
|
Device& device() {
|
||||||
|
|
|
@ -43,8 +43,8 @@ public:
|
||||||
SetPartGeometryJob(Device& d, Partition& p, qint64 newstart, qint64 newlength);
|
SetPartGeometryJob(Device& d, Partition& p, qint64 newstart, qint64 newlength);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool run(Report& parent) override;
|
bool run(Report& parent) override;
|
||||||
virtual QString description() const override;
|
QString description() const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Partition& partition() {
|
Partition& partition() {
|
||||||
|
|
|
@ -39,9 +39,9 @@ public:
|
||||||
ShredFileSystemJob(Device& d, Partition& p, bool randomShred);
|
ShredFileSystemJob(Device& d, Partition& p, bool randomShred);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool run(Report& parent) override;
|
bool run(Report& parent) override;
|
||||||
virtual qint32 numSteps() const override;
|
qint32 numSteps() const override;
|
||||||
virtual QString description() const override;
|
QString description() const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Partition& partition() {
|
Partition& partition() {
|
||||||
|
|
|
@ -49,10 +49,10 @@ public:
|
||||||
void preview() override {}
|
void preview() override {}
|
||||||
void undo() override {}
|
void undo() override {}
|
||||||
|
|
||||||
virtual bool targets(const Device&) const override {
|
bool targets(const Device&) const override {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
virtual bool targets(const Partition&) const override{
|
bool targets(const Partition&) const override{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -52,8 +52,8 @@ public:
|
||||||
void preview() override {}
|
void preview() override {}
|
||||||
void undo() override {}
|
void undo() override {}
|
||||||
|
|
||||||
virtual bool targets(const Device& d) const override;
|
bool targets(const Device& d) const override;
|
||||||
virtual bool targets(const Partition& p) const override;
|
bool targets(const Partition& p) const override;
|
||||||
|
|
||||||
static bool canCheck(const Partition* p);
|
static bool canCheck(const Partition* p);
|
||||||
|
|
||||||
|
|
|
@ -66,8 +66,8 @@ public:
|
||||||
void preview() override;
|
void preview() override;
|
||||||
void undo() override;
|
void undo() override;
|
||||||
|
|
||||||
virtual bool targets(const Device& d) const override;
|
bool targets(const Device& d) const override;
|
||||||
virtual bool targets(const Partition& p) const override;
|
bool targets(const Partition& p) const override;
|
||||||
|
|
||||||
static bool canCopy(const Partition* p);
|
static bool canCopy(const Partition* p);
|
||||||
static bool canPaste(const Partition* p, const Partition* source);
|
static bool canPaste(const Partition* p, const Partition* source);
|
||||||
|
|
|
@ -61,8 +61,8 @@ public:
|
||||||
void undo() override;
|
void undo() override;
|
||||||
bool execute(Report& parent) override;
|
bool execute(Report& parent) override;
|
||||||
|
|
||||||
virtual bool targets(const Device& d) const override;
|
bool targets(const Device& d) const override;
|
||||||
virtual bool targets(const Partition& p) const override;
|
bool targets(const Partition& p) const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Device& targetDevice() {
|
Device& targetDevice() {
|
||||||
|
|
|
@ -57,8 +57,8 @@ public:
|
||||||
void undo() override;
|
void undo() override;
|
||||||
bool execute(Report& parent) override;
|
bool execute(Report& parent) override;
|
||||||
|
|
||||||
virtual bool targets(const Device& d) const override;
|
bool targets(const Device& d) const override;
|
||||||
virtual bool targets(const Partition&) const override{
|
bool targets(const Partition&) const override{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -66,8 +66,8 @@ public:
|
||||||
return m_ShredAction;
|
return m_ShredAction;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool targets(const Device& d) const override;
|
bool targets(const Device& d) const override;
|
||||||
virtual bool targets(const Partition& p) const override;
|
bool targets(const Partition& p) const override;
|
||||||
|
|
||||||
static bool canDelete(const Partition* p);
|
static bool canDelete(const Partition* p);
|
||||||
|
|
||||||
|
|
|
@ -60,8 +60,8 @@ public:
|
||||||
void preview() override;
|
void preview() override;
|
||||||
void undo() override;
|
void undo() override;
|
||||||
|
|
||||||
virtual bool targets(const Device& d) const override;
|
bool targets(const Device& d) const override;
|
||||||
virtual bool targets(const Partition& p) const override;
|
bool targets(const Partition& p) const override;
|
||||||
|
|
||||||
static bool canCreateNew(const Partition* p);
|
static bool canCreateNew(const Partition* p);
|
||||||
static Partition* createNew(const Partition& cloneFrom, FileSystem::Type type);
|
static Partition* createNew(const Partition& cloneFrom, FileSystem::Type type);
|
||||||
|
|
|
@ -83,8 +83,8 @@ public:
|
||||||
void preview() override;
|
void preview() override;
|
||||||
void undo() override;
|
void undo() override;
|
||||||
|
|
||||||
virtual bool targets(const Device& d) const override;
|
bool targets(const Device& d) const override;
|
||||||
virtual bool targets(const Partition& p) const override;
|
bool targets(const Partition& p) const override;
|
||||||
|
|
||||||
static bool canGrow(const Partition* p);
|
static bool canGrow(const Partition* p);
|
||||||
static bool canShrink(const Partition* p);
|
static bool canShrink(const Partition* p);
|
||||||
|
|
|
@ -65,8 +65,8 @@ public:
|
||||||
|
|
||||||
void preview() override;
|
void preview() override;
|
||||||
|
|
||||||
virtual bool targets(const Device& d) const override;
|
bool targets(const Device& d) const override;
|
||||||
virtual bool targets(const Partition& p) const override;
|
bool targets(const Partition& p) const override;
|
||||||
|
|
||||||
static bool canRestore(const Partition* p);
|
static bool canRestore(const Partition* p);
|
||||||
static Partition* createRestorePartition(const Device& device, PartitionNode& parent, qint64 start, const QString& fileName);
|
static Partition* createRestorePartition(const Device& device, PartitionNode& parent, qint64 start, const QString& fileName);
|
||||||
|
|
|
@ -55,8 +55,8 @@ public:
|
||||||
void preview() override;
|
void preview() override;
|
||||||
void undo() override;
|
void undo() override;
|
||||||
|
|
||||||
virtual bool targets(const Device& d) const override;
|
bool targets(const Device& d) const override;
|
||||||
virtual bool targets(const Partition& p) const override;
|
bool targets(const Partition& p) const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Partition& labeledPartition() {
|
Partition& labeledPartition() {
|
||||||
|
|
|
@ -58,8 +58,8 @@ public:
|
||||||
void preview() override;
|
void preview() override;
|
||||||
void undo() override;
|
void undo() override;
|
||||||
|
|
||||||
virtual bool targets(const Device& d) const override;
|
bool targets(const Device& d) const override;
|
||||||
virtual bool targets(const Partition& p) const override;
|
bool targets(const Partition& p) const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Partition& flagPartition() {
|
Partition& flagPartition() {
|
||||||
|
|
|
@ -42,14 +42,14 @@ private:
|
||||||
DummyBackend(QObject* parent, const QList<QVariant>& args);
|
DummyBackend(QObject* parent, const QList<QVariant>& args);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual void initFSSupport() override;
|
void initFSSupport() override;
|
||||||
|
|
||||||
virtual QList<Device*> scanDevices(bool excludeReadOnly = false) override;
|
QList<Device*> scanDevices(bool excludeReadOnly = false) override;
|
||||||
virtual CoreBackendDevice* openDevice(const QString& device_node) override;
|
CoreBackendDevice* openDevice(const QString& device_node) override;
|
||||||
virtual CoreBackendDevice* openDeviceExclusive(const QString& device_node) override;
|
CoreBackendDevice* openDeviceExclusive(const QString& device_node) override;
|
||||||
virtual bool closeDevice(CoreBackendDevice* core_device) override;
|
bool closeDevice(CoreBackendDevice* core_device) override;
|
||||||
virtual Device* scanDevice(const QString& device_node) override;
|
Device* scanDevice(const QString& device_node) override;
|
||||||
virtual FileSystem::Type detectFileSystem(const QString& deviceNode) override;
|
FileSystem::Type detectFileSystem(const QString& deviceNode) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -37,16 +37,16 @@ public:
|
||||||
~DummyDevice();
|
~DummyDevice();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool open() override;
|
bool open() override;
|
||||||
virtual bool openExclusive() override;
|
bool openExclusive() override;
|
||||||
virtual bool close() 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;
|
bool readSectors(void* buffer, qint64 offset, qint64 numSectors) override;
|
||||||
virtual bool writeSectors(void* buffer, qint64 offset, qint64 numSectors) override;
|
bool writeSectors(void* buffer, qint64 offset, qint64 numSectors) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -33,7 +33,7 @@ public:
|
||||||
DummyPartition();
|
DummyPartition();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool setFlag(Report& report, PartitionTable::Flag flag, bool state) override;
|
bool setFlag(Report& report, PartitionTable::Flag flag, bool state) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -36,20 +36,20 @@ public:
|
||||||
~DummyPartitionTable();
|
~DummyPartitionTable();
|
||||||
|
|
||||||
public:
|
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;
|
CoreBackendPartition* getExtendedPartition() override;
|
||||||
virtual CoreBackendPartition* getPartitionBySector(qint64 sector) override;
|
CoreBackendPartition* getPartitionBySector(qint64 sector) override;
|
||||||
|
|
||||||
virtual QString createPartition(Report& report, const Partition& partition) override;
|
QString createPartition(Report& report, const Partition& partition) override;
|
||||||
virtual bool deletePartition(Report& report, const Partition& partition) override;
|
bool deletePartition(Report& report, const Partition& partition) override;
|
||||||
virtual bool updateGeometry(Report& report, const Partition& partition, qint64 sector_start, qint64 sector_end) override;
|
bool updateGeometry(Report& report, const Partition& partition, qint64 sector_start, qint64 sector_end) override;
|
||||||
virtual bool clobberFileSystem(Report& report, const Partition& partition) override;
|
bool clobberFileSystem(Report& report, const Partition& partition) override;
|
||||||
virtual bool resizeFileSystem(Report& report, const Partition& partition, qint64 newLength) override;
|
bool resizeFileSystem(Report& report, const Partition& partition, qint64 newLength) override;
|
||||||
virtual FileSystem::Type detectFileSystemBySector(Report& report, const Device& device, qint64 sector) override;
|
FileSystem::Type detectFileSystemBySector(Report& report, const Device& device, qint64 sector) override;
|
||||||
virtual bool setPartitionSystemType(Report& report, const Partition& partition) override;
|
bool setPartitionSystemType(Report& report, const Partition& partition) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -59,14 +59,14 @@ private:
|
||||||
LibPartedBackend(QObject* parent, const QList<QVariant>& args);
|
LibPartedBackend(QObject* parent, const QList<QVariant>& args);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual void initFSSupport() override;
|
void initFSSupport() override;
|
||||||
|
|
||||||
virtual CoreBackendDevice* openDevice(const QString& device_node) override;
|
CoreBackendDevice* openDevice(const QString& device_node) override;
|
||||||
virtual CoreBackendDevice* openDeviceExclusive(const QString& device_node) override;
|
CoreBackendDevice* openDeviceExclusive(const QString& device_node) override;
|
||||||
virtual bool closeDevice(CoreBackendDevice* core_device) override;
|
bool closeDevice(CoreBackendDevice* core_device) override;
|
||||||
virtual Device* scanDevice(const QString& device_node) override;
|
Device* scanDevice(const QString& device_node) override;
|
||||||
virtual QList<Device*> scanDevices(bool excludeReadOnly = false) override;
|
QList<Device*> scanDevices(bool excludeReadOnly = false) override;
|
||||||
virtual FileSystem::Type detectFileSystem(const QString& partitionPath) override;
|
FileSystem::Type detectFileSystem(const QString& partitionPath) override;
|
||||||
|
|
||||||
static QString lastPartedExceptionMessage();
|
static QString lastPartedExceptionMessage();
|
||||||
|
|
||||||
|
|
|
@ -39,16 +39,16 @@ public:
|
||||||
~LibPartedDevice();
|
~LibPartedDevice();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool open() override;
|
bool open() override;
|
||||||
virtual bool openExclusive() override;
|
bool openExclusive() override;
|
||||||
virtual bool close() 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;
|
bool readSectors(void* buffer, qint64 offset, qint64 numSectors) override;
|
||||||
virtual bool writeSectors(void* buffer, qint64 offset, qint64 numSectors) override;
|
bool writeSectors(void* buffer, qint64 offset, qint64 numSectors) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
PedDevice* pedDevice() {
|
PedDevice* pedDevice() {
|
||||||
|
|
|
@ -35,7 +35,7 @@ public:
|
||||||
LibPartedPartition(PedPartition* ped_partition);
|
LibPartedPartition(PedPartition* ped_partition);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool setFlag(Report& report, PartitionTable::Flag flag, bool state) override;
|
bool setFlag(Report& report, PartitionTable::Flag flag, bool state) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
PedPartition* pedPartition() {
|
PedPartition* pedPartition() {
|
||||||
|
|
|
@ -38,21 +38,21 @@ public:
|
||||||
~LibPartedPartitionTable();
|
~LibPartedPartitionTable();
|
||||||
|
|
||||||
public:
|
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);
|
static bool commit(PedDisk* pd, quint32 timeout = 10);
|
||||||
|
|
||||||
virtual CoreBackendPartition* getExtendedPartition() override;
|
CoreBackendPartition* getExtendedPartition() override;
|
||||||
virtual CoreBackendPartition* getPartitionBySector(qint64 sector) override;
|
CoreBackendPartition* getPartitionBySector(qint64 sector) override;
|
||||||
|
|
||||||
virtual QString createPartition(Report& report, const Partition& partition) override;
|
QString createPartition(Report& report, const Partition& partition) override;
|
||||||
virtual bool deletePartition(Report& report, const Partition& partition) override;
|
bool deletePartition(Report& report, const Partition& partition) override;
|
||||||
virtual bool updateGeometry(Report& report, const Partition& partition, qint64 sector_start, qint64 sector_end) override;
|
bool updateGeometry(Report& report, const Partition& partition, qint64 sector_start, qint64 sector_end) override;
|
||||||
virtual bool clobberFileSystem(Report& report, const Partition& partition) override;
|
bool clobberFileSystem(Report& report, const Partition& partition) override;
|
||||||
virtual bool resizeFileSystem(Report& report, const Partition& partition, qint64 newLength) override;
|
bool resizeFileSystem(Report& report, const Partition& partition, qint64 newLength) override;
|
||||||
virtual FileSystem::Type detectFileSystemBySector(Report& report, const Device& device, qint64 sector) override;
|
FileSystem::Type detectFileSystemBySector(Report& report, const Device& device, qint64 sector) override;
|
||||||
virtual bool setPartitionSystemType(Report& report, const Partition& partition) override;
|
bool setPartitionSystemType(Report& report, const Partition& partition) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
PedDevice* pedDevice() {
|
PedDevice* pedDevice() {
|
||||||
|
|
Loading…
Reference in New Issue