class KMimeMagicResult

More...

Deprecated! use with care
Definition#include <kmimemagic.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Members


Detailed Description

May be removed in KDE 4.0 Returned by KMimeMagic find...Type methods.

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

 KMimeMagicResult ()

KMimeMagicResult

 ~KMimeMagicResult ()

~KMimeMagicResult

QString  mimeType ()

mimeType

[const]

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

int  accuracy ()

accuracy

[const]

Retrieve the accuracy of the matching.

bool  isValid ()

isValid

[const]

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

QString m_strMimeType

m_strMimeType

[protected]

int m_iAccuracy

m_iAccuracy

[protected]


Generated by: dfaure on faure on Tue Apr 16 08:49:48 2002, using kdoc 2.0a53.