diff options
Diffstat (limited to 'kdejava/koala/org/kde/koala/KFilterBase.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/KFilterBase.java | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/KFilterBase.java b/kdejava/koala/org/kde/koala/KFilterBase.java new file mode 100644 index 00000000..90558605 --- /dev/null +++ b/kdejava/koala/org/kde/koala/KFilterBase.java @@ -0,0 +1,104 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.QMetaObject; +import org.kde.qt.QtSupport; +import org.kde.qt.QIODevice; +import org.kde.qt.QIODeviceInterface; +import org.kde.qt.QObject; + +/** + + 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 QObject { + 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 QMetaObject 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(QIODeviceInterface dev, boolean autodelete); + public native void setDevice(QIODeviceInterface 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 QIODeviceInterface 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); +} |