|  | Qt 6.x
    The Qt SDK | 
\inmodule QtCore More...
#include <qmimetypeparser_p.h>
 Inheritance diagram for QMimeTypeParserBase:
 Inheritance diagram for QMimeTypeParserBase: Collaboration diagram for QMimeTypeParserBase:
 Collaboration diagram for QMimeTypeParserBase:| Public Member Functions | |
| QMimeTypeParserBase () | |
| virtual | ~QMimeTypeParserBase () | 
| bool | parse (QIODevice *dev, const QString &fileName, QString *errorMessage) | 
| Static Public Member Functions | |
| static bool | parseNumber (QStringView n, int *target, QString *errorMessage) | 
| Protected Member Functions | |
| virtual bool | process (const QMimeType &t, QString *errorMessage)=0 | 
| Overwrite to process the sequence of parsed data. | |
| virtual bool | process (const QMimeGlobPattern &t, QString *errorMessage)=0 | 
| virtual void | processParent (const QString &child, const QString &parent)=0 | 
| virtual void | processAlias (const QString &alias, const QString &name)=0 | 
| virtual void | processMagicMatcher (const QMimeMagicRuleMatcher &matcher)=0 | 
\inmodule QtCore
The QMimeTypeParserBase class parses for a sequence of <mime-type> in a generic way.
Calls abstract handler function process for QMimeType it finds.
Definition at line 29 of file qmimetypeparser_p.h.
| 
 | inline | 
Definition at line 34 of file qmimetypeparser_p.h.
| 
 | inlinevirtual | 
Definition at line 35 of file qmimetypeparser_p.h.
| bool QMimeTypeParserBase::parse | ( | QIODevice * | dev, | 
| const QString & | fileName, | ||
| QString * | errorMessage | ||
| ) | 
Definition at line 165 of file qmimetypeparser.cpp.
References QMimeMagicRuleMatcher::addRules(), QList< T >::append(), QString::arg(), QString::asprintf(), Qt::CaseInsensitive, Qt::CaseSensitive, caseSensitiveAttributeC, QList< T >::clear(), QMimeGlobPattern::DefaultWeight, errorMessage(), QImageReader::errorString(), fileName, QString::fromLatin1(), QString::insert(), QString::isEmpty(), QList< T >::isEmpty(), QList< T >::last(), localeAttributeC, magicTagC, matchTagC, mimeTypeAttributeC, mimeTypeTagC, nameAttributeC, parseNumber(), patternAttributeC, QStack< T >::pop(), priorityAttributeC, process(), processAlias(), processMagicMatcher(), processParent(), QStack< T >::push(), Q_ASSERT, Q_UNLIKELY, Q_UNUSED, QStringLiteral, qUtf16Printable, qWarning, QStringView::toInt(), QStack< T >::top(), QStringView::toString(), toString(), QXmlStreamAttributes::value(), and weightAttributeC.
Referenced by QMimeXMLProvider::load().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Definition at line 130 of file qmimetypeparser.cpp.
References errorMessage(), ok, and Q_UNLIKELY.
Referenced by QMimeMagicRule::QMimeMagicRule(), and parse().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protectedpure virtual | 
Implemented in QMimeTypeParser.
| 
 | protectedpure virtual | 
Overwrite to process the sequence of parsed data.
Implemented in QMimeTypeParser.
Referenced by parse().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protectedpure virtual |