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>.
Loading...
Searching...
No Matches
QStorageInfoPrivate Class Reference

#include <qstorageinfo_p.h>

+ Inheritance diagram for QStorageInfoPrivate:
+ Collaboration diagram for QStorageInfoPrivate:

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.
 
QSharedDataoperator= (const QSharedData &)=delete
 
 ~QSharedData ()=default
 

Static Public Member Functions

static QList< QStorageInfomountedVolumes ()
 
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
 

Detailed Description

Definition at line 32 of file qstorageinfo_p.h.

Constructor & Destructor Documentation

◆ QStorageInfoPrivate()

QStorageInfoPrivate::QStorageInfoPrivate ( )
default

Referenced by mountedVolumes().

+ Here is the caller graph for this function:

Member Function Documentation

◆ doStat()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mountedVolumes()

QList< QStorageInfo > QStorageInfoPrivate::mountedVolumes ( )
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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ root()

static QStorageInfo QStorageInfoPrivate::root ( )
inlinestatic

Definition at line 41 of file qstorageinfo_p.h.

References QFile::decodeName(), QDir::fromNativeSeparators(), qgetenv(), and QStringLiteral.

Referenced by mountedVolumes().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ blockSize

int QStorageInfoPrivate::blockSize = -1

Definition at line 103 of file qstorageinfo_p.h.

Referenced by QStorageInfo::blockSize().

◆ bytesAvailable

qint64 QStorageInfoPrivate::bytesAvailable = -1

Definition at line 102 of file qstorageinfo_p.h.

Referenced by QStorageInfo::bytesAvailable().

◆ bytesFree

qint64 QStorageInfoPrivate::bytesFree = -1

Definition at line 101 of file qstorageinfo_p.h.

Referenced by QStorageInfo::bytesFree().

◆ bytesTotal

qint64 QStorageInfoPrivate::bytesTotal = -1

Definition at line 100 of file qstorageinfo_p.h.

Referenced by QStorageInfo::bytesTotal().

◆ device

QByteArray QStorageInfoPrivate::device

Definition at line 95 of file qstorageinfo_p.h.

Referenced by QStorageInfo::device().

◆ fileSystemType

QByteArray QStorageInfoPrivate::fileSystemType

Definition at line 97 of file qstorageinfo_p.h.

Referenced by QStorageInfo::fileSystemType().

◆ name

QString QStorageInfoPrivate::name

Definition at line 98 of file qstorageinfo_p.h.

Referenced by QStorageInfo::displayName(), and QStorageInfo::name().

◆ readOnly

bool QStorageInfoPrivate::readOnly = false

Definition at line 105 of file qstorageinfo_p.h.

Referenced by QStorageInfo::isReadOnly().

◆ ready

bool QStorageInfoPrivate::ready = false

Definition at line 106 of file qstorageinfo_p.h.

Referenced by doStat(), and QStorageInfo::isReady().

◆ rootPath

QString QStorageInfoPrivate::rootPath

◆ subvolume

QByteArray QStorageInfoPrivate::subvolume

Definition at line 96 of file qstorageinfo_p.h.

Referenced by QStorageInfo::subvolume().

◆ valid

bool QStorageInfoPrivate::valid = false

Definition at line 107 of file qstorageinfo_p.h.

Referenced by QStorageInfo::isValid().


The documentation for this class was generated from the following files: