rename FileSystem::SupportType to FileSystem::CommandSupportType
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1081014
This commit is contained in:
parent
efc5335a39
commit
84acbea6ac
|
@ -27,18 +27,18 @@
|
|||
|
||||
namespace FS
|
||||
{
|
||||
FileSystem::SupportType ext2::m_GetUsed = FileSystem::SupportNone;
|
||||
FileSystem::SupportType ext2::m_GetLabel = FileSystem::SupportNone;
|
||||
FileSystem::SupportType ext2::m_Create = FileSystem::SupportNone;
|
||||
FileSystem::SupportType ext2::m_Grow = FileSystem::SupportNone;
|
||||
FileSystem::SupportType ext2::m_Shrink = FileSystem::SupportNone;
|
||||
FileSystem::SupportType ext2::m_Move = FileSystem::SupportNone;
|
||||
FileSystem::SupportType ext2::m_Check = FileSystem::SupportNone;
|
||||
FileSystem::SupportType ext2::m_Copy = FileSystem::SupportNone;
|
||||
FileSystem::SupportType ext2::m_Backup = FileSystem::SupportNone;
|
||||
FileSystem::SupportType ext2::m_SetLabel = FileSystem::SupportNone;
|
||||
FileSystem::SupportType ext2::m_UpdateUUID = FileSystem::SupportNone;
|
||||
FileSystem::SupportType ext2::m_GetUUID = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType ext2::m_GetUsed = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType ext2::m_GetLabel = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType ext2::m_Create = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType ext2::m_Grow = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType ext2::m_Shrink = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType ext2::m_Move = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType ext2::m_Check = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType ext2::m_Copy = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType ext2::m_Backup = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType ext2::m_SetLabel = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType ext2::m_UpdateUUID = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType ext2::m_GetUUID = FileSystem::SupportNone;
|
||||
|
||||
ext2::ext2(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label, FileSystem::Type t) :
|
||||
FileSystem(firstsector, lastsector, sectorsused, label, t)
|
||||
|
|
|
@ -49,34 +49,34 @@ namespace FS
|
|||
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel);
|
||||
virtual bool updateUUID(Report& report, const QString& deviceNode) const;
|
||||
|
||||
virtual SupportType supportGetUsed() const { return m_GetUsed; }
|
||||
virtual SupportType supportGetLabel() const { return m_GetLabel; }
|
||||
virtual SupportType supportCreate() const { return m_Create; }
|
||||
virtual SupportType supportGrow() const { return m_Grow; }
|
||||
virtual SupportType supportShrink() const { return m_Shrink; }
|
||||
virtual SupportType supportMove() const { return m_Move; }
|
||||
virtual SupportType supportCheck() const { return m_Check; }
|
||||
virtual SupportType supportCopy() const { return m_Copy; }
|
||||
virtual SupportType supportBackup() const { return m_Backup; }
|
||||
virtual SupportType supportSetLabel() const { return m_SetLabel; }
|
||||
virtual SupportType supportUpdateUUID() const { return m_UpdateUUID; }
|
||||
virtual SupportType supportGetUUID() const { return m_GetUUID; }
|
||||
virtual CommandSupportType supportGetUsed() const { return m_GetUsed; }
|
||||
virtual CommandSupportType supportGetLabel() const { return m_GetLabel; }
|
||||
virtual CommandSupportType supportCreate() const { return m_Create; }
|
||||
virtual CommandSupportType supportGrow() const { return m_Grow; }
|
||||
virtual CommandSupportType supportShrink() const { return m_Shrink; }
|
||||
virtual CommandSupportType supportMove() const { return m_Move; }
|
||||
virtual CommandSupportType supportCheck() const { return m_Check; }
|
||||
virtual CommandSupportType supportCopy() const { return m_Copy; }
|
||||
virtual CommandSupportType supportBackup() const { return m_Backup; }
|
||||
virtual CommandSupportType supportSetLabel() const { return m_SetLabel; }
|
||||
virtual CommandSupportType supportUpdateUUID() const { return m_UpdateUUID; }
|
||||
virtual CommandSupportType supportGetUUID() const { return m_GetUUID; }
|
||||
|
||||
virtual qint64 maxCapacity() const;
|
||||
|
||||
protected:
|
||||
static SupportType m_GetUsed;
|
||||
static SupportType m_GetLabel;
|
||||
static SupportType m_Create;
|
||||
static SupportType m_Grow;
|
||||
static SupportType m_Shrink;
|
||||
static SupportType m_Move;
|
||||
static SupportType m_Check;
|
||||
static SupportType m_Copy;
|
||||
static SupportType m_Backup;
|
||||
static SupportType m_SetLabel;
|
||||
static SupportType m_UpdateUUID;
|
||||
static SupportType m_GetUUID;
|
||||
static CommandSupportType m_GetUsed;
|
||||
static CommandSupportType m_GetLabel;
|
||||
static CommandSupportType m_Create;
|
||||
static CommandSupportType m_Grow;
|
||||
static CommandSupportType m_Shrink;
|
||||
static CommandSupportType m_Move;
|
||||
static CommandSupportType m_Check;
|
||||
static CommandSupportType m_Copy;
|
||||
static CommandSupportType m_Backup;
|
||||
static CommandSupportType m_SetLabel;
|
||||
static CommandSupportType m_UpdateUUID;
|
||||
static CommandSupportType m_GetUUID;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -21,10 +21,10 @@
|
|||
|
||||
namespace FS
|
||||
{
|
||||
FileSystem::SupportType extended::m_Create = FileSystem::SupportExternal;
|
||||
FileSystem::SupportType extended::m_Grow = FileSystem::SupportInternal;
|
||||
FileSystem::SupportType extended::m_Shrink = FileSystem::SupportInternal;
|
||||
FileSystem::SupportType extended::m_Move = FileSystem::SupportInternal;
|
||||
FileSystem::CommandSupportType extended::m_Create = FileSystem::SupportExternal;
|
||||
FileSystem::CommandSupportType extended::m_Grow = FileSystem::SupportInternal;
|
||||
FileSystem::CommandSupportType extended::m_Shrink = FileSystem::SupportInternal;
|
||||
FileSystem::CommandSupportType extended::m_Move = FileSystem::SupportInternal;
|
||||
|
||||
extended::extended(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label) :
|
||||
FileSystem(firstsector, lastsector, sectorsused, label, FileSystem::Extended)
|
||||
|
|
|
@ -47,16 +47,16 @@ namespace FS
|
|||
|
||||
virtual bool create(Report&, const QString&) const;
|
||||
|
||||
virtual SupportType supportCreate() const { return m_Create; }
|
||||
virtual SupportType supportGrow() const { return m_Grow; }
|
||||
virtual SupportType supportShrink() const { return m_Shrink; }
|
||||
virtual SupportType supportMove() const { return m_Move; }
|
||||
virtual CommandSupportType supportCreate() const { return m_Create; }
|
||||
virtual CommandSupportType supportGrow() const { return m_Grow; }
|
||||
virtual CommandSupportType supportShrink() const { return m_Shrink; }
|
||||
virtual CommandSupportType supportMove() const { return m_Move; }
|
||||
|
||||
protected:
|
||||
static SupportType m_Create;
|
||||
static SupportType m_Grow;
|
||||
static SupportType m_Shrink;
|
||||
static SupportType m_Move;
|
||||
static CommandSupportType m_Create;
|
||||
static CommandSupportType m_Grow;
|
||||
static CommandSupportType m_Shrink;
|
||||
static CommandSupportType m_Move;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -36,18 +36,18 @@
|
|||
|
||||
namespace FS
|
||||
{
|
||||
FileSystem::SupportType fat16::m_GetUsed = FileSystem::SupportNone;
|
||||
FileSystem::SupportType fat16::m_GetLabel = FileSystem::SupportNone;
|
||||
FileSystem::SupportType fat16::m_SetLabel = FileSystem::SupportNone;
|
||||
FileSystem::SupportType fat16::m_Create = FileSystem::SupportNone;
|
||||
FileSystem::SupportType fat16::m_Grow = FileSystem::SupportNone;
|
||||
FileSystem::SupportType fat16::m_Shrink = FileSystem::SupportNone;
|
||||
FileSystem::SupportType fat16::m_Move = FileSystem::SupportNone;
|
||||
FileSystem::SupportType fat16::m_Check = FileSystem::SupportNone;
|
||||
FileSystem::SupportType fat16::m_Copy = FileSystem::SupportNone;
|
||||
FileSystem::SupportType fat16::m_Backup = FileSystem::SupportNone;
|
||||
FileSystem::SupportType fat16::m_UpdateUUID = FileSystem::SupportNone;
|
||||
FileSystem::SupportType fat16::m_GetUUID = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType fat16::m_GetUsed = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType fat16::m_GetLabel = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType fat16::m_SetLabel = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType fat16::m_Create = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType fat16::m_Grow = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType fat16::m_Shrink = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType fat16::m_Move = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType fat16::m_Check = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType fat16::m_Copy = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType fat16::m_Backup = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType fat16::m_UpdateUUID = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType fat16::m_GetUUID = FileSystem::SupportNone;
|
||||
|
||||
fat16::fat16(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label, FileSystem::Type t) :
|
||||
FileSystem(firstsector, lastsector, sectorsused, label, t)
|
||||
|
|
|
@ -48,35 +48,35 @@ namespace FS
|
|||
virtual bool updateUUID(Report& report, const QString& deviceNode) const;
|
||||
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel);
|
||||
|
||||
virtual SupportType supportGetUsed() const { return m_GetUsed; }
|
||||
virtual SupportType supportGetLabel() const { return m_GetLabel; }
|
||||
virtual SupportType supportSetLabel() const { return m_SetLabel; }
|
||||
virtual SupportType supportCreate() const { return m_Create; }
|
||||
virtual SupportType supportGrow() const { return m_Grow; }
|
||||
virtual SupportType supportShrink() const { return m_Shrink; }
|
||||
virtual SupportType supportMove() const { return m_Move; }
|
||||
virtual SupportType supportCheck() const { return m_Check; }
|
||||
virtual SupportType supportCopy() const { return m_Copy; }
|
||||
virtual SupportType supportBackup() const { return m_Backup; }
|
||||
virtual SupportType supportUpdateUUID() const { return m_UpdateUUID; }
|
||||
virtual SupportType supportGetUUID() const { return m_GetUUID; }
|
||||
virtual CommandSupportType supportGetUsed() const { return m_GetUsed; }
|
||||
virtual CommandSupportType supportGetLabel() const { return m_GetLabel; }
|
||||
virtual CommandSupportType supportSetLabel() const { return m_SetLabel; }
|
||||
virtual CommandSupportType supportCreate() const { return m_Create; }
|
||||
virtual CommandSupportType supportGrow() const { return m_Grow; }
|
||||
virtual CommandSupportType supportShrink() const { return m_Shrink; }
|
||||
virtual CommandSupportType supportMove() const { return m_Move; }
|
||||
virtual CommandSupportType supportCheck() const { return m_Check; }
|
||||
virtual CommandSupportType supportCopy() const { return m_Copy; }
|
||||
virtual CommandSupportType supportBackup() const { return m_Backup; }
|
||||
virtual CommandSupportType supportUpdateUUID() const { return m_UpdateUUID; }
|
||||
virtual CommandSupportType supportGetUUID() const { return m_GetUUID; }
|
||||
|
||||
virtual qint64 minCapacity() const;
|
||||
virtual qint64 maxCapacity() const;
|
||||
|
||||
protected:
|
||||
static SupportType m_GetUsed;
|
||||
static SupportType m_GetLabel;
|
||||
static SupportType m_SetLabel;
|
||||
static SupportType m_Create;
|
||||
static SupportType m_Grow;
|
||||
static SupportType m_Shrink;
|
||||
static SupportType m_Move;
|
||||
static SupportType m_Check;
|
||||
static SupportType m_Copy;
|
||||
static SupportType m_Backup;
|
||||
static SupportType m_UpdateUUID;
|
||||
static SupportType m_GetUUID;
|
||||
static CommandSupportType m_GetUsed;
|
||||
static CommandSupportType m_GetLabel;
|
||||
static CommandSupportType m_SetLabel;
|
||||
static CommandSupportType m_Create;
|
||||
static CommandSupportType m_Grow;
|
||||
static CommandSupportType m_Shrink;
|
||||
static CommandSupportType m_Move;
|
||||
static CommandSupportType m_Check;
|
||||
static CommandSupportType m_Copy;
|
||||
static CommandSupportType m_Backup;
|
||||
static CommandSupportType m_UpdateUUID;
|
||||
static CommandSupportType m_GetUUID;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -66,14 +66,14 @@ class FileSystem
|
|||
};
|
||||
|
||||
/** The type of support for a given FileSystem action */
|
||||
enum SupportType
|
||||
enum CommandSupportType
|
||||
{
|
||||
SupportNone = 0, /**< no support */
|
||||
SupportInternal = 1, /**< internal support */
|
||||
SupportExternal = 2 /**< supported by some external command */
|
||||
};
|
||||
|
||||
Q_DECLARE_FLAGS(SupportTypes, SupportType)
|
||||
Q_DECLARE_FLAGS(CommandSupportTypes, CommandSupportType)
|
||||
|
||||
protected:
|
||||
FileSystem(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label, FileSystem::Type t);
|
||||
|
@ -94,18 +94,18 @@ class FileSystem
|
|||
virtual QString readUUID(const QString& deviceNode) const;
|
||||
virtual bool updateBootSector(Report& report, const QString& deviceNode) const;
|
||||
|
||||
virtual SupportType supportGetUsed() const { return SupportNone; } /**< @return SupportType for getting used capacity */
|
||||
virtual SupportType supportGetLabel() const { return SupportNone; } /**< @return SupportType for reading label*/
|
||||
virtual SupportType supportCreate() const { return SupportNone; } /**< @return SupportType for creating */
|
||||
virtual SupportType supportGrow() const { return SupportNone; } /**< @return SupportType for growing */
|
||||
virtual SupportType supportShrink() const { return SupportNone; } /**< @return SupportType for shrinking */
|
||||
virtual SupportType supportMove() const { return SupportNone; } /**< @return SupportType for moving */
|
||||
virtual SupportType supportCheck() const { return SupportNone; } /**< @return SupportType for checking */
|
||||
virtual SupportType supportCopy() const { return SupportNone; } /**< @return SupportType for copying */
|
||||
virtual SupportType supportBackup() const { return SupportNone; } /**< @return SupportType for backing up */
|
||||
virtual SupportType supportSetLabel() const { return SupportNone; } /**< @return SupportType for setting label*/
|
||||
virtual SupportType supportUpdateUUID() const { return SupportNone; } /**< @return SupportType for updating the UUID */
|
||||
virtual SupportType supportGetUUID() const { return SupportNone; } /**< @return SupportType for reading the UUID */
|
||||
virtual CommandSupportType supportGetUsed() const { return SupportNone; } /**< @return CommandSupportType for getting used capacity */
|
||||
virtual CommandSupportType supportGetLabel() const { return SupportNone; } /**< @return CommandSupportType for reading label*/
|
||||
virtual CommandSupportType supportCreate() const { return SupportNone; } /**< @return CommandSupportType for creating */
|
||||
virtual CommandSupportType supportGrow() const { return SupportNone; } /**< @return CommandSupportType for growing */
|
||||
virtual CommandSupportType supportShrink() const { return SupportNone; } /**< @return CommandSupportType for shrinking */
|
||||
virtual CommandSupportType supportMove() const { return SupportNone; } /**< @return CommandSupportType for moving */
|
||||
virtual CommandSupportType supportCheck() const { return SupportNone; } /**< @return CommandSupportType for checking */
|
||||
virtual CommandSupportType supportCopy() const { return SupportNone; } /**< @return CommandSupportType for copying */
|
||||
virtual CommandSupportType supportBackup() const { return SupportNone; } /**< @return CommandSupportType for backing up */
|
||||
virtual CommandSupportType supportSetLabel() const { return SupportNone; } /**< @return CommandSupportType for setting label*/
|
||||
virtual CommandSupportType supportUpdateUUID() const { return SupportNone; } /**< @return CommandSupportType for updating the UUID */
|
||||
virtual CommandSupportType supportGetUUID() const { return SupportNone; } /**< @return CommandSupportType for reading the UUID */
|
||||
|
||||
virtual qint64 minCapacity() const;
|
||||
virtual qint64 maxCapacity() const;
|
||||
|
@ -156,6 +156,6 @@ class FileSystem
|
|||
QString m_UUID;
|
||||
};
|
||||
|
||||
Q_DECLARE_OPERATORS_FOR_FLAGS(FileSystem::SupportTypes)
|
||||
Q_DECLARE_OPERATORS_FOR_FLAGS(FileSystem::CommandSupportTypes)
|
||||
|
||||
#endif
|
||||
|
|
|
@ -27,14 +27,14 @@
|
|||
|
||||
namespace FS
|
||||
{
|
||||
FileSystem::SupportType hfs::m_GetUsed = FileSystem::SupportNone;
|
||||
FileSystem::SupportType hfs::m_GetLabel = FileSystem::SupportNone;
|
||||
FileSystem::SupportType hfs::m_Create = FileSystem::SupportNone;
|
||||
FileSystem::SupportType hfs::m_Shrink = FileSystem::SupportNone;
|
||||
FileSystem::SupportType hfs::m_Move = FileSystem::SupportNone;
|
||||
FileSystem::SupportType hfs::m_Check = FileSystem::SupportNone;
|
||||
FileSystem::SupportType hfs::m_Copy = FileSystem::SupportNone;
|
||||
FileSystem::SupportType hfs::m_Backup = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType hfs::m_GetUsed = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType hfs::m_GetLabel = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType hfs::m_Create = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType hfs::m_Shrink = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType hfs::m_Move = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType hfs::m_Check = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType hfs::m_Copy = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType hfs::m_Backup = FileSystem::SupportNone;
|
||||
|
||||
hfs::hfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label) :
|
||||
FileSystem(firstsector, lastsector, sectorsused, label, FileSystem::Hfs)
|
||||
|
|
32
src/fs/hfs.h
32
src/fs/hfs.h
|
@ -45,26 +45,26 @@ namespace FS
|
|||
virtual bool check(Report& report, const QString& deviceNode) const;
|
||||
virtual bool create(Report& report, const QString& deviceNode) const;
|
||||
|
||||
virtual SupportType supportGetUsed() const { return m_GetUsed; }
|
||||
virtual SupportType supportGetLabel() const { return m_GetLabel; }
|
||||
virtual SupportType supportCreate() const { return m_Create; }
|
||||
virtual SupportType supportShrink() const { return m_Shrink; }
|
||||
virtual SupportType supportMove() const { return m_Move; }
|
||||
virtual SupportType supportCheck() const { return m_Check; }
|
||||
virtual SupportType supportCopy() const { return m_Copy; }
|
||||
virtual SupportType supportBackup() const { return m_Backup; }
|
||||
virtual CommandSupportType supportGetUsed() const { return m_GetUsed; }
|
||||
virtual CommandSupportType supportGetLabel() const { return m_GetLabel; }
|
||||
virtual CommandSupportType supportCreate() const { return m_Create; }
|
||||
virtual CommandSupportType supportShrink() const { return m_Shrink; }
|
||||
virtual CommandSupportType supportMove() const { return m_Move; }
|
||||
virtual CommandSupportType supportCheck() const { return m_Check; }
|
||||
virtual CommandSupportType supportCopy() const { return m_Copy; }
|
||||
virtual CommandSupportType supportBackup() const { return m_Backup; }
|
||||
|
||||
virtual qint64 maxCapacity() const;
|
||||
|
||||
protected:
|
||||
static SupportType m_GetUsed;
|
||||
static SupportType m_GetLabel;
|
||||
static SupportType m_Create;
|
||||
static SupportType m_Shrink;
|
||||
static SupportType m_Move;
|
||||
static SupportType m_Check;
|
||||
static SupportType m_Copy;
|
||||
static SupportType m_Backup;
|
||||
static CommandSupportType m_GetUsed;
|
||||
static CommandSupportType m_GetLabel;
|
||||
static CommandSupportType m_Create;
|
||||
static CommandSupportType m_Shrink;
|
||||
static CommandSupportType m_Move;
|
||||
static CommandSupportType m_Check;
|
||||
static CommandSupportType m_Copy;
|
||||
static CommandSupportType m_Backup;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -26,12 +26,12 @@
|
|||
|
||||
namespace FS
|
||||
{
|
||||
FileSystem::SupportType hfsplus::m_GetUsed = FileSystem::SupportNone;
|
||||
FileSystem::SupportType hfsplus::m_Shrink = FileSystem::SupportNone;
|
||||
FileSystem::SupportType hfsplus::m_Move = FileSystem::SupportNone;
|
||||
FileSystem::SupportType hfsplus::m_Check = FileSystem::SupportNone;
|
||||
FileSystem::SupportType hfsplus::m_Copy = FileSystem::SupportNone;
|
||||
FileSystem::SupportType hfsplus::m_Backup = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType hfsplus::m_GetUsed = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType hfsplus::m_Shrink = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType hfsplus::m_Move = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType hfsplus::m_Check = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType hfsplus::m_Copy = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType hfsplus::m_Backup = FileSystem::SupportNone;
|
||||
|
||||
hfsplus::hfsplus(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label) :
|
||||
FileSystem(firstsector, lastsector, sectorsused, label, FileSystem::HfsPlus)
|
||||
|
|
|
@ -44,22 +44,22 @@ namespace FS
|
|||
|
||||
virtual bool check(Report& report, const QString& deviceNode) const;
|
||||
|
||||
virtual SupportType supportGetUsed() const { return m_GetUsed; }
|
||||
virtual SupportType supportShrink() const { return m_Shrink; }
|
||||
virtual SupportType supportMove() const { return m_Move; }
|
||||
virtual SupportType supportCheck() const { return m_Check; }
|
||||
virtual SupportType supportCopy() const { return m_Copy; }
|
||||
virtual SupportType supportBackup() const { return m_Backup; }
|
||||
virtual CommandSupportType supportGetUsed() const { return m_GetUsed; }
|
||||
virtual CommandSupportType supportShrink() const { return m_Shrink; }
|
||||
virtual CommandSupportType supportMove() const { return m_Move; }
|
||||
virtual CommandSupportType supportCheck() const { return m_Check; }
|
||||
virtual CommandSupportType supportCopy() const { return m_Copy; }
|
||||
virtual CommandSupportType supportBackup() const { return m_Backup; }
|
||||
|
||||
virtual qint64 maxCapacity() const;
|
||||
|
||||
protected:
|
||||
static SupportType m_GetUsed;
|
||||
static SupportType m_Shrink;
|
||||
static SupportType m_Move;
|
||||
static SupportType m_Check;
|
||||
static SupportType m_Copy;
|
||||
static SupportType m_Backup;
|
||||
static CommandSupportType m_GetUsed;
|
||||
static CommandSupportType m_Shrink;
|
||||
static CommandSupportType m_Move;
|
||||
static CommandSupportType m_Check;
|
||||
static CommandSupportType m_Copy;
|
||||
static CommandSupportType m_Backup;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -33,15 +33,15 @@
|
|||
|
||||
namespace FS
|
||||
{
|
||||
FileSystem::SupportType jfs::m_GetUsed = FileSystem::SupportNone;
|
||||
FileSystem::SupportType jfs::m_GetLabel = FileSystem::SupportNone;
|
||||
FileSystem::SupportType jfs::m_Create = FileSystem::SupportNone;
|
||||
FileSystem::SupportType jfs::m_Grow = FileSystem::SupportNone;
|
||||
FileSystem::SupportType jfs::m_Move = FileSystem::SupportNone;
|
||||
FileSystem::SupportType jfs::m_Check = FileSystem::SupportNone;
|
||||
FileSystem::SupportType jfs::m_Copy = FileSystem::SupportNone;
|
||||
FileSystem::SupportType jfs::m_Backup = FileSystem::SupportNone;
|
||||
FileSystem::SupportType jfs::m_SetLabel = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType jfs::m_GetUsed = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType jfs::m_GetLabel = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType jfs::m_Create = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType jfs::m_Grow = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType jfs::m_Move = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType jfs::m_Check = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType jfs::m_Copy = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType jfs::m_Backup = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType jfs::m_SetLabel = FileSystem::SupportNone;
|
||||
|
||||
jfs::jfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label) :
|
||||
FileSystem(firstsector, lastsector, sectorsused, label, FileSystem::Jfs)
|
||||
|
|
36
src/fs/jfs.h
36
src/fs/jfs.h
|
@ -48,28 +48,28 @@ namespace FS
|
|||
virtual bool resize(Report& report, const QString& deviceNode, qint64 length) const;
|
||||
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel);
|
||||
|
||||
virtual SupportType supportGetUsed() const { return m_GetUsed; }
|
||||
virtual SupportType supportGetLabel() const { return m_GetLabel; }
|
||||
virtual SupportType supportCreate() const { return m_Create; }
|
||||
virtual SupportType supportGrow() const { return m_Grow; }
|
||||
virtual SupportType supportMove() const { return m_Move; }
|
||||
virtual SupportType supportCheck() const { return m_Check; }
|
||||
virtual SupportType supportCopy() const { return m_Copy; }
|
||||
virtual SupportType supportBackup() const { return m_Backup; }
|
||||
virtual SupportType supportSetLabel() const { return m_SetLabel; }
|
||||
virtual CommandSupportType supportGetUsed() const { return m_GetUsed; }
|
||||
virtual CommandSupportType supportGetLabel() const { return m_GetLabel; }
|
||||
virtual CommandSupportType supportCreate() const { return m_Create; }
|
||||
virtual CommandSupportType supportGrow() const { return m_Grow; }
|
||||
virtual CommandSupportType supportMove() const { return m_Move; }
|
||||
virtual CommandSupportType supportCheck() const { return m_Check; }
|
||||
virtual CommandSupportType supportCopy() const { return m_Copy; }
|
||||
virtual CommandSupportType supportBackup() const { return m_Backup; }
|
||||
virtual CommandSupportType supportSetLabel() const { return m_SetLabel; }
|
||||
|
||||
virtual qint64 minCapacity() const;
|
||||
|
||||
protected:
|
||||
static SupportType m_GetUsed;
|
||||
static SupportType m_GetLabel;
|
||||
static SupportType m_Create;
|
||||
static SupportType m_Grow;
|
||||
static SupportType m_Move;
|
||||
static SupportType m_Check;
|
||||
static SupportType m_Copy;
|
||||
static SupportType m_Backup;
|
||||
static SupportType m_SetLabel;
|
||||
static CommandSupportType m_GetUsed;
|
||||
static CommandSupportType m_GetLabel;
|
||||
static CommandSupportType m_Create;
|
||||
static CommandSupportType m_Grow;
|
||||
static CommandSupportType m_Move;
|
||||
static CommandSupportType m_Check;
|
||||
static CommandSupportType m_Copy;
|
||||
static CommandSupportType m_Backup;
|
||||
static CommandSupportType m_SetLabel;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -25,14 +25,14 @@
|
|||
|
||||
namespace FS
|
||||
{
|
||||
FileSystem::SupportType linuxswap::m_Create = FileSystem::SupportNone;
|
||||
FileSystem::SupportType linuxswap::m_Grow = FileSystem::SupportNone;
|
||||
FileSystem::SupportType linuxswap::m_Shrink = FileSystem::SupportNone;
|
||||
FileSystem::SupportType linuxswap::m_Move = FileSystem::SupportNone;
|
||||
FileSystem::SupportType linuxswap::m_Copy = FileSystem::SupportNone;
|
||||
FileSystem::SupportType linuxswap::m_GetLabel = FileSystem::SupportNone;
|
||||
FileSystem::SupportType linuxswap::m_SetLabel = FileSystem::SupportNone;
|
||||
FileSystem::SupportType linuxswap::m_GetUUID = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType linuxswap::m_Create = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType linuxswap::m_Grow = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType linuxswap::m_Shrink = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType linuxswap::m_Move = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType linuxswap::m_Copy = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType linuxswap::m_GetLabel = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType linuxswap::m_SetLabel = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType linuxswap::m_GetUUID = FileSystem::SupportNone;
|
||||
|
||||
linuxswap::linuxswap(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label) :
|
||||
FileSystem(firstsector, lastsector, sectorsused, label, FileSystem::LinuxSwap)
|
||||
|
|
|
@ -55,24 +55,24 @@ namespace FS
|
|||
virtual QString mountTitle() const;
|
||||
virtual QString unmountTitle() const;
|
||||
|
||||
virtual SupportType supportCreate() const { return m_Create; }
|
||||
virtual SupportType supportGrow() const { return m_Grow; }
|
||||
virtual SupportType supportShrink() const { return m_Shrink; }
|
||||
virtual SupportType supportMove() const { return m_Move; }
|
||||
virtual SupportType supportCopy() const { return m_Copy; }
|
||||
virtual SupportType supportGetLabel() const { return m_GetLabel; }
|
||||
virtual SupportType supportSetLabel() const { return m_SetLabel; }
|
||||
virtual SupportType supportGetUUID() const { return m_GetUUID; }
|
||||
virtual CommandSupportType supportCreate() const { return m_Create; }
|
||||
virtual CommandSupportType supportGrow() const { return m_Grow; }
|
||||
virtual CommandSupportType supportShrink() const { return m_Shrink; }
|
||||
virtual CommandSupportType supportMove() const { return m_Move; }
|
||||
virtual CommandSupportType supportCopy() const { return m_Copy; }
|
||||
virtual CommandSupportType supportGetLabel() const { return m_GetLabel; }
|
||||
virtual CommandSupportType supportSetLabel() const { return m_SetLabel; }
|
||||
virtual CommandSupportType supportGetUUID() const { return m_GetUUID; }
|
||||
|
||||
protected:
|
||||
static SupportType m_Create;
|
||||
static SupportType m_Grow;
|
||||
static SupportType m_Shrink;
|
||||
static SupportType m_Move;
|
||||
static SupportType m_Copy;
|
||||
static SupportType m_SetLabel;
|
||||
static SupportType m_GetLabel;
|
||||
static SupportType m_GetUUID;
|
||||
static CommandSupportType m_Create;
|
||||
static CommandSupportType m_Grow;
|
||||
static CommandSupportType m_Shrink;
|
||||
static CommandSupportType m_Move;
|
||||
static CommandSupportType m_Copy;
|
||||
static CommandSupportType m_SetLabel;
|
||||
static CommandSupportType m_GetLabel;
|
||||
static CommandSupportType m_GetUUID;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -37,18 +37,18 @@
|
|||
|
||||
namespace FS
|
||||
{
|
||||
FileSystem::SupportType ntfs::m_GetUsed = FileSystem::SupportNone;
|
||||
FileSystem::SupportType ntfs::m_GetLabel = FileSystem::SupportNone;
|
||||
FileSystem::SupportType ntfs::m_Create = FileSystem::SupportNone;
|
||||
FileSystem::SupportType ntfs::m_Grow = FileSystem::SupportNone;
|
||||
FileSystem::SupportType ntfs::m_Shrink = FileSystem::SupportNone;
|
||||
FileSystem::SupportType ntfs::m_Move = FileSystem::SupportNone;
|
||||
FileSystem::SupportType ntfs::m_Check = FileSystem::SupportNone;
|
||||
FileSystem::SupportType ntfs::m_Copy = FileSystem::SupportNone;
|
||||
FileSystem::SupportType ntfs::m_Backup = FileSystem::SupportNone;
|
||||
FileSystem::SupportType ntfs::m_SetLabel = FileSystem::SupportNone;
|
||||
FileSystem::SupportType ntfs::m_UpdateUUID = FileSystem::SupportNone;
|
||||
FileSystem::SupportType ntfs::m_GetUUID = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType ntfs::m_GetUsed = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType ntfs::m_GetLabel = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType ntfs::m_Create = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType ntfs::m_Grow = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType ntfs::m_Shrink = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType ntfs::m_Move = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType ntfs::m_Check = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType ntfs::m_Copy = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType ntfs::m_Backup = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType ntfs::m_SetLabel = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType ntfs::m_UpdateUUID = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType ntfs::m_GetUUID = FileSystem::SupportNone;
|
||||
|
||||
ntfs::ntfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label) :
|
||||
FileSystem(firstsector, lastsector, sectorsused, label, FileSystem::Ntfs)
|
||||
|
|
|
@ -51,34 +51,34 @@ namespace FS
|
|||
virtual bool updateUUID(Report& report, const QString& deviceNode) const;
|
||||
virtual bool updateBootSector(Report& report, const QString& deviceNode) const;
|
||||
|
||||
virtual SupportType supportGetUsed() const { return m_GetUsed; }
|
||||
virtual SupportType supportGetLabel() const { return m_GetLabel; }
|
||||
virtual SupportType supportCreate() const { return m_Create; }
|
||||
virtual SupportType supportGrow() const { return m_Grow; }
|
||||
virtual SupportType supportShrink() const { return m_Shrink; }
|
||||
virtual SupportType supportMove() const { return m_Move; }
|
||||
virtual SupportType supportCheck() const { return m_Check; }
|
||||
virtual SupportType supportCopy() const { return m_Copy; }
|
||||
virtual SupportType supportBackup() const { return m_Backup; }
|
||||
virtual SupportType supportSetLabel() const { return m_SetLabel; }
|
||||
virtual SupportType supportUpdateUUID() const { return m_UpdateUUID; }
|
||||
virtual SupportType supportGetUUID() const { return m_GetUUID; }
|
||||
virtual CommandSupportType supportGetUsed() const { return m_GetUsed; }
|
||||
virtual CommandSupportType supportGetLabel() const { return m_GetLabel; }
|
||||
virtual CommandSupportType supportCreate() const { return m_Create; }
|
||||
virtual CommandSupportType supportGrow() const { return m_Grow; }
|
||||
virtual CommandSupportType supportShrink() const { return m_Shrink; }
|
||||
virtual CommandSupportType supportMove() const { return m_Move; }
|
||||
virtual CommandSupportType supportCheck() const { return m_Check; }
|
||||
virtual CommandSupportType supportCopy() const { return m_Copy; }
|
||||
virtual CommandSupportType supportBackup() const { return m_Backup; }
|
||||
virtual CommandSupportType supportSetLabel() const { return m_SetLabel; }
|
||||
virtual CommandSupportType supportUpdateUUID() const { return m_UpdateUUID; }
|
||||
virtual CommandSupportType supportGetUUID() const { return m_GetUUID; }
|
||||
|
||||
virtual qint64 maxCapacity() const;
|
||||
|
||||
protected:
|
||||
static SupportType m_GetUsed;
|
||||
static SupportType m_GetLabel;
|
||||
static SupportType m_Create;
|
||||
static SupportType m_Grow;
|
||||
static SupportType m_Shrink;
|
||||
static SupportType m_Move;
|
||||
static SupportType m_Check;
|
||||
static SupportType m_Copy;
|
||||
static SupportType m_Backup;
|
||||
static SupportType m_SetLabel;
|
||||
static SupportType m_UpdateUUID;
|
||||
static SupportType m_GetUUID;
|
||||
static CommandSupportType m_GetUsed;
|
||||
static CommandSupportType m_GetLabel;
|
||||
static CommandSupportType m_Create;
|
||||
static CommandSupportType m_Grow;
|
||||
static CommandSupportType m_Shrink;
|
||||
static CommandSupportType m_Move;
|
||||
static CommandSupportType m_Check;
|
||||
static CommandSupportType m_Copy;
|
||||
static CommandSupportType m_Backup;
|
||||
static CommandSupportType m_SetLabel;
|
||||
static CommandSupportType m_UpdateUUID;
|
||||
static CommandSupportType m_GetUUID;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -26,13 +26,13 @@
|
|||
|
||||
namespace FS
|
||||
{
|
||||
FileSystem::SupportType reiser4::m_GetUsed = FileSystem::SupportNone;
|
||||
FileSystem::SupportType reiser4::m_GetLabel = FileSystem::SupportNone;
|
||||
FileSystem::SupportType reiser4::m_Create = FileSystem::SupportNone;
|
||||
FileSystem::SupportType reiser4::m_Move = FileSystem::SupportNone;
|
||||
FileSystem::SupportType reiser4::m_Check = FileSystem::SupportNone;
|
||||
FileSystem::SupportType reiser4::m_Copy = FileSystem::SupportNone;
|
||||
FileSystem::SupportType reiser4::m_Backup = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType reiser4::m_GetUsed = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType reiser4::m_GetLabel = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType reiser4::m_Create = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType reiser4::m_Move = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType reiser4::m_Check = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType reiser4::m_Copy = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType reiser4::m_Backup = FileSystem::SupportNone;
|
||||
|
||||
reiser4::reiser4(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label) :
|
||||
FileSystem(firstsector, lastsector, sectorsused, label, FileSystem::Reiser4)
|
||||
|
|
|
@ -46,22 +46,22 @@ namespace FS
|
|||
virtual bool check(Report& report, const QString& deviceNode) const;
|
||||
virtual bool create(Report& report, const QString& deviceNode) const;
|
||||
|
||||
virtual SupportType supportGetUsed() const { return m_GetUsed; }
|
||||
virtual SupportType supportGetLabel() const { return m_GetLabel; }
|
||||
virtual SupportType supportCreate() const { return m_Create; }
|
||||
virtual SupportType supportMove() const { return m_Move; }
|
||||
virtual SupportType supportCheck() const { return m_Check; }
|
||||
virtual SupportType supportCopy() const { return m_Copy; }
|
||||
virtual SupportType supportBackup() const { return m_Backup; }
|
||||
virtual CommandSupportType supportGetUsed() const { return m_GetUsed; }
|
||||
virtual CommandSupportType supportGetLabel() const { return m_GetLabel; }
|
||||
virtual CommandSupportType supportCreate() const { return m_Create; }
|
||||
virtual CommandSupportType supportMove() const { return m_Move; }
|
||||
virtual CommandSupportType supportCheck() const { return m_Check; }
|
||||
virtual CommandSupportType supportCopy() const { return m_Copy; }
|
||||
virtual CommandSupportType supportBackup() const { return m_Backup; }
|
||||
|
||||
protected:
|
||||
static SupportType m_GetUsed;
|
||||
static SupportType m_GetLabel;
|
||||
static SupportType m_Create;
|
||||
static SupportType m_Move;
|
||||
static SupportType m_Check;
|
||||
static SupportType m_Copy;
|
||||
static SupportType m_Backup;
|
||||
static CommandSupportType m_GetUsed;
|
||||
static CommandSupportType m_GetLabel;
|
||||
static CommandSupportType m_Create;
|
||||
static CommandSupportType m_Move;
|
||||
static CommandSupportType m_Check;
|
||||
static CommandSupportType m_Copy;
|
||||
static CommandSupportType m_Backup;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -29,18 +29,18 @@
|
|||
|
||||
namespace FS
|
||||
{
|
||||
FileSystem::SupportType reiserfs::m_GetUsed = FileSystem::SupportNone;
|
||||
FileSystem::SupportType reiserfs::m_GetLabel = FileSystem::SupportNone;
|
||||
FileSystem::SupportType reiserfs::m_Create = FileSystem::SupportNone;
|
||||
FileSystem::SupportType reiserfs::m_Grow = FileSystem::SupportNone;
|
||||
FileSystem::SupportType reiserfs::m_Shrink = FileSystem::SupportNone;
|
||||
FileSystem::SupportType reiserfs::m_Move = FileSystem::SupportNone;
|
||||
FileSystem::SupportType reiserfs::m_Check = FileSystem::SupportNone;
|
||||
FileSystem::SupportType reiserfs::m_Copy = FileSystem::SupportNone;
|
||||
FileSystem::SupportType reiserfs::m_Backup = FileSystem::SupportNone;
|
||||
FileSystem::SupportType reiserfs::m_SetLabel = FileSystem::SupportNone;
|
||||
FileSystem::SupportType reiserfs::m_UpdateUUID = FileSystem::SupportNone;
|
||||
FileSystem::SupportType reiserfs::m_GetUUID = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType reiserfs::m_GetUsed = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType reiserfs::m_GetLabel = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType reiserfs::m_Create = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType reiserfs::m_Grow = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType reiserfs::m_Shrink = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType reiserfs::m_Move = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType reiserfs::m_Check = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType reiserfs::m_Copy = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType reiserfs::m_Backup = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType reiserfs::m_SetLabel = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType reiserfs::m_UpdateUUID = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType reiserfs::m_GetUUID = FileSystem::SupportNone;
|
||||
|
||||
reiserfs::reiserfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label) :
|
||||
FileSystem(firstsector, lastsector, sectorsused, label, FileSystem::ReiserFS)
|
||||
|
|
|
@ -51,35 +51,35 @@ namespace FS
|
|||
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel);
|
||||
virtual bool updateUUID(Report& report, const QString& deviceNode) const;
|
||||
|
||||
virtual SupportType supportGetUsed() const { return m_GetUsed; }
|
||||
virtual SupportType supportGetLabel() const { return m_GetLabel; }
|
||||
virtual SupportType supportCreate() const { return m_Create; }
|
||||
virtual SupportType supportGrow() const { return m_Grow; }
|
||||
virtual SupportType supportShrink() const { return m_Shrink; }
|
||||
virtual SupportType supportMove() const { return m_Move; }
|
||||
virtual SupportType supportCheck() const { return m_Check; }
|
||||
virtual SupportType supportCopy() const { return m_Copy; }
|
||||
virtual SupportType supportBackup() const { return m_Backup; }
|
||||
virtual SupportType supportSetLabel() const { return m_SetLabel; }
|
||||
virtual SupportType supportUpdateUUID() const { return m_UpdateUUID; }
|
||||
virtual SupportType supportGetUUID() const { return m_GetUUID; }
|
||||
virtual CommandSupportType supportGetUsed() const { return m_GetUsed; }
|
||||
virtual CommandSupportType supportGetLabel() const { return m_GetLabel; }
|
||||
virtual CommandSupportType supportCreate() const { return m_Create; }
|
||||
virtual CommandSupportType supportGrow() const { return m_Grow; }
|
||||
virtual CommandSupportType supportShrink() const { return m_Shrink; }
|
||||
virtual CommandSupportType supportMove() const { return m_Move; }
|
||||
virtual CommandSupportType supportCheck() const { return m_Check; }
|
||||
virtual CommandSupportType supportCopy() const { return m_Copy; }
|
||||
virtual CommandSupportType supportBackup() const { return m_Backup; }
|
||||
virtual CommandSupportType supportSetLabel() const { return m_SetLabel; }
|
||||
virtual CommandSupportType supportUpdateUUID() const { return m_UpdateUUID; }
|
||||
virtual CommandSupportType supportGetUUID() const { return m_GetUUID; }
|
||||
|
||||
virtual qint64 minCapacity() const;
|
||||
virtual qint64 maxCapacity() const;
|
||||
|
||||
protected:
|
||||
static SupportType m_GetUsed;
|
||||
static SupportType m_GetLabel;
|
||||
static SupportType m_Create;
|
||||
static SupportType m_Grow;
|
||||
static SupportType m_Shrink;
|
||||
static SupportType m_Move;
|
||||
static SupportType m_Check;
|
||||
static SupportType m_Copy;
|
||||
static SupportType m_Backup;
|
||||
static SupportType m_SetLabel;
|
||||
static SupportType m_UpdateUUID;
|
||||
static SupportType m_GetUUID;
|
||||
static CommandSupportType m_GetUsed;
|
||||
static CommandSupportType m_GetLabel;
|
||||
static CommandSupportType m_Create;
|
||||
static CommandSupportType m_Grow;
|
||||
static CommandSupportType m_Shrink;
|
||||
static CommandSupportType m_Move;
|
||||
static CommandSupportType m_Check;
|
||||
static CommandSupportType m_Copy;
|
||||
static CommandSupportType m_Backup;
|
||||
static CommandSupportType m_SetLabel;
|
||||
static CommandSupportType m_UpdateUUID;
|
||||
static CommandSupportType m_GetUUID;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -21,9 +21,9 @@
|
|||
|
||||
namespace FS
|
||||
{
|
||||
FileSystem::SupportType ufs::m_Move = FileSystem::SupportInternal;
|
||||
FileSystem::SupportType ufs::m_Copy = FileSystem::SupportInternal;
|
||||
FileSystem::SupportType ufs::m_Backup = FileSystem::SupportInternal;
|
||||
FileSystem::CommandSupportType ufs::m_Move = FileSystem::SupportInternal;
|
||||
FileSystem::CommandSupportType ufs::m_Copy = FileSystem::SupportInternal;
|
||||
FileSystem::CommandSupportType ufs::m_Backup = FileSystem::SupportInternal;
|
||||
|
||||
ufs::ufs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label) :
|
||||
FileSystem(firstsector, lastsector, sectorsused, label, FileSystem::Ufs)
|
||||
|
|
12
src/fs/ufs.h
12
src/fs/ufs.h
|
@ -40,14 +40,14 @@ namespace FS
|
|||
public:
|
||||
static void init() {}
|
||||
|
||||
virtual SupportType supportMove() const { return m_Move; }
|
||||
virtual SupportType supportCopy() const { return m_Copy; }
|
||||
virtual SupportType supportBackup() const { return m_Backup; }
|
||||
virtual CommandSupportType supportMove() const { return m_Move; }
|
||||
virtual CommandSupportType supportCopy() const { return m_Copy; }
|
||||
virtual CommandSupportType supportBackup() const { return m_Backup; }
|
||||
|
||||
protected:
|
||||
static SupportType m_Move;
|
||||
static SupportType m_Copy;
|
||||
static SupportType m_Backup;
|
||||
static CommandSupportType m_Move;
|
||||
static CommandSupportType m_Copy;
|
||||
static CommandSupportType m_Backup;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
namespace FS
|
||||
{
|
||||
FileSystem::SupportType unformatted::m_Create = FileSystem::SupportExternal;
|
||||
FileSystem::CommandSupportType unformatted::m_Create = FileSystem::SupportExternal;
|
||||
|
||||
unformatted::unformatted(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label) :
|
||||
FileSystem(firstsector, lastsector, sectorsused, label, FileSystem::Unformatted)
|
||||
|
|
|
@ -44,10 +44,10 @@ namespace FS
|
|||
|
||||
virtual bool create(Report&, const QString&) const;
|
||||
|
||||
virtual SupportType supportCreate() const { return m_Create; }
|
||||
virtual CommandSupportType supportCreate() const { return m_Create; }
|
||||
|
||||
protected:
|
||||
static SupportType m_Create;
|
||||
static CommandSupportType m_Create;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -34,15 +34,15 @@
|
|||
|
||||
namespace FS
|
||||
{
|
||||
FileSystem::SupportType xfs::m_GetUsed = FileSystem::SupportNone;
|
||||
FileSystem::SupportType xfs::m_GetLabel = FileSystem::SupportNone;
|
||||
FileSystem::SupportType xfs::m_Create = FileSystem::SupportNone;
|
||||
FileSystem::SupportType xfs::m_Grow = FileSystem::SupportNone;
|
||||
FileSystem::SupportType xfs::m_Move = FileSystem::SupportNone;
|
||||
FileSystem::SupportType xfs::m_Check = FileSystem::SupportNone;
|
||||
FileSystem::SupportType xfs::m_Copy = FileSystem::SupportNone;
|
||||
FileSystem::SupportType xfs::m_Backup = FileSystem::SupportNone;
|
||||
FileSystem::SupportType xfs::m_SetLabel = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType xfs::m_GetUsed = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType xfs::m_GetLabel = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType xfs::m_Create = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType xfs::m_Grow = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType xfs::m_Move = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType xfs::m_Check = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType xfs::m_Copy = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType xfs::m_Backup = FileSystem::SupportNone;
|
||||
FileSystem::CommandSupportType xfs::m_SetLabel = FileSystem::SupportNone;
|
||||
|
||||
xfs::xfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label) :
|
||||
FileSystem(firstsector, lastsector, sectorsused, label, FileSystem::Xfs)
|
||||
|
|
36
src/fs/xfs.h
36
src/fs/xfs.h
|
@ -49,28 +49,28 @@ namespace FS
|
|||
virtual bool resize(Report& report, const QString& deviceNode, qint64 length) const;
|
||||
virtual bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel);
|
||||
|
||||
virtual SupportType supportGetUsed() const { return m_GetUsed; }
|
||||
virtual SupportType supportGetLabel() const { return m_GetLabel; }
|
||||
virtual SupportType supportCreate() const { return m_Create; }
|
||||
virtual SupportType supportGrow() const { return m_Grow; }
|
||||
virtual SupportType supportMove() const { return m_Move; }
|
||||
virtual SupportType supportCheck() const { return m_Check; }
|
||||
virtual SupportType supportCopy() const { return m_Copy; }
|
||||
virtual SupportType supportBackup() const { return m_Backup; }
|
||||
virtual SupportType supportSetLabel() const { return m_SetLabel; }
|
||||
virtual CommandSupportType supportGetUsed() const { return m_GetUsed; }
|
||||
virtual CommandSupportType supportGetLabel() const { return m_GetLabel; }
|
||||
virtual CommandSupportType supportCreate() const { return m_Create; }
|
||||
virtual CommandSupportType supportGrow() const { return m_Grow; }
|
||||
virtual CommandSupportType supportMove() const { return m_Move; }
|
||||
virtual CommandSupportType supportCheck() const { return m_Check; }
|
||||
virtual CommandSupportType supportCopy() const { return m_Copy; }
|
||||
virtual CommandSupportType supportBackup() const { return m_Backup; }
|
||||
virtual CommandSupportType supportSetLabel() const { return m_SetLabel; }
|
||||
|
||||
virtual qint64 minCapacity() const;
|
||||
|
||||
protected:
|
||||
static SupportType m_GetUsed;
|
||||
static SupportType m_GetLabel;
|
||||
static SupportType m_Create;
|
||||
static SupportType m_Grow;
|
||||
static SupportType m_Move;
|
||||
static SupportType m_Check;
|
||||
static SupportType m_Copy;
|
||||
static SupportType m_Backup;
|
||||
static SupportType m_SetLabel;
|
||||
static CommandSupportType m_GetUsed;
|
||||
static CommandSupportType m_GetLabel;
|
||||
static CommandSupportType m_Create;
|
||||
static CommandSupportType m_Grow;
|
||||
static CommandSupportType m_Move;
|
||||
static CommandSupportType m_Check;
|
||||
static CommandSupportType m_Copy;
|
||||
static CommandSupportType m_Backup;
|
||||
static CommandSupportType m_SetLabel;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ bool ResizeFileSystemJob::run(Report& parent)
|
|||
{
|
||||
report->line() << i18nc("@info/plain", "Resizing file system from %1 to %2 sectors.", partition().fileSystem().length(), newLength());
|
||||
|
||||
FileSystem::SupportType support = (newLength() < partition().fileSystem().length()) ? partition().fileSystem().supportShrink() : partition().fileSystem().supportGrow();
|
||||
FileSystem::CommandSupportType support = (newLength() < partition().fileSystem().length()) ? partition().fileSystem().supportShrink() : partition().fileSystem().supportGrow();
|
||||
|
||||
switch(support)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue