56 :
d(new QStorageInfoPrivate)
76 :
d(new QStorageInfoPrivate)
86 :
d(new QStorageInfoPrivate)
138 if (d->rootPath ==
path)
177 return d->bytesAvailable;
203 return d->bytesTotal;
229 return d->fileSystemType;
289 if (!d->name.isEmpty())
372 return QStorageInfoPrivate::mountedVolumes();
414#ifndef QT_NO_DEBUG_STREAM
420 debug <<
"QStorageInfo(";
422 const QStorageInfoPrivate *
d =
s.d.constData();
423 debug <<
'"' <<
d->rootPath <<
'"';
424 if (!
d->fileSystemType.isEmpty())
425 debug <<
", type=" <<
d->fileSystemType;
426 if (!
d->name.isEmpty())
427 debug <<
", name=\"" <<
d->name <<
'"';
428 if (!
d->device.isEmpty())
429 debug <<
", device=\"" <<
d->device <<
'"';
430 if (!
d->subvolume.isEmpty())
431 debug <<
", subvolume=\"" <<
d->subvolume <<
'"';
433 debug <<
" [read only]";
434 debug << (
d->ready ?
" [ready]" :
" [not ready]");
435 if (
d->bytesTotal > 0) {
436 debug <<
", bytesTotal=" <<
d->bytesTotal <<
", bytesFree=" <<
d->bytesFree
437 <<
", bytesAvailable=" <<
d->bytesAvailable;
void detach()
If the shared data object's reference count is greater than 1, this function creates a deep copy of t...
static QList< QStorageInfo > mountedVolumes()
Returns the list of QStorageInfo objects that corresponds to the list of currently mounted filesystem...
~QStorageInfo()
Destroys the QStorageInfo object and frees its resources.
QString name() const
Returns the human-readable name of a filesystem, usually called label.
void refresh()
Resets QStorageInfo's internal cache.
qint64 bytesTotal() const
Returns the total volume size in bytes.
qint64 bytesFree() const
Returns the number of free bytes in a volume.
bool isValid() const
Returns true if the QStorageInfo specified by rootPath exists and is mounted correctly.
qint64 bytesAvailable() const
Returns the size (in bytes) available for the current user.
QString displayName() const
Returns the volume's name, if available, or the root path if not.
bool isReady() const
Returns true if the current filesystem is ready to work; false otherwise.
QByteArray device() const
Returns the device for this volume.
QString rootPath() const
Returns the mount point of the filesystem this QStorageInfo object represents.
QStorageInfo & operator=(const QStorageInfo &other)
Makes a copy of the QStorageInfo object other and assigns it to this QStorageInfo object.
QByteArray subvolume() const
QByteArray fileSystemType() const
Returns the type name of the filesystem.
bool isReadOnly() const
Returns true if the current filesystem is protected from writing; false otherwise.
void setPath(const QString &path)
Sets this QStorageInfo object to the filesystem mounted where path is located.
QStorageInfo()
Constructs an empty QStorageInfo object.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
#define Q_GLOBAL_STATIC(TYPE, NAME,...)
GLsizei const GLchar *const * path
QDebug operator<<(QDebug debug, const QStorageInfo &s)
bool comparesEqual(const QStorageInfo &lhs, const QStorageInfo &rhs)