mirror of
https://github.com/linuxdeepin/gio-qt.git
synced 2024-12-26 06:56:25 +01:00
chore: add back support for mistakenly deprecated G_VOLUME_IDENTIFIER_KIND_UNIX_DEVICE.
This commit is contained in:
parent
495e311260
commit
5fb3db906e
2 changed files with 2 additions and 0 deletions
|
@ -31,6 +31,7 @@ class Volume;
|
||||||
enum DGioVolumeIdentifierType {
|
enum DGioVolumeIdentifierType {
|
||||||
VOLUME_IDENTIFIER_TYPE_LABEL,
|
VOLUME_IDENTIFIER_TYPE_LABEL,
|
||||||
VOLUME_IDENTIFIER_TYPE_NFS_MOUNT,
|
VOLUME_IDENTIFIER_TYPE_NFS_MOUNT,
|
||||||
|
VOLUME_IDENTIFIER_TYPE_UNIX_DEVICE,
|
||||||
VOLUME_IDENTIFIER_TYPE_UUID,
|
VOLUME_IDENTIFIER_TYPE_UUID,
|
||||||
VOLUME_IDENTIFIER_TYPE_CLASS
|
VOLUME_IDENTIFIER_TYPE_CLASS
|
||||||
};
|
};
|
||||||
|
|
|
@ -123,6 +123,7 @@ QString DGioVolume::identifier(DGioVolumeIdentifierType id) const
|
||||||
const static QHash<DGioVolumeIdentifierType, std::string> idtmap = {
|
const static QHash<DGioVolumeIdentifierType, std::string> idtmap = {
|
||||||
{DGioVolumeIdentifierType::VOLUME_IDENTIFIER_TYPE_LABEL, G_VOLUME_IDENTIFIER_KIND_LABEL},
|
{DGioVolumeIdentifierType::VOLUME_IDENTIFIER_TYPE_LABEL, G_VOLUME_IDENTIFIER_KIND_LABEL},
|
||||||
{DGioVolumeIdentifierType::VOLUME_IDENTIFIER_TYPE_NFS_MOUNT, G_VOLUME_IDENTIFIER_KIND_NFS_MOUNT},
|
{DGioVolumeIdentifierType::VOLUME_IDENTIFIER_TYPE_NFS_MOUNT, G_VOLUME_IDENTIFIER_KIND_NFS_MOUNT},
|
||||||
|
{DGioVolumeIdentifierType::VOLUME_IDENTIFIER_TYPE_UNIX_DEVICE, G_VOLUME_IDENTIFIER_KIND_UNIX_DEVICE},
|
||||||
{DGioVolumeIdentifierType::VOLUME_IDENTIFIER_TYPE_UUID, G_VOLUME_IDENTIFIER_KIND_UUID},
|
{DGioVolumeIdentifierType::VOLUME_IDENTIFIER_TYPE_UUID, G_VOLUME_IDENTIFIER_KIND_UUID},
|
||||||
{DGioVolumeIdentifierType::VOLUME_IDENTIFIER_TYPE_CLASS, G_VOLUME_IDENTIFIER_KIND_CLASS}
|
{DGioVolumeIdentifierType::VOLUME_IDENTIFIER_TYPE_CLASS, G_VOLUME_IDENTIFIER_KIND_CLASS}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue