![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Result of the globs parsing, as data structures ready for efficient MIME type matching. More...
#include <qmimeglobpattern_p.h>
Public Types | |
| typedef QHash< QString, QStringList > | PatternsMap |
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 |
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.
Definition at line 133 of file qmimeglobpattern_p.h.
| 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().
| void QMimeAllGlobPatterns::clear | ( | ) |
Definition at line 264 of file qmimeglobpattern.cpp.
References m_fastPatterns, m_highWeightGlobs, and m_lowWeightGlobs.
Referenced by QMimeXMLProvider::ensureLoaded().
| 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.
Definition at line 216 of file qmimeglobpattern.cpp.
References m_highWeightGlobs, and m_lowWeightGlobs.
| PatternsMap QMimeAllGlobPatterns::m_fastPatterns |
Definition at line 141 of file qmimeglobpattern_p.h.
Referenced by addGlob(), clear(), and matchingGlobs().
| QMimeGlobPatternList QMimeAllGlobPatterns::m_highWeightGlobs |
Definition at line 142 of file qmimeglobpattern_p.h.
Referenced by addGlob(), clear(), matchingGlobs(), and removeMimeType().
| QMimeGlobPatternList QMimeAllGlobPatterns::m_lowWeightGlobs |
Definition at line 143 of file qmimeglobpattern_p.h.
Referenced by addGlob(), clear(), matchingGlobs(), and removeMimeType().