![]() |
Qt 6.x
The Qt SDK
|
The QMimeGlobMatchResult class accumulates results from glob matching. More...
#include <qmimeglobpattern_p.h>
Public Member Functions | |
void | addMatch (const QString &mimeType, int weight, const QString &pattern, qsizetype knownSuffixLength=0) |
Public Attributes | |
QStringList | m_matchingMimeTypes |
QStringList | m_allMatchingMimeTypes |
int | m_weight = 0 |
qsizetype | m_matchingPatternLength = 0 |
qsizetype | m_knownSuffixLength = 0 |
The QMimeGlobMatchResult class accumulates results from glob matching.
\inmodule QtCore
Handles glob weights, and preferring longer matches over shorter matches.
Definition at line 27 of file qmimeglobpattern_p.h.
void QMimeGlobMatchResult::addMatch | ( | const QString & | mimeType, |
int | weight, | ||
const QString & | pattern, | ||
qsizetype | knownSuffixLength = 0 |
||
) |
Definition at line 25 of file qmimeglobpattern.cpp.
References m_allMatchingMimeTypes, m_knownSuffixLength, m_matchingMimeTypes, m_matchingPatternLength, m_weight, and mimeType.
QStringList QMimeGlobMatchResult::m_allMatchingMimeTypes |
Definition at line 33 of file qmimeglobpattern_p.h.
Referenced by addMatch(), and QMimeDatabasePrivate::mimeTypeForFileNameAndData().
qsizetype QMimeGlobMatchResult::m_knownSuffixLength = 0 |
Definition at line 36 of file qmimeglobpattern_p.h.
Referenced by addMatch(), and QMimeDatabase::suffixForFileName().
QStringList QMimeGlobMatchResult::m_matchingMimeTypes |
Definition at line 32 of file qmimeglobpattern_p.h.
Referenced by addMatch(), and QMimeDatabasePrivate::mimeTypeForFileNameAndData().
qsizetype QMimeGlobMatchResult::m_matchingPatternLength = 0 |
Definition at line 35 of file qmimeglobpattern_p.h.
Referenced by addMatch().
int QMimeGlobMatchResult::m_weight = 0 |
Definition at line 34 of file qmimeglobpattern_p.h.
Referenced by addMatch().