KDECore
KMimeGlobsFileParser::AllGlobs Class Reference
Result of the globs parsing, as data structures ready for efficient mimetype matching. More...
#include <kmimeglobsfileparser_p.h>
Public Member Functions | |
| void | addGlob (const Glob &glob) |
| PatternsMap | patternsMap () const |
| void | removeMime (const QString &mime) |
Public Attributes | |
| QHash< QString, QStringList > | m_fastPatterns |
| GlobList | m_highWeightGlobs |
| GlobList | m_lowWeightGlobs |
Detailed Description
Result of the globs parsing, as data structures ready for efficient mimetype 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 The mime-matching algorithms on top of these data structures are in KMimeTypeFactory.
Definition at line 85 of file kmimeglobsfileparser_p.h.
Member Function Documentation
| void KMimeGlobsFileParser::AllGlobs::addGlob | ( | const Glob & | glob | ) |
Definition at line 158 of file kmimeglobsfileparser.cpp.
| KMimeGlobsFileParser::PatternsMap KMimeGlobsFileParser::AllGlobs::patternsMap | ( | ) | const |
Definition at line 194 of file kmimeglobsfileparser.cpp.
| void KMimeGlobsFileParser::AllGlobs::removeMime | ( | const QString & | mime | ) |
Definition at line 217 of file kmimeglobsfileparser.cpp.
Member Data Documentation
Definition at line 92 of file kmimeglobsfileparser_p.h.
Definition at line 93 of file kmimeglobsfileparser_p.h.
Definition at line 94 of file kmimeglobsfileparser_p.h.
The documentation for this class was generated from the following files:
KDE 4.6 API Reference