Extending Qt Creator Manual | MimeMagicRuleMatcher

Extending Qt Creator Manual 4.7.0

# MimeMagicRuleMatcher Class

(Utils::Internal::MimeMagicRuleMatcher)

- List of all members, including inherited members

## Public Functions

| MimeMagicRuleMatcher(const QString &mime, unsigned int priority = 65535)
void | addRule(const Utils::Internal::MimeMagicRule &rule)
void | addRules(const QList<Utils::Internal::MimeMagicRule> &rules)
QList<Utils::Internal::MimeMagicRule> | magicRules() const
bool | matches(const QByteArray &data) const
QString | mimetype() const
unsigned int | priority() const
bool | operator==(const Utils::Internal::MimeMagicRuleMatcher &other) const

## Member Function Documentation

### MimeMagicRuleMatcher::MimeMagicRuleMatcher(const QString &mime, unsigned int priority = 65535)

Default constructs an instance of MimeMagicRuleMatcher.

### void MimeMagicRuleMatcher::addRule(const Utils::Internal::MimeMagicRule &rule)

### void MimeMagicRuleMatcher::addRules(const QList<Utils::Internal::MimeMagicRule> &rules)

### QList<Utils::Internal::MimeMagicRule> MimeMagicRuleMatcher::magicRules() const

### bool MimeMagicRuleMatcher::matches(const QByteArray &data) const

### QString MimeMagicRuleMatcher::mimetype() const

### unsigned int MimeMagicRuleMatcher::priority() const

### bool MimeMagicRuleMatcher::operator==(const Utils::Internal::MimeMagicRuleMatcher &other) const