class KMimeMagicResult


Definition#include <kmimemagic.h>
Annotated List
Files
Globals
Hierarchy
Index
Main

Public Methods


Detailed Description

Returned by KMimeMagic find...Type methods.

It contains the mimetype and the encoding of the file or buffer read.

 KMimeMagicResult ()

KMimeMagicResult ()

const QString  mimeType ()

Retrieve the mimetype (e.g. "text/html") of the file or buffer parsed.

const QString  encoding ()

Retrieve the encoding (e.g. "8bit", see 'magic' file) of the file or buffer parsed.

int  accuracy ()

Retrievee the accuracy of the matching.

bool  isValid ()

Returns whether the result is valid (i.e. mimetype not empty).

void  setMimeType ( const QString& _mime )

void  setEncoding ( const QString& _encoding)

void  setAccuracy ( int _accuracy )

void  setInvalid ()