mirror of
https://github.com/linuxdeepin/gio-qt.git
synced 2024-11-10 12:03:46 +01:00
feat: add DGioFileInfo::fsType.
This commit is contained in:
parent
3f21a4a1b7
commit
fb47d1f22f
@ -60,6 +60,7 @@ public:
|
||||
quint64 fsTotalBytes() const;
|
||||
quint64 fsUsedBytes() const;
|
||||
quint64 fsFreeBytes() const;
|
||||
QString fsType() const;
|
||||
|
||||
private:
|
||||
QScopedPointer<DGioFileInfoPrivate> d_ptr;
|
||||
|
@ -207,3 +207,10 @@ quint64 DGioFileInfo::fsFreeBytes() const
|
||||
|
||||
return d->getAttributeUint64(G_FILE_ATTRIBUTE_FILESYSTEM_FREE);
|
||||
}
|
||||
|
||||
QString DGioFileInfo::fsType() const
|
||||
{
|
||||
Q_D(const DGioFileInfo);
|
||||
|
||||
return d->getAttributeString(G_FILE_ATTRIBUTE_FILESYSTEM_TYPE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user