/***************************************************************************
                            KMimeMagicResult.java -  description
                             -------------------
    begin                : Sun Jan 27 16:22:17 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd.
    email                : Richard_Dale@tipitina.demon.co.uk
    generated by         : duke@tipitina on Sun Jan 27 16:22:17 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

package org.kde.koala;

import org.kde.qt.*;
import java.util.*;
import java.lang.Error;

/**


 May be removed in KDE 4.0
 Returned by {@link KMimeMagic} <code>find...Type</code> methods.

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

*/
public class  KMimeMagicResult implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;

	protected KMimeMagicResult(Class dummy){}

	private native void newKMimeMagicResult();
	public KMimeMagicResult() {
		newKMimeMagicResult();
	}
	protected native void finalize() throws InternalError;
	public native void dispose();
	public native boolean isDisposed();

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

/** 
 Retrieve the accuracy of the matching.
   
*/
	public native int accuracy();

/** 
 Returns whether the result is valid (i.e. mimetype not empty).
   
*/
	public native boolean isValid();
	public native void setMimeType( String _mime);
	public native void setAccuracy( int _accuracy);
	public native void setInvalid();
}
