Extending Qt Creator Manual | MimeXMLProvider

Extending Qt Creator Manual 4.7.2

# MimeXMLProvider Class

(Utils::Internal::MimeXMLProvider)

Inherits: | Utils::Internal::MimeProviderBase

- List of all members, including inherited members

## Public Functions

| MimeXMLProvider(Utils::Internal::MimeDatabasePrivate *db)
void | addAlias(const int &alias, const int &name)
void | addData(const int &id, const int &data)
void | addGlobPattern(const Utils::Internal::MimeGlobPattern &glob)
void | addMagicMatcher(const Utils::Internal::MimeMagicRuleMatcher &matcher)
void | addMimeType(const Utils::MimeType &mt)
void | addParent(const int &child, const int &parent)
int | allMimeTypes()
virtual class QStringList | findByFileName(const int &fileName, int *foundSuffix)
virtual Utils::MimeType | findByMagic(const int &data, int *accuracyPtr)
virtual class QStringList | listAliases(const int &name)
bool | load(const int &fileName, int *errorMessage)
virtual Utils::MimeType | mimeTypeForName(const int &name)
virtual class QStringList | parents(const int &mime)
int | resolveAlias(const int &)
void | setMagicRulesForMimeType(const Utils::MimeType &mimeType, const int)

## Reimplemented Public Functions

virtual bool | isValid()
virtual void | setGlobPatternsForMimeType(const Utils::MimeType &mimeType, const class QStringList &patterns)

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

### Additional Inherited Members

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

## Member Function Documentation

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

Default constructs an instance of MimeXMLProvider.

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

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

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

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

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

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

### int MimeXMLProvider::allMimeTypes()

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

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

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

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

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

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

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

### int MimeXMLProvider::resolveAlias(const int &)

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

### void MimeXMLProvider::setMagicRulesForMimeType(const Utils::MimeType &mimeType, const int)