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"
#include <QtCore/qsystemdetection.h>
#include <QtCore/private/qlocale_tools_p.h>
#include <sys/sysmacros.h>
Go to the source code of this file.
Typedefs | |
using | MountInfo = QStorageInfoPrivate::MountInfo |
Enumerations | |
enum class | FilterMountInfo { All , Filtered } |
Functions | |
static std::optional< dev_t > | deviceNumber (QByteArrayView devno) |
static QByteArray | parseMangledPath (QByteArrayView path) |
static void | tokenizeLine (std::array< QByteArrayView, FieldCount > &fields, QByteArrayView line) |
static std::vector< MountInfo > | doParseMountInfo (const QByteArray &mountinfo, FilterMountInfo filter=FilterMountInfo::All) |
Variables | |
static const char | MountInfoPath [] = "/proc/self/mountinfo" |
static constexpr short | DevNo = 2 |
static constexpr short | FsRoot = 3 |
static constexpr short | MountPoint = 4 |
static constexpr short | MountOptions = 5 |
static constexpr short | FsType = 8 |
static constexpr short | MountSource = 9 |
static constexpr short | SuperOptions = 10 |
static constexpr short | FieldCount = 11 |
using MountInfo = QStorageInfoPrivate::MountInfo |
Definition at line 31 of file qstorageinfo_linux_p.h.
|
strong |
Enumerator | |
---|---|
All | |
Filtered |
Definition at line 159 of file qstorageinfo_linux_p.h.
|
static |
Definition at line 35 of file qstorageinfo_linux_p.h.
References QSet< T >::cbegin(), it, qstrntoll(), and QSet< T >::size().
Referenced by doParseMountInfo().
|
static |
Definition at line 165 of file qstorageinfo_linux_p.h.
References ba, QSet< T >::cbegin(), QString::data(), QFile::decodeName(), deviceNumber(), DevNo, Filtered, FsRoot, FsType, info, it, line, MountInfoPath, MountPoint, MountSource, parseMangledPath(), qDebug, shouldIncludeFs(), QString::size(), and tokenizeLine().
Referenced by parseMountInfo().
|
static |
Definition at line 57 of file qstorageinfo_linux_p.h.
References ret.
Referenced by doParseMountInfo().
|
static |
Definition at line 111 of file qstorageinfo_linux_p.h.
References begin(), QString::constData(), QString::data(), FieldCount, FsType, QString::indexOf(), line, MountInfoPath, MountOptions, qCInfo, qCWarning, QString::size(), and SuperOptions.
Referenced by doParseMountInfo().
|
staticconstexpr |
Definition at line 98 of file qstorageinfo_linux_p.h.
Referenced by doParseMountInfo().
|
staticconstexpr |
Definition at line 107 of file qstorageinfo_linux_p.h.
Referenced by tokenizeLine().
|
staticconstexpr |
Definition at line 99 of file qstorageinfo_linux_p.h.
Referenced by doParseMountInfo().
|
staticconstexpr |
Definition at line 104 of file qstorageinfo_linux_p.h.
Referenced by doParseMountInfo(), and tokenizeLine().
|
static |
Definition at line 33 of file qstorageinfo_linux_p.h.
Referenced by doParseMountInfo(), and tokenizeLine().
|
staticconstexpr |
Definition at line 101 of file qstorageinfo_linux_p.h.
Referenced by tokenizeLine().
|
staticconstexpr |
Definition at line 100 of file qstorageinfo_linux_p.h.
Referenced by doParseMountInfo().
|
staticconstexpr |
Definition at line 105 of file qstorageinfo_linux_p.h.
Referenced by doParseMountInfo().
|
staticconstexpr |
Definition at line 106 of file qstorageinfo_linux_p.h.
Referenced by tokenizeLine().