Extending Qt Creator Manual | MimeXMLProvider

Extending Qt Creator Manual 4.7.1

# 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 int &glob)
void | addMagicMatcher(const Utils::Internal::MimeMagicRuleMatcher &matcher)
void | addMimeType(const int &mt)
void | addParent(const int &child, const int &parent)
int | allMimeTypes()
int | findByFileName(const int &, int *)
int | findByMagic(const int &, int *)
int | listAliases(const int &)
bool | load(const int &fileName, int *errorMessage)
int | mimeTypeForName(const int &)
int | parents(const int &)
int | resolveAlias(const int &)
void | setGlobPatternsForMimeType(const int &mimeType, const int &patterns)
void | setMagicRulesForMimeType(const int &mimeType, const int)

## Reimplemented Public Functions

virtual bool | isValid()

- 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 int &glob)

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

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

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

### int MimeXMLProvider::allMimeTypes()

### int MimeXMLProvider::findByFileName(const int &, int *)

### int MimeXMLProvider::findByMagic(const int &, int *)

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

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

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

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

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

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

### void MimeXMLProvider::setGlobPatternsForMimeType(const int &mimeType, const int &patterns)

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