KDECore
KMimeMagicRule Class Reference
#include <kmimemagicrule_p.h>
Public Member Functions | |
KMimeMagicRule (const QString &mimetype, int priority, const QList< KMimeMagicMatch > &matches) | |
bool | match (QIODevice *device, qint64 deviceSize, QByteArray &availableData) const |
QList< KMimeMagicMatch > | matches () const |
QString | mimetype () const |
int | priority () const |
Detailed Description
Representation of a magic rule for a mimetype. For instance the following 4 lines from the magic file define one rule for matching application/docbook+xml: [90:application/docbook+xml] >0=^@^E<?xml 1>0=^@^Y-//OASIS//DTD DocBook XML+101 1>0=^@^W-//KDE//DTD DocBook XML+101
Definition at line 53 of file kmimemagicrule_p.h.
Constructor & Destructor Documentation
|
inline |
Definition at line 56 of file kmimemagicrule_p.h.
Member Function Documentation
bool KMimeMagicRule::match | ( | QIODevice * | device, |
qint64 | deviceSize, | ||
QByteArray & | availableData | ||
) | const |
Definition at line 102 of file kmimemagicrule.cpp.
|
inline |
Definition at line 64 of file kmimemagicrule_p.h.
|
inline |
Definition at line 61 of file kmimemagicrule_p.h.
|
inline |
Definition at line 62 of file kmimemagicrule_p.h.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.