class KMimeMagicResult

An instance of this class is returned by KMimeMagic find. More...

Definition#include <kmimemagic.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Members


Detailed Description

An instance of this class is returned by KMimeMagic find...Type methods It contains the mimetype and the encoding of the file or buffer read.

const QString  mimeType ()

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

const QString  encoding ()

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

int  accuracy ()

Returns: the accuracy of the matching

bool  isValid ()

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


Generated by: dfaure@faure on Sun Mar 26 14:24:43 2000, using kdoc 2.0a35.