summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/org/trinitydesktop/koala/KSimpleFileFilter.java
diff options
context:
space:
mode:
Diffstat (limited to 'tdejava/koala/org/trinitydesktop/koala/KSimpleFileFilter.java')
-rw-r--r--tdejava/koala/org/trinitydesktop/koala/KSimpleFileFilter.java128
1 files changed, 128 insertions, 0 deletions
diff --git a/tdejava/koala/org/trinitydesktop/koala/KSimpleFileFilter.java b/tdejava/koala/org/trinitydesktop/koala/KSimpleFileFilter.java
new file mode 100644
index 00000000..d498ad6a
--- /dev/null
+++ b/tdejava/koala/org/trinitydesktop/koala/KSimpleFileFilter.java
@@ -0,0 +1,128 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.trinitydesktop.koala;
+
+import org.trinitydesktop.qt.Qt;
+import org.trinitydesktop.qt.QtSupport;
+import java.util.ArrayList;
+
+/**
+
+ A simple file filter that can filter hidden dot files, by name,
+ by mime type and by mode.
+ @short A simple file filter.
+
+*/
+public class KSimpleFileFilter extends KFileFilter {
+ protected KSimpleFileFilter(Class dummy){super((Class) null);}
+ /**
+ Creates a new filter. By default, it filters only hidden dot files
+ and "." and "..".
+ @short Creates a new filter.
+ */
+ public KSimpleFileFilter() {
+ super((Class) null);
+ newKSimpleFileFilter();
+ }
+ private native void newKSimpleFileFilter();
+ /**
+ Enable or disable filtering hidden dot files.
+ This option is enabled by default.
+ @param filter true to enable filtering dot files, false to
+ disable
+ @short Enable or disable filtering hidden dot files.
+ @see #filterDotFiles
+ */
+ public native void setFilterDotFiles(boolean filter);
+ /**
+ Checks whether filtering dot files is enabled.
+ This option is enabled by default.
+ @return true if filtering is enabled, false otherwise
+
+ @short Checks whether filtering dot files is enabled.
+ @see #setFilterDotFiles
+ */
+ public native boolean filterDotFiles();
+ /**
+ Filters "." and "..", default is true.
+ @param filter true to enable, false otherwise
+ @short Filters ".
+ */
+ public native void setFilterSpecials(boolean filter);
+ /**
+ Checks whether it filters "." and "..", default is true.
+ @return true if enabled, false otherwise
+
+ @short Checks whether it filters ".
+ */
+ public native boolean filterSpecials();
+ /**
+ Sets a list of regular expressions to filter by name.
+ The file will only pass if its name matches one of the regular
+ expressions.
+ @param nameFilters a list of regular expressions, separated by
+ the character <code>separator</code>
+ @param caseSensitive if true, matches case sensitive. False
+ otherwise
+ @param separator the separator in the <code>nameFilter</code>
+ @short Sets a list of regular expressions to filter by name.
+ */
+ public native void setNameFilters(String nameFilters, boolean caseSensitive, char separator);
+ public native void setNameFilters(String nameFilters, boolean caseSensitive);
+ /**
+ Sets a list of regular expressions to filter by name.
+ The file will only pass if its name matches one of the regular
+ expressions.
+ @param nameFilters a list of regular expressions, separated by
+ space (' ')
+ @short Sets a list of regular expressions to filter by name.
+ */
+ public native void setNameFilters(String nameFilters);
+ /**
+ Sets a list of mime filters. A file can only pass if its
+ mime type is contained in this list.
+ @param mimeFilters the list of mime types
+ @short Sets a list of mime filters.
+ @see #setMimeFilter
+ */
+ public native void setMimeFilters(String[] mimeFilters);
+ /**
+ Returns the list of mime types.
+ @return the list of mime types
+
+ @short Returns the list of mime types.
+ @see #mimeFilter
+ */
+ public native ArrayList mimeFilters();
+ /**
+ Sets the mode filter. If the <code>mode</code> is 0, the filter is
+ disabled.
+ When enabled, a file will only pass if the files mode
+ ANDed with <code>mode</code> is not zero.
+ @param mode the new mode. 0 to disable
+ @short Sets the mode filter.
+ @see #modeFilter
+ */
+ public native void setModeFilter(long mode);
+ /**
+ Returns the mode filter, as set by setModeFilter().
+ @return the mode filter, 0 if disabled
+
+ @short Returns the mode filter, as set by setModeFilter().
+ @see #setModeFilter
+ */
+ public native long modeFilter();
+ /**
+ Checks the given <code>item.</code>
+ @param item the item to filter
+ @return true if the <code>item</code> passes the filter, false otherwise
+
+ @short Checks the given <code>item.</code>
+ */
+ public native boolean passesFilter(KFileItem item);
+ /** 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();
+}