Make it possible to set partition sectors from the outside world
This commit is contained in:
parent
3da87feba1
commit
7fa51ae067
|
@ -111,15 +111,12 @@ class LIBKPMCORE_EXPORT Partition : public PartitionNode
|
||||||
StateRestore = 3 /**< from a RestoreOperation */
|
StateRestore = 3 /**< from a RestoreOperation */
|
||||||
};
|
};
|
||||||
|
|
||||||
public:
|
|
||||||
Partition(PartitionNode* parent, const Device& device, const PartitionRole& role, FileSystem* fs, qint64 sectorStart, qint64 sectorEnd, QString partitionPath, PartitionTable::Flags availableFlags = PartitionTable::FlagNone, const QString& mountPoint = QString(), bool mounted = false, PartitionTable::Flags activeFlags = PartitionTable::FlagNone, State state = StateNone);
|
Partition(PartitionNode* parent, const Device& device, const PartitionRole& role, FileSystem* fs, qint64 sectorStart, qint64 sectorEnd, QString partitionPath, PartitionTable::Flags availableFlags = PartitionTable::FlagNone, const QString& mountPoint = QString(), bool mounted = false, PartitionTable::Flags activeFlags = PartitionTable::FlagNone, State state = StateNone);
|
||||||
~Partition();
|
~Partition();
|
||||||
|
|
||||||
public:
|
|
||||||
Partition(const Partition&);
|
Partition(const Partition&);
|
||||||
Partition& operator=(const Partition&);
|
Partition& operator=(const Partition&);
|
||||||
|
|
||||||
public:
|
|
||||||
bool operator==(const Partition& other) const;
|
bool operator==(const Partition& other) const;
|
||||||
bool operator!=(const Partition& other) const;
|
bool operator!=(const Partition& other) const;
|
||||||
|
|
||||||
|
@ -175,7 +172,10 @@ class LIBKPMCORE_EXPORT Partition : public PartitionNode
|
||||||
void adjustLogicalNumbers(qint32 deletedNumber, qint32 insertedNumber);
|
void adjustLogicalNumbers(qint32 deletedNumber, qint32 insertedNumber);
|
||||||
void checkChildrenMounted();
|
void checkChildrenMounted();
|
||||||
|
|
||||||
protected:
|
void setFirstSector(qint64 s) { m_FirstSector = s; }
|
||||||
|
void setLastSector(qint64 s) { m_LastSector = s; }
|
||||||
|
|
||||||
|
protected:
|
||||||
void append(Partition* p) { m_Children.append(p); }
|
void append(Partition* p) { m_Children.append(p); }
|
||||||
void setDevicePath(const QString& s) { m_DevicePath = s; }
|
void setDevicePath(const QString& s) { m_DevicePath = s; }
|
||||||
void setPartitionPath(const QString& s);
|
void setPartitionPath(const QString& s);
|
||||||
|
@ -183,8 +183,6 @@ class LIBKPMCORE_EXPORT Partition : public PartitionNode
|
||||||
void setMountPoint(const QString& s) { m_MountPoint = s; }
|
void setMountPoint(const QString& s) { m_MountPoint = s; }
|
||||||
void setFlags(PartitionTable::Flags f) { m_ActiveFlags = f; }
|
void setFlags(PartitionTable::Flags f) { m_ActiveFlags = f; }
|
||||||
void setSectorSize(qint32 s) { m_SectorSize = s; }
|
void setSectorSize(qint32 s) { m_SectorSize = s; }
|
||||||
void setFirstSector(qint64 s) { m_FirstSector = s; }
|
|
||||||
void setLastSector(qint64 s) { m_LastSector = s; }
|
|
||||||
void move(qint64 newStartSector);
|
void move(qint64 newStartSector);
|
||||||
void setMounted(bool b) { m_IsMounted = b; }
|
void setMounted(bool b) { m_IsMounted = b; }
|
||||||
void setFlag(PartitionTable::Flag f) { m_ActiveFlags |= f; }
|
void setFlag(PartitionTable::Flag f) { m_ActiveFlags |= f; }
|
||||||
|
|
Loading…
Reference in New Issue