summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KMimeMagicResult.java
blob: 597794e3f292a2f2c373301a4d417531b0eb80d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.QtSupport;

/**

 May be removed in KDE 4.0.
 Returned by 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){}

	public KMimeMagicResult() {
		newKMimeMagicResult();
	}
	private native void newKMimeMagicResult();
	/**	
		 Retrieve the mimetype (e.g. "text/html") of the file or buffer parsed.
		   		@short    Retrieve the mimetype (e.
	*/
	public native String mimeType();
	/**	
		 Retrieve the accuracy of the matching.
		   		@short    Retrieve the accuracy of the matching.
	*/
	public native int accuracy();
	/**	
		 Returns whether the result is valid (i.e. mimetype not empty).
		   		@short    Returns whether the result is valid (i.
	*/
	public native boolean isValid();
	public native void setMimeType(String _mime);
	public native void setAccuracy(int _accuracy);
	public native void setInvalid();
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}