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>.
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 29 of file qmimeglobpattern_p.h.

Member Function Documentation

◆ addMatch()

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

Member Data Documentation

◆ m_allMatchingMimeTypes

QStringList QMimeGlobMatchResult::m_allMatchingMimeTypes

Definition at line 35 of file qmimeglobpattern_p.h.

Referenced by addMatch().

◆ m_knownSuffixLength

qsizetype QMimeGlobMatchResult::m_knownSuffixLength = 0

Definition at line 38 of file qmimeglobpattern_p.h.

Referenced by addMatch(), and QMimeDatabase::suffixForFileName().

◆ m_matchingMimeTypes

QStringList QMimeGlobMatchResult::m_matchingMimeTypes

Definition at line 34 of file qmimeglobpattern_p.h.

Referenced by addMatch().

◆ m_matchingPatternLength

qsizetype QMimeGlobMatchResult::m_matchingPatternLength = 0

Definition at line 37 of file qmimeglobpattern_p.h.

Referenced by addMatch().

◆ m_weight

int QMimeGlobMatchResult::m_weight = 0

Definition at line 36 of file qmimeglobpattern_p.h.

Referenced by addMatch().


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