Extending Qt Creator Manual | MimeMagicRule

Extending Qt Creator Manual 4.6.1

# MimeMagicRule Class

(Utils::Internal::MimeMagicRule)

- List of all members, including inherited members

## Public Types

enum | Type { Invalid, String, RegExp, Host16, ..., Byte }

## Public Functions

| MimeMagicRule(Type type, const QByteArray &value, int startPos, int endPos, const QByteArray &mask = QByteArray(), QString *errorString = 0)
| MimeMagicRule(const MimeMagicRule &other)
| ~MimeMagicRule()
int | endPos() const
bool | isValid() const
QByteArray | mask() const
bool | matches(const QByteArray &data) const
int | startPos() const
Type | type() const
QByteArray | value() const
MimeMagicRule & | operator=(const MimeMagicRule &other)
bool | operator==(const MimeMagicRule &other) const

## Static Public Members

bool | matchSubstring(const char *dataPtr, int dataSize, int rangeStart, int rangeLength, int valueLength, const char *valueData, const char *mask)
Type | type(const QByteArray &type)
QByteArray | typeName(Type type)

## Member Type Documentation

### enum MimeMagicRule::Type

## Member Function Documentation

### MimeMagicRule::MimeMagicRule(Type type, const QByteArray &value, int startPos, int endPos, const QByteArray &mask = QByteArray(), QString *errorString = 0)

Default constructs an instance of MimeMagicRule.

### MimeMagicRule::MimeMagicRule(const MimeMagicRule &other)

Copy constructor.

### MimeMagicRule::~MimeMagicRule()

Destroys the instance of MimeMagicRule.

### int MimeMagicRule::endPos() const

### bool MimeMagicRule::isValid() const

### QByteArray MimeMagicRule::mask() const

### `[static]` bool MimeMagicRule::matchSubstring(const char *dataPtr, int dataSize, int rangeStart, int rangeLength, int valueLength, const char *valueData, const char *mask)

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

### int MimeMagicRule::startPos() const

### Type MimeMagicRule::type() const

### `[static]` Type MimeMagicRule::type(const QByteArray &type)

### `[static]` QByteArray MimeMagicRule::typeName(Type type)

### QByteArray MimeMagicRule::value() const

### MimeMagicRule &MimeMagicRule::operator=(const MimeMagicRule &other)

Copy-assignment operator.

### bool MimeMagicRule::operator==(const MimeMagicRule &other) const