4#ifndef QSTORAGEINFO_P_H
5#define QSTORAGEINFO_P_H
18#include <QtCore/qloggingcategory.h>
19#include <QtCore/qsystemdetection.h>
20#include <QtCore/qtenvironmentvariables.h>
21#include <QtCore/private/qglobal_p.h>
32 bytesTotal(-1), bytesFree(-1), bytesAvailable(-1),
blockSize(-1),
52 void retrieveVolumeInfo();
53 void retrieveDiskFreeSpace();
54 bool queryStorageProperty();
55 void queryFileFsSectorSizeInformation();
56#elif defined(Q_OS_DARWIN)
57 void retrievePosixInfo();
58 void retrieveUrlProperties(
bool initRootPath =
false);
60#elif defined(Q_OS_UNIX)
61 void retrieveVolumeInfo();
82template <
typename String>
92#if defined(Q_OS_ANDROID)
94 static constexpr char RootFsStr[] =
"";
97 static constexpr char RootFsStr[] =
"rootfs";
126 if (!fsType.
isEmpty() && fsType == RootFsStr)
IOBluetoothDevice * device
bool isEmpty() const noexcept
Returns true if the byte array has size 0; otherwise returns false.
static QString fromNativeSeparators(const QString &pathName)
static QString decodeName(const QByteArray &localFileName)
This does the reverse of QFile::encodeName() using localFileName.
\macro QT_RESTRICTED_CAST_FROM_ASCII
bool startsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string starts with s; otherwise returns false.
qsizetype size() const
Returns the number of characters in this string.
const QChar at(qsizetype i) const
Returns the character at the given index position in the string.
Combined button and popup list for selecting options.
#define Q_LOGGING_CATEGORY(name,...)
static QString retrieveLabel(const QByteArray &device)
static bool shouldIncludeFs(const QString &mountDir, const QByteArray &fsType)
QT_BEGIN_NAMESPACE static Q_LOGGING_CATEGORY(lcStorageInfo, "qt.core.qstorageinfo", QtWarningMsg) class QStorageInfoPrivate bool isParentOf(const String &parent, const QString &dirName)
#define QStringLiteral(str)
Q_CORE_EXPORT QByteArray qgetenv(const char *varName)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent