Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QMimeGlobMatchResult Class Reference

The QMimeGlobMatchResult class accumulates results from glob matching. More...

#include <qmimeglobpattern_p.h>

Collaboration diagram for QMimeGlobMatchResult:

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

Detailed Description

The QMimeGlobMatchResult class accumulates results from glob matching.

\inmodule QtCore

Handles glob weights, and preferring longer matches over shorter matches.

Definition at line 30 of file qmimeglobpattern_p.h.

Member Function Documentation

◆ addMatch()

void QMimeGlobMatchResult::addMatch ( const QString & mimeType,
int weight,
const QString & pattern,
qsizetype knownSuffixLength = 0 )

Definition at line 26 of file qmimeglobpattern.cpp.

Member Data Documentation

◆ m_allMatchingMimeTypes

QStringList QMimeGlobMatchResult::m_allMatchingMimeTypes

Definition at line 36 of file qmimeglobpattern_p.h.

◆ m_knownSuffixLength

qsizetype QMimeGlobMatchResult::m_knownSuffixLength = 0

Definition at line 39 of file qmimeglobpattern_p.h.

◆ m_matchingMimeTypes

QStringList QMimeGlobMatchResult::m_matchingMimeTypes

Definition at line 35 of file qmimeglobpattern_p.h.

◆ m_matchingPatternLength

qsizetype QMimeGlobMatchResult::m_matchingPatternLength = 0

Definition at line 38 of file qmimeglobpattern_p.h.

◆ m_weight

int QMimeGlobMatchResult::m_weight = 0

Definition at line 37 of file qmimeglobpattern_p.h.


The documentation for this class was generated from the following files: