49 :
d(new QStorageInfoPrivate)
69 :
d(new QStorageInfoPrivate)
79 :
d(new QStorageInfoPrivate)
131 if (d->rootPath ==
path)
170 return d->bytesAvailable;
196 return d->bytesTotal;
222 return d->fileSystemType;
282 if (!d->name.isEmpty())
365 return QStorageInfoPrivate::mountedVolumes();
400#ifndef QT_NO_DEBUG_STREAM
406 debug <<
"QStorageInfo(";
408 const QStorageInfoPrivate *
d =
s.d.constData();
409 debug <<
'"' <<
d->rootPath <<
'"';
410 if (!
d->fileSystemType.isEmpty())
411 debug <<
", type=" <<
d->fileSystemType;
412 if (!
d->name.isEmpty())
413 debug <<
", name=\"" <<
d->name <<
'"';
414 if (!
d->device.isEmpty())
415 debug <<
", device=\"" <<
d->device <<
'"';
416 if (!
d->subvolume.isEmpty())
417 debug <<
", subvolume=\"" <<
d->subvolume <<
'"';
419 debug <<
" [read only]";
420 debug << (
d->ready ?
" [ready]" :
" [not ready]");
421 if (
d->bytesTotal > 0) {
422 debug <<
", bytesTotal=" <<
d->bytesTotal <<
", bytesFree=" <<
d->bytesFree
423 <<
", 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)