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
QMimeAllGlobPatterns Class Reference

Result of the globs parsing, as data structures ready for efficient MIME type matching. More...

#include <qmimeglobpattern_p.h>

Collaboration diagram for QMimeAllGlobPatterns:

Public Types

typedef QHash< QString, QStringListPatternsMap

Public Member Functions

void addGlob (const QMimeGlobPattern &glob)
void removeMimeType (const QString &mimeType)
void matchingGlobs (const QString &fileName, QMimeGlobMatchResult &result, const AddMatchFilterFunc &filterFunc) const
void clear ()

Public Attributes

PatternsMap m_fastPatterns
QMimeGlobPatternList m_highWeightGlobs
QMimeGlobPatternList m_lowWeightGlobs

Detailed Description

Result of the globs parsing, as data structures ready for efficient MIME type matching.

This contains: 1) a map of fast regular patterns (e.g. *.txt is stored as "txt" in a qhash's key) 2) a linear list of high-weight globs 3) a linear list of low-weight globs

Definition at line 130 of file qmimeglobpattern_p.h.

Member Typedef Documentation

◆ PatternsMap

Member Function Documentation

◆ addGlob()

void QMimeAllGlobPatterns::addGlob ( const QMimeGlobPattern & glob)

Definition at line 190 of file qmimeglobpattern.cpp.

References m_fastPatterns, m_highWeightGlobs, m_lowWeightGlobs, and QMimeGlobPattern::weight().

Referenced by QMimeXMLProvider::addGlobPattern().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clear()

void QMimeAllGlobPatterns::clear ( )

Definition at line 264 of file qmimeglobpattern.cpp.

References m_fastPatterns, m_highWeightGlobs, and m_lowWeightGlobs.

Referenced by QMimeXMLProvider::ensureLoaded().

Here is the caller graph for this function:

◆ matchingGlobs()

void QMimeAllGlobPatterns::matchingGlobs ( const QString & fileName,
QMimeGlobMatchResult & result,
const AddMatchFilterFunc & filterFunc ) const

Definition at line 236 of file qmimeglobpattern.cpp.

References m_fastPatterns, m_highWeightGlobs, and m_lowWeightGlobs.

◆ removeMimeType()

void QMimeAllGlobPatterns::removeMimeType ( const QString & mimeType)

Definition at line 216 of file qmimeglobpattern.cpp.

References m_highWeightGlobs, and m_lowWeightGlobs.

Member Data Documentation

◆ m_fastPatterns

PatternsMap QMimeAllGlobPatterns::m_fastPatterns

Definition at line 141 of file qmimeglobpattern_p.h.

Referenced by addGlob(), clear(), and matchingGlobs().

◆ m_highWeightGlobs

QMimeGlobPatternList QMimeAllGlobPatterns::m_highWeightGlobs

Definition at line 142 of file qmimeglobpattern_p.h.

Referenced by addGlob(), clear(), matchingGlobs(), and removeMimeType().

◆ m_lowWeightGlobs

QMimeGlobPatternList QMimeAllGlobPatterns::m_lowWeightGlobs

Definition at line 143 of file qmimeglobpattern_p.h.

Referenced by addGlob(), clear(), matchingGlobs(), and removeMimeType().


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