class KMimeMagicResult

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

Returned by KMimeMagic find...Type methods.

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

 KMimeMagicResult ()

KMimeMagicResult

 ~KMimeMagicResult ()

~KMimeMagicResult

const QString  mimeType ()

mimeType

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

const QString  encoding ()

encoding

int  accuracy ()

accuracy

Retrieve the accuracy of the matching.

bool  isValid ()

isValid

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

void  setMimeType ( const QString& _mime )

setMimeType

void  setAccuracy ( int _accuracy )

setAccuracy

void  setInvalid ()

setInvalid

void  setEncoding ( const QString&)

setEncoding

QString m_strMimeType

m_strMimeType

[protected]

int m_iAccuracy

m_iAccuracy

[protected]


Generated by: dfaure on kde.faure.org on Thu Jan 17 22:16:53 2002, using kdoc 2.0a53.