Make sure deprecated Partition::State enums have the same values as the new ones.

This commit is contained in:
Andrius Štikonas 2018-04-09 12:32:46 +01:00
parent b42b41bdea
commit f389306964
1 changed files with 5 additions and 6 deletions

View File

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.* * along with this program. If not, see <http://www.gnu.org/licenses/>.*
*************************************************************************/ *************************************************************************/
#if !defined(KPMCORE_PARTITION_H) #ifndef KPMCORE_PARTITION_H
#define KPMCORE_PARTITION_H #define KPMCORE_PARTITION_H
#include "core/partitionnode.h" #include "core/partitionnode.h"
@ -81,10 +80,10 @@ public:
New, /**< from a NewOperation */ New, /**< from a NewOperation */
Copy, /**< from a CopyOperation */ Copy, /**< from a CopyOperation */
Restore, /**< from a RestoreOperation */ Restore, /**< from a RestoreOperation */
StateNone, /**< deprecated */ StateNone = 0, /**< deprecated */
StateNew, /**< deprecated */ StateNew = 1, /**< deprecated */
StateCopy, /**< deprecated */ StateCopy = 2, /**< deprecated */
StateRestore /**< deprecated */ StateRestore = 3 /**< deprecated */
}; };
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 = State::None); 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 = State::None);