blob: 2d73b0974f1e809e86310c55115d8da2d7cb2411 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;
import org.kde.qt.Qt;
import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.TQIODevice;
import org.kde.qt.TQIODeviceInterface;
import org.kde.qt.TQObject;
/**
This is the base class for compression filters
such as gzip and bzip2. It's pretty much internal.
Don't use directly, use KFilterDev instead.
@short This is the base class for compression filters such as gzip and bzip2.
*/
public class KFilterBase extends TQObject {
protected KFilterBase(Class dummy){super((Class) null);}
/** \internal @short \internal
*/
public static final int OK = 0;
public static final int END = 1;
public static final int ERROR = 2;
public native TQMetaObject metaObject();
public native String className();
/**
Sets the device on which the filter will work
@param dev the device on which the filter will work
@param autodelete if true, <code>dev</code> is deleted when the filter is deleted
@short Sets the device on which the filter will work
*/
public native void setDevice(TQIODeviceInterface dev, boolean autodelete);
public native void setDevice(TQIODeviceInterface dev);
/**
Returns the device on which the filter will work.
@return the device on which the filter will work
@short Returns the device on which the filter will work.
*/
public native TQIODeviceInterface device();
/** \internal @short \internal
*/
public native void init(int mode);
/** \internal @short \internal
*/
public native int mode();
/** \internal @short \internal
*/
public native void terminate();
/** \internal @short \internal
*/
public native void reset();
/** \internal @short \internal
*/
public native boolean readHeader();
/** \internal @short \internal
*/
public native boolean writeHeader(String filename);
/** \internal @short \internal
*/
public native void setOutBuffer(String data, int maxlen);
/** \internal @short \internal
*/
public native void setInBuffer(String data, int size);
/** \internal @short \internal
*/
public native boolean inBufferEmpty();
/** \internal @short \internal
*/
public native int inBufferAvailable();
/** \internal @short \internal
*/
public native boolean outBufferFull();
/** \internal @short \internal
*/
public native int outBufferAvailable();
/** \internal @short \internal
*/
public native int uncompress();
/** \internal @short \internal
*/
public native int compress(boolean finish);
/**
Call this to create the appropriate filter for the file
named <code>fileName.</code>
@param fileName the name of the file to filter
@return the filter for the <code>fileName</code>, or 0 if not found
@short Call this to create the appropriate filter for the file named <code>fileName.</code>
*/
public static native KFilterBase findFilterByFileName(String fileName);
/**
Call this to create the appropriate filter for the mimetype
<code>mimeType.</code> For instance application/x-gzip.
@param mimeType the mime type of the file to filter
@return the filter for the <code>mimeType</code>, or 0 if not found
@short Call this to create the appropriate filter for the mimetype <code>mimeType.</code>
*/
public static native KFilterBase findFilterByMimeType(String mimeType);
}
|