class KMimeMagicResult

Returned by KMimeMagicfind. 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 ()

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 ()

QString m_strEncoding

[protected]

QString m_strMimeType

[protected]

int m_iAccuracy

[protected]


Generated by: prospector@porky.devel.redhat.com on Thu Aug 24 05:36:06 2000, using kdoc 2.0a36.