MimeProviderBase Class | Extending Qt Creator Manual

Extending Qt Creator Manual | MimeProviderBase

Extending Qt Creator Manual 4.6.0

# MimeProviderBase Class

(Utils::Internal::MimeProviderBase)

- List of all members, including inherited members

## Public Functions

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

## Protected Functions

bool | shouldCheck()

## Member Function Documentation

### MimeProviderBase::MimeProviderBase(MimeDatabasePrivate *db)

Default constructs an instance of MimeProviderBase.

### `[virtual]` MimeProviderBase::~MimeProviderBase()

Destroys the instance of MimeProviderBase. The destructor is virtual.

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

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

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

### `[pure virtual]` bool MimeProviderBase::isValid()

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

### `[virtual]` void MimeProviderBase::loadGenericIcon(MimeTypePrivate &)

### `[virtual]` void MimeProviderBase::loadIcon(MimeTypePrivate &)

### `[virtual]` void MimeProviderBase::loadMimeTypePrivate(MimeTypePrivate &)

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

See also setMagicRulesForMimeType().

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

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

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

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

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

See also magicRulesForMimeType().

### `[protected]` bool MimeProviderBase::shouldCheck()