Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <qstorageinfo_p.h>
Public Member Functions | |
QStorageInfoPrivate ()=default | |
void | doStat () |
Public Member Functions inherited from QSharedData | |
QSharedData () noexcept | |
Constructs a QSharedData object with a reference count of 0. | |
QSharedData (const QSharedData &) noexcept | |
Constructs a QSharedData object with reference count 0. | |
QSharedData & | operator= (const QSharedData &)=delete |
~QSharedData ()=default | |
Static Public Member Functions | |
static QList< QStorageInfo > | mountedVolumes () |
static QStorageInfo | root () |
Public Attributes | |
QString | rootPath |
QByteArray | device |
QByteArray | subvolume |
QByteArray | fileSystemType |
QString | name |
qint64 | bytesTotal = -1 |
qint64 | bytesFree = -1 |
qint64 | bytesAvailable = -1 |
int | blockSize = -1 |
bool | readOnly = false |
bool | ready = false |
bool | valid = false |
Public Attributes inherited from QSharedData | |
QAtomicInt | ref |
Definition at line 32 of file qstorageinfo_p.h.
|
default |
void QStorageInfoPrivate::doStat | ( | ) |
Definition at line 435 of file qstorageinfo_linux.cpp.
References QFileInfo::canonicalFilePath(), deviceIdForPath(), QSet< T >::end(), info, QString::isEmpty(), isParentOf(), it, mountIdForPath(), parseMountInfo(), ready, retrieveLabel(), rootPath, and q20::to_address().
Referenced by QStorageInfo::refresh(), and QStorageInfo::setPath().
|
static |
Definition at line 499 of file qstorageinfo_linux.cpp.
References QStorageInfoPrivate(), QSet< T >::begin(), d, QSet< T >::end(), Filtered, info, isParentOf(), it, mountIdForPath(), parseMountInfo(), retrieveDeviceId(), retrieveLabels(), retrieveLabelViaIoctl(), and root().
Referenced by QStorageInfo::mountedVolumes().
|
inlinestatic |
Definition at line 41 of file qstorageinfo_p.h.
References QFile::decodeName(), QDir::fromNativeSeparators(), qgetenv(), and QStringLiteral.
Referenced by mountedVolumes().
int QStorageInfoPrivate::blockSize = -1 |
Definition at line 103 of file qstorageinfo_p.h.
Referenced by QStorageInfo::blockSize().
qint64 QStorageInfoPrivate::bytesAvailable = -1 |
Definition at line 102 of file qstorageinfo_p.h.
Referenced by QStorageInfo::bytesAvailable().
qint64 QStorageInfoPrivate::bytesFree = -1 |
Definition at line 101 of file qstorageinfo_p.h.
Referenced by QStorageInfo::bytesFree().
qint64 QStorageInfoPrivate::bytesTotal = -1 |
Definition at line 100 of file qstorageinfo_p.h.
Referenced by QStorageInfo::bytesTotal().
QByteArray QStorageInfoPrivate::device |
Definition at line 95 of file qstorageinfo_p.h.
Referenced by QStorageInfo::device().
QByteArray QStorageInfoPrivate::fileSystemType |
Definition at line 97 of file qstorageinfo_p.h.
Referenced by QStorageInfo::fileSystemType().
QString QStorageInfoPrivate::name |
Definition at line 98 of file qstorageinfo_p.h.
Referenced by QStorageInfo::displayName(), and QStorageInfo::name().
bool QStorageInfoPrivate::readOnly = false |
Definition at line 105 of file qstorageinfo_p.h.
Referenced by QStorageInfo::isReadOnly().
bool QStorageInfoPrivate::ready = false |
Definition at line 106 of file qstorageinfo_p.h.
Referenced by doStat(), and QStorageInfo::isReady().
QString QStorageInfoPrivate::rootPath |
Definition at line 94 of file qstorageinfo_p.h.
Referenced by QStorageInfo::displayName(), doStat(), QStorageInfo::rootPath(), and QStorageInfo::setPath().
QByteArray QStorageInfoPrivate::subvolume |
Definition at line 96 of file qstorageinfo_p.h.
Referenced by QStorageInfo::subvolume().
bool QStorageInfoPrivate::valid = false |
Definition at line 107 of file qstorageinfo_p.h.
Referenced by QStorageInfo::isValid().