MimeXMLProvider Class | Extending Qt Creator Manual

Extending Qt Creator Manual | MimeXMLProvider

Extending Qt Creator Manual 4.6.0

# MimeXMLProvider Class

(Utils::Internal::MimeXMLProvider)

Inherits: | Utils::Internal::MimeProviderBase

- List of all members, including inherited members

## Public Functions

| MimeXMLProvider(MimeDatabasePrivate *db)
void | addAlias(const QString &alias, const QString &name)
void | addData(const QString &id, const QByteArray &data)
void | addGlobPattern(const MimeGlobPattern &glob)
void | addMagicMatcher(const MimeMagicRuleMatcher &matcher)
void | addMimeType(const MimeType &mt)
void | addParent(const QString &child, const QString &parent)
bool | load(const QString &fileName, QString *errorMessage)

## Reimplemented Public Functions

virtual QList<MimeType> | allMimeTypes()
virtual QStringList | findByFileName(const QString &fileName, QString *foundSuffix)
virtual MimeType | findByMagic(const QByteArray &data, int *accuracyPtr)
virtual bool | isValid()
virtual QStringList | listAliases(const QString &name)
virtual QMap<int, QList<MimeMagicRule> > | magicRulesForMimeType(const MimeType &mimeType)
virtual MimeType | mimeTypeForName(const QString &name)
virtual QStringList | parents(const QString &mime)
virtual QString | resolveAlias(const QString &name)
virtual void | setGlobPatternsForMimeType(const MimeType &mimeType, const QStringList &patterns)
virtual void | setMagicRulesForMimeType(const MimeType &mimeType, const QMap<int, QList<MimeMagicRule> > &rules)

- 14 public functions inherited from Utils::Internal::MimeProviderBase

### Additional Inherited Members

- 1 protected function inherited from Utils::Internal::MimeProviderBase

## Member Function Documentation

### MimeXMLProvider::MimeXMLProvider(MimeDatabasePrivate *db)

Default constructs an instance of MimeXMLProvider.

### void MimeXMLProvider::addAlias(const QString &alias, const QString &name)

### void MimeXMLProvider::addData(const QString &id, const QByteArray &data)

### void MimeXMLProvider::addGlobPattern(const MimeGlobPattern &glob)

### void MimeXMLProvider::addMagicMatcher(const MimeMagicRuleMatcher &matcher)

### void MimeXMLProvider::addMimeType(const MimeType &mt)

### void MimeXMLProvider::addParent(const QString &child, const QString &parent)

### `[virtual]` QList<MimeType> MimeXMLProvider::allMimeTypes()

### `[virtual]` QStringList MimeXMLProvider::findByFileName(const QString &fileName, QString *foundSuffix)

### `[virtual]` MimeType MimeXMLProvider::findByMagic(const QByteArray &data, int *accuracyPtr)

### `[virtual]` bool MimeXMLProvider::isValid()

### `[virtual]` QStringList MimeXMLProvider::listAliases(const QString &name)

### bool MimeXMLProvider::load(const QString &fileName, QString *errorMessage)

### `[virtual]` QMap<int, QList<MimeMagicRule> > MimeXMLProvider::magicRulesForMimeType(const MimeType &mimeType)

See also setMagicRulesForMimeType().

### `[virtual]` MimeType MimeXMLProvider::mimeTypeForName(const QString &name)

### `[virtual]` QStringList MimeXMLProvider::parents(const QString &mime)

### `[virtual]` QString MimeXMLProvider::resolveAlias(const QString &name)

### `[virtual]` void MimeXMLProvider::setGlobPatternsForMimeType(const MimeType &mimeType, const QStringList &patterns)

### `[virtual]` void MimeXMLProvider::setMagicRulesForMimeType(const MimeType &mimeType, const QMap<int, QList<MimeMagicRule> > &rules)

See also magicRulesForMimeType().