org.kde.koala

Class KMimeMagicResult

public class KMimeMagicResult extends Object implements QtSupport

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.

UNKNOWN:

Constructor Summary
protected KMimeMagicResult(Class dummy)
KMimeMagicResult()
Method Summary
intaccuracy()
Retrieve the accuracy of the matching.
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
booleanisDisposed()
Has the wrapped C++ instance been deleted?
booleanisValid()
Returns whether the result is valid (i.e. mimetype not empty).
StringmimeType()
Retrieve the mimetype (e.g.
voidsetAccuracy(int _accuracy)
voidsetInvalid()
voidsetMimeType(String _mime)

Constructor Detail

KMimeMagicResult

protected KMimeMagicResult(Class dummy)

KMimeMagicResult

public KMimeMagicResult()

Method Detail

accuracy

public int accuracy()
Retrieve the accuracy of the matching.

UNKNOWN: Retrieve the accuracy of the matching.

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

finalize

protected void finalize()
Deletes the wrapped C++ instance

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

isValid

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

UNKNOWN: Returns whether the result is valid (i.

mimeType

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

UNKNOWN: Retrieve the mimetype (e.

setAccuracy

public void setAccuracy(int _accuracy)

setInvalid

public void setInvalid()

setMimeType

public void setMimeType(String _mime)