Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.qt.gui.QFileSystemModel Maven / Gradle / Ivy
Go to download
QtJambi base module containing QtCore, QtGui and QtWidgets.
package io.qt.gui;
import io.qt.*;
/**
* Data model for the local filesystem
* Java wrapper for Qt class QFileSystemModel
*/
public class QFileSystemModel extends io.qt.core.QAbstractItemModel
{
static {
QtJambi_LibraryUtilities.initialize();
}
@QtPropertyMember(enabled=false)
private Object __rcIconProvider = null;
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QFileSystemModel.class);
/**
* Java wrapper for Qt enum QFileSystemModel::Option
*
* @see Options
*/
public enum Option implements QtFlagEnumerator {
/**
* Representing QFileSystemModel:: DontWatchForChanges
*/
DontWatchForChanges(1),
/**
* Representing QFileSystemModel:: DontResolveSymlinks
*/
DontResolveSymlinks(2),
/**
* Representing QFileSystemModel:: DontUseCustomDirectoryIcons
*/
DontUseCustomDirectoryIcons(4);
static {
QtJambi_LibraryUtilities.initialize();
}
private Option(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
public @NonNull Options asFlags() {
return new Options(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public @NonNull Options combined(@NonNull Option e) {
return asFlags().setFlag(e, true);
}
/**
* Excludes other enum entry from a flag of this entry.
* @param e enum entry
* @return new flag
*/
public @NonNull Options cleared(@NonNull Option e) {
return asFlags().setFlag(e, false);
}
/**
* Creates a new {@link Options} from the entries.
* @param values entries
* @return new flag
*/
public static @NonNull Options flags(@Nullable Option @NonNull... values) {
return new Options(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull Option resolve(int value) {
switch (value) {
case 1: return DontWatchForChanges;
case 2: return DontResolveSymlinks;
case 4: return DontUseCustomDirectoryIcons;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* {@link QFlags} type for enum {@link Option}
*/
public static final class Options extends QFlags implements Comparable {
private static final long serialVersionUID = 0x4a6bb5914e7eca36L;
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Creates a new Options where the flags in args
are set.
* @param args enum entries
*/
public Options(@Nullable Option @NonNull... args){
super(args);
}
/**
* Creates a new Options with given value
.
* @param value
*/
public Options(int value) {
super(value);
}
/**
* Combines this flags with enum entry.
* @param e enum entry
* @return new Options
*/
@Override
public final @NonNull Options combined(@StrictNonNull Option e){
return new Options(value() | e.value());
}
/**
* Sets the flag e
* @param e enum entry
* @return this
*/
public final @NonNull Options setFlag(@Nullable Option e){
return setFlag(e, true);
}
/**
* Sets or clears the flag flag
* @param e enum entry
* @param on set (true) or clear (false)
* @return this
*/
public final @NonNull Options setFlag(@Nullable Option e, boolean on){
if (on) {
setValue(value() | e.value());
}else {
setValue(value() & ~e.value());
}
return this;
}
/**
* Returns an array of flag objects represented by this Options.
* @return array of enum entries
*/
@Override
public final @NonNull Option @NonNull[] flags(){
return super.flags(Option.values());
}
/**
* {@inheritDoc}
*/
@Override
public final @NonNull Options clone(){
return new Options(value());
}
/**
* {@inheritDoc}
*/
@Override
public final int compareTo(@StrictNonNull Options other){
return Integer.compare(value(), other.value());
}
}
/**
* Java wrapper for Qt enum QFileSystemModel::Roles
*/
@QtUnlistedEnum
public enum Roles implements QtEnumerator {
/**
* Representing QFileSystemModel:: FileIconRole
*/
FileIconRole(1),
/**
* Representing QFileSystemModel:: FilePathRole
*/
FilePathRole(257),
/**
* Representing QFileSystemModel:: FileNameRole
*/
FileNameRole(258),
/**
* Representing QFileSystemModel:: FilePermissions
*/
FilePermissions(259);
static {
QtJambi_LibraryUtilities.initialize();
}
private Roles(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull Roles resolve(int value) {
switch (value) {
case 1: return FileIconRole;
case 257: return FilePathRole;
case 258: return FileNameRole;
case 259: return FilePermissions;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QFileSystemModel:: directoryLoaded(QString)
*/
public final @NonNull Signal1 directoryLoaded = new Signal1<>();
/**
* See QFileSystemModel:: fileRenamed(QString, QString, QString)
*/
public final @NonNull Signal3 fileRenamed = new Signal3<>();
/**
* See QFileSystemModel:: rootPathChanged(QString)
*/
public final @NonNull Signal1 rootPathChanged = new Signal1<>();
/**
* See QFileSystemModel:: QFileSystemModel(QObject*)
*/
public QFileSystemModel(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QFileSystemModel instance, io.qt.core.QObject parent);
/**
* See QFileSystemModel:: fileIcon(QModelIndex)const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QIcon fileIcon(io.qt.core.@NonNull QModelIndex index){
return fileIcon_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native io.qt.gui.QIcon fileIcon_native_cref_QModelIndex_constfct(long __this__nativeId, long index);
/**
* See QFileSystemModel:: fileInfo(QModelIndex)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QFileInfo fileInfo(io.qt.core.@NonNull QModelIndex index){
return fileInfo_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native io.qt.core.QFileInfo fileInfo_native_cref_QModelIndex_constfct(long __this__nativeId, long index);
/**
* See QFileSystemModel:: fileName(QModelIndex)const
*/
@QtUninvokable
public final java.lang.@NonNull String fileName(io.qt.core.@NonNull QModelIndex index){
return fileName_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native java.lang.String fileName_native_cref_QModelIndex_constfct(long __this__nativeId, long index);
/**
* See QFileSystemModel:: filePath(QModelIndex)const
*/
@QtUninvokable
public final java.lang.@NonNull String filePath(io.qt.core.@NonNull QModelIndex index){
return filePath_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native java.lang.String filePath_native_cref_QModelIndex_constfct(long __this__nativeId, long index);
/**
* See QFileSystemModel:: filter()const
*/
@QtUninvokable
public final io.qt.core.QDir.@NonNull Filters filter(){
return new io.qt.core.QDir.Filters(filter_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int filter_native_constfct(long __this__nativeId);
/**
* See QFileSystemModel:: iconProvider()const
*/
@QtUninvokable
public final io.qt.gui.@Nullable QAbstractFileIconProvider iconProvider(){
return iconProvider_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QAbstractFileIconProvider iconProvider_native_constfct(long __this__nativeId);
/**
* See QFileSystemModel:: index(QString, int)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QModelIndex index(java.lang.@NonNull String path, int column){
return index_native_cref_QString_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), path, column);
}
@QtUninvokable
private native io.qt.core.QModelIndex index_native_cref_QString_int_constfct(long __this__nativeId, java.lang.String path, int column);
/**
* See QFileSystemModel:: isDir(QModelIndex)const
*/
@QtUninvokable
public final boolean isDir(io.qt.core.@NonNull QModelIndex index){
return isDir_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native boolean isDir_native_cref_QModelIndex_constfct(long __this__nativeId, long index);
/**
* See QFileSystemModel:: isReadOnly()const
*/
@QtPropertyReader(name="readOnly")
@QtUninvokable
public final boolean isReadOnly(){
return isReadOnly_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isReadOnly_native_constfct(long __this__nativeId);
/**
* See QFileSystemModel:: lastModified(QModelIndex)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QDateTime lastModified(io.qt.core.@NonNull QModelIndex index){
return lastModified_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native io.qt.core.QDateTime lastModified_native_cref_QModelIndex_constfct(long __this__nativeId, long index);
/**
* See QFileSystemModel:: lastModified(QModelIndex, QTimeZone)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QDateTime lastModified(io.qt.core.@NonNull QModelIndex index, io.qt.core.@NonNull QTimeZone tz){
return lastModified_native_cref_QModelIndex_cref_QTimeZone_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index), QtJambi_LibraryUtilities.internal.checkedNativeId(tz));
}
@QtUninvokable
private native io.qt.core.QDateTime lastModified_native_cref_QModelIndex_cref_QTimeZone_constfct(long __this__nativeId, long index, long tz);
/**
* See QFileSystemModel:: mkdir(QModelIndex, QString)
*/
@QtUninvokable
public final io.qt.core.@NonNull QModelIndex mkdir(io.qt.core.@NonNull QModelIndex parent, java.lang.@NonNull String name){
return mkdir_native_cref_QModelIndex_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(parent), name);
}
@QtUninvokable
private native io.qt.core.QModelIndex mkdir_native_cref_QModelIndex_cref_QString(long __this__nativeId, long parent, java.lang.String name);
/**
* See QFileSystemModel:: myComputer(int)const
*/
@QtUninvokable
public final java.lang.Object myComputer(int role){
return myComputer_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), role);
}
@QtUninvokable
private native java.lang.Object myComputer_native_int_constfct(long __this__nativeId, int role);
/**
* See QFileSystemModel:: nameFilterDisables()const
*/
@QtPropertyReader(name="nameFilterDisables")
@QtUninvokable
public final boolean nameFilterDisables(){
return nameFilterDisables_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean nameFilterDisables_native_constfct(long __this__nativeId);
/**
* See QFileSystemModel:: nameFilters()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QStringList nameFilters(){
return nameFilters_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QStringList nameFilters_native_constfct(long __this__nativeId);
/**
* See QFileSystemModel:: options()const
*/
@QtPropertyReader(name="options")
@QtUninvokable
public final io.qt.gui.QFileSystemModel.@NonNull Options options(){
return new io.qt.gui.QFileSystemModel.Options(options_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int options_native_constfct(long __this__nativeId);
/**
* See QFileSystemModel:: permissions(QModelIndex)const
*/
@QtUninvokable
public final io.qt.core.QFileDevice.@NonNull Permissions permissions(io.qt.core.@NonNull QModelIndex index){
return new io.qt.core.QFileDevice.Permissions(permissions_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index)));
}
@QtUninvokable
private native int permissions_native_cref_QModelIndex_constfct(long __this__nativeId, long index);
/**
* See QFileSystemModel:: remove(QModelIndex)
*/
@QtUninvokable
public final boolean remove(io.qt.core.@NonNull QModelIndex index){
return remove_native_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native boolean remove_native_cref_QModelIndex(long __this__nativeId, long index);
/**
* See QFileSystemModel:: resolveSymlinks()const
*/
@QtPropertyReader(name="resolveSymlinks")
@QtUninvokable
public final boolean resolveSymlinks(){
return resolveSymlinks_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean resolveSymlinks_native_constfct(long __this__nativeId);
/**
* See QFileSystemModel:: rmdir(QModelIndex)
*/
@QtUninvokable
public final boolean rmdir(io.qt.core.@NonNull QModelIndex index){
return rmdir_native_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native boolean rmdir_native_cref_QModelIndex(long __this__nativeId, long index);
/**
* See QFileSystemModel:: rootDirectory()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QDir rootDirectory(){
return rootDirectory_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QDir rootDirectory_native_constfct(long __this__nativeId);
/**
* See QFileSystemModel:: rootPath()const
*/
@QtUninvokable
public final java.lang.@NonNull String rootPath(){
return rootPath_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String rootPath_native_constfct(long __this__nativeId);
/**
* See QFileSystemModel:: setFilter(QDir::Filters)
*/
@QtUninvokable
public final void setFilter(io.qt.core.QDir.@NonNull Filters filters){
setFilter_native_QDir_Filters(QtJambi_LibraryUtilities.internal.nativeId(this), filters.value());
}
@QtUninvokable
private native void setFilter_native_QDir_Filters(long __this__nativeId, int filters);
/**
* See QFileSystemModel:: setIconProvider(QAbstractFileIconProvider*)
*/
@QtUninvokable
public final void setIconProvider(io.qt.gui.@Nullable QAbstractFileIconProvider provider){
setIconProvider_native_QAbstractFileIconProvider_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(provider));
__rcIconProvider = provider;
}
@QtUninvokable
private native void setIconProvider_native_QAbstractFileIconProvider_ptr(long __this__nativeId, long provider);
/**
* See QFileSystemModel:: setNameFilterDisables(bool)
*/
@QtPropertyWriter(name="nameFilterDisables")
@QtUninvokable
public final void setNameFilterDisables(boolean enable){
setNameFilterDisables_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enable);
}
@QtUninvokable
private native void setNameFilterDisables_native_bool(long __this__nativeId, boolean enable);
/**
* See QFileSystemModel:: setNameFilters(QStringList)
*/
@QtUninvokable
public final void setNameFilters(java.util.@NonNull Collection filters){
setNameFilters_native_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), filters);
}
@QtUninvokable
private native void setNameFilters_native_cref_QStringList(long __this__nativeId, java.util.Collection filters);
/**
* See QFileSystemModel:: setOption(QFileSystemModel::Option, bool)
*/
@QtUninvokable
public final void setOption(io.qt.gui.QFileSystemModel.@NonNull Option option, boolean on){
setOption_native_QFileSystemModel_Option_bool(QtJambi_LibraryUtilities.internal.nativeId(this), option.value(), on);
}
@QtUninvokable
private native void setOption_native_QFileSystemModel_Option_bool(long __this__nativeId, int option, boolean on);
/**
* See QFileSystemModel:: setOptions(QFileSystemModel::Options)
*/
@QtPropertyWriter(name="options")
@QtUninvokable
public final void setOptions(io.qt.gui.QFileSystemModel.@NonNull Options options){
setOptions_native_QFileSystemModel_Options(QtJambi_LibraryUtilities.internal.nativeId(this), options.value());
}
@QtUninvokable
private native void setOptions_native_QFileSystemModel_Options(long __this__nativeId, int options);
/**
* See QFileSystemModel:: setReadOnly(bool)
*/
@QtPropertyWriter(name="readOnly")
@QtUninvokable
public final void setReadOnly(boolean enable){
setReadOnly_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enable);
}
@QtUninvokable
private native void setReadOnly_native_bool(long __this__nativeId, boolean enable);
/**
* See QFileSystemModel:: setResolveSymlinks(bool)
*/
@QtPropertyWriter(name="resolveSymlinks")
@QtUninvokable
public final void setResolveSymlinks(boolean enable){
setResolveSymlinks_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enable);
}
@QtUninvokable
private native void setResolveSymlinks_native_bool(long __this__nativeId, boolean enable);
/**
* See QFileSystemModel:: setRootPath(QString)
*/
@QtUninvokable
public final io.qt.core.@NonNull QModelIndex setRootPath(java.lang.@NonNull String path){
return setRootPath_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), path);
}
@QtUninvokable
private native io.qt.core.QModelIndex setRootPath_native_cref_QString(long __this__nativeId, java.lang.String path);
/**
* See QFileSystemModel:: size(QModelIndex)const
*/
@QtUninvokable
public final long size(io.qt.core.@NonNull QModelIndex index){
return size_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native long size_native_cref_QModelIndex_constfct(long __this__nativeId, long index);
/**
* See QFileSystemModel:: testOption(QFileSystemModel::Option)const
*/
@QtUninvokable
public final boolean testOption(io.qt.gui.QFileSystemModel.@NonNull Option option){
return testOption_native_QFileSystemModel_Option_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), option.value());
}
@QtUninvokable
private native boolean testOption_native_QFileSystemModel_Option_constfct(long __this__nativeId, int option);
/**
* See QFileSystemModel:: type(QModelIndex)const
*/
@QtUninvokable
public final java.lang.@NonNull String type(io.qt.core.@NonNull QModelIndex index){
return type_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native java.lang.String type_native_cref_QModelIndex_constfct(long __this__nativeId, long index);
/**
* See QAbstractItemModel:: canFetchMore(QModelIndex)const
*/
@QtUninvokable
@Override
public boolean canFetchMore(io.qt.core.@NonNull QModelIndex parent){
return canFetchMore_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(parent));
}
@QtUninvokable
private native boolean canFetchMore_native_cref_QModelIndex_constfct(long __this__nativeId, long parent);
/**
* See QAbstractItemModel:: columnCount(QModelIndex)const
*/
@QtUninvokable
@Override
public int columnCount(io.qt.core.@NonNull QModelIndex parent){
return columnCount_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(parent));
}
@QtUninvokable
private native int columnCount_native_cref_QModelIndex_constfct(long __this__nativeId, long parent);
/**
* See QAbstractItemModel:: data(QModelIndex, int)const
*/
@QtUninvokable
@Override
public java.lang.Object data(io.qt.core.@NonNull QModelIndex index, int role){
return data_native_cref_QModelIndex_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index), role);
}
@QtUninvokable
private native java.lang.Object data_native_cref_QModelIndex_int_constfct(long __this__nativeId, long index, int role);
/**
* See QAbstractItemModel:: dropMimeData(const QMimeData*, Qt::DropAction, int, int, QModelIndex)
*/
@QtUninvokable
@Override
public boolean dropMimeData(io.qt.core.@Nullable QMimeData data, io.qt.core.Qt.@NonNull DropAction action, int row, int column, io.qt.core.@NonNull QModelIndex parent){
return dropMimeData_native_const_QMimeData_ptr_Qt_DropAction_int_int_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(data), action.value(), row, column, QtJambi_LibraryUtilities.internal.checkedNativeId(parent));
}
@QtUninvokable
private native boolean dropMimeData_native_const_QMimeData_ptr_Qt_DropAction_int_int_cref_QModelIndex(long __this__nativeId, long data, int action, int row, int column, long parent);
/**
* See QObject:: event(QEvent*)
*/
@QtUninvokable
@Override
public boolean event(io.qt.core.@Nullable QEvent event){
return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@QtUninvokable
private native boolean event_native_QEvent_ptr(long __this__nativeId, long event);
/**
* See QAbstractItemModel:: fetchMore(QModelIndex)
*/
@QtUninvokable
@Override
public void fetchMore(io.qt.core.@NonNull QModelIndex parent){
fetchMore_native_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(parent));
}
@QtUninvokable
private native void fetchMore_native_cref_QModelIndex(long __this__nativeId, long parent);
/**
* See QAbstractItemModel:: flags(QModelIndex)const
*/
@QtUninvokable
@Override
public io.qt.core.Qt.@NonNull ItemFlags flags(io.qt.core.@NonNull QModelIndex index){
return new io.qt.core.Qt.ItemFlags(flags_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index)));
}
@QtUninvokable
private native int flags_native_cref_QModelIndex_constfct(long __this__nativeId, long index);
/**
* See QAbstractItemModel:: hasChildren(QModelIndex)const
*/
@QtUninvokable
@Override
public boolean hasChildren(io.qt.core.@NonNull QModelIndex parent){
return hasChildren_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(parent));
}
@QtUninvokable
private native boolean hasChildren_native_cref_QModelIndex_constfct(long __this__nativeId, long parent);
/**
* See QAbstractItemModel:: headerData(int, Qt::Orientation, int)const
*/
@QtUninvokable
@Override
public java.lang.Object headerData(int section, io.qt.core.Qt.@NonNull Orientation orientation, int role){
return headerData_native_int_Qt_Orientation_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), section, orientation.value(), role);
}
@QtUninvokable
private native java.lang.Object headerData_native_int_Qt_Orientation_int_constfct(long __this__nativeId, int section, int orientation, int role);
/**
* See QAbstractItemModel:: index(int, int, QModelIndex)const
*/
@QtUninvokable
@Override
public io.qt.core.@NonNull QModelIndex index(int row, int column, io.qt.core.@NonNull QModelIndex parent){
return index_native_int_int_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), row, column, QtJambi_LibraryUtilities.internal.checkedNativeId(parent));
}
@QtUninvokable
private native io.qt.core.QModelIndex index_native_int_int_cref_QModelIndex_constfct(long __this__nativeId, int row, int column, long parent);
/**
* See QAbstractItemModel:: mimeData(QModelIndexList)const
*/
@QtUninvokable
@Override
public io.qt.core.@Nullable QMimeData mimeData(java.util.@NonNull Collection extends io.qt.core.@NonNull QModelIndex> indexes){
return mimeData_native_cref_QList_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), indexes);
}
@QtUninvokable
private native io.qt.core.QMimeData mimeData_native_cref_QList_constfct(long __this__nativeId, java.util.Collection extends io.qt.core.QModelIndex> indexes);
/**
* See QAbstractItemModel:: mimeTypes()const
*/
@QtUninvokable
@Override
public java.util.@NonNull List mimeTypes(){
return mimeTypes_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.util.List mimeTypes_native_constfct(long __this__nativeId);
/**
* See QAbstractItemModel:: parent(QModelIndex)const
*/
@QtUninvokable
@Override
public io.qt.core.@NonNull QModelIndex parent(io.qt.core.@NonNull QModelIndex child){
return parent_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(child));
}
@QtUninvokable
private native io.qt.core.QModelIndex parent_native_cref_QModelIndex_constfct(long __this__nativeId, long child);
/**
* See QAbstractItemModel:: roleNames()const
*/
@QtUninvokable
@Override
public java.util.@NonNull Map roleNames(){
return roleNames_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.util.Map roleNames_native_constfct(long __this__nativeId);
/**
* See QAbstractItemModel:: rowCount(QModelIndex)const
*/
@QtUninvokable
@Override
public int rowCount(io.qt.core.@NonNull QModelIndex parent){
return rowCount_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(parent));
}
@QtUninvokable
private native int rowCount_native_cref_QModelIndex_constfct(long __this__nativeId, long parent);
/**
* See QAbstractItemModel:: setData(QModelIndex, QVariant, int)
*/
@QtUninvokable
@Override
public boolean setData(io.qt.core.@NonNull QModelIndex index, java.lang.Object value, int role){
return setData_native_cref_QModelIndex_cref_QVariant_int(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index), value, role);
}
@QtUninvokable
private native boolean setData_native_cref_QModelIndex_cref_QVariant_int(long __this__nativeId, long index, java.lang.Object value, int role);
/**
* See QAbstractItemModel:: sibling(int, int, QModelIndex)const
*/
@QtUninvokable
@Override
public io.qt.core.@NonNull QModelIndex sibling(int row, int column, io.qt.core.@NonNull QModelIndex idx){
return sibling_native_int_int_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), row, column, QtJambi_LibraryUtilities.internal.checkedNativeId(idx));
}
@QtUninvokable
private native io.qt.core.QModelIndex sibling_native_int_int_cref_QModelIndex_constfct(long __this__nativeId, int row, int column, long idx);
/**
* See QAbstractItemModel:: sort(int, Qt::SortOrder)
*/
@QtUninvokable
@Override
public void sort(int column, io.qt.core.Qt.@NonNull SortOrder order){
sort_native_int_Qt_SortOrder(QtJambi_LibraryUtilities.internal.nativeId(this), column, order.value());
}
@QtUninvokable
private native void sort_native_int_Qt_SortOrder(long __this__nativeId, int column, int order);
/**
* See QAbstractItemModel:: supportedDropActions()const
*/
@QtUninvokable
@Override
public io.qt.core.Qt.@NonNull DropActions supportedDropActions(){
return new io.qt.core.Qt.DropActions(supportedDropActions_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int supportedDropActions_native_constfct(long __this__nativeId);
/**
* See QObject:: timerEvent(QTimerEvent*)
*/
@QtUninvokable
@Override
protected void timerEvent(io.qt.core.@Nullable QTimerEvent event){
timerEvent_native_QTimerEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@QtUninvokable
private native void timerEvent_native_QTimerEvent_ptr(long __this__nativeId, long event);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QFileSystemModel(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QFileSystemModel(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QFileSystemModel instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QFileSystemModel(io.qt.core.QObject)}
* with parent = null
.
*/
public QFileSystemModel() {
this((io.qt.core.QObject)null);
}
/**
* Overloaded function for {@link #index(java.lang.String, int)}
* with column = 0
.
*/
@QtUninvokable
public final io.qt.core.@NonNull QModelIndex index(java.lang.@NonNull String path) {
return index(path, (int)0);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isReadOnly()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getReadOnly() {
return isReadOnly();
}
/**
* Overloaded function for {@link #myComputer(int)}
* with role = 0
.
*/
@QtUninvokable
public final java.lang.Object myComputer() {
return myComputer((int)0);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #nameFilterDisables()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getNameFilterDisables() {
return nameFilterDisables();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #options()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.gui.QFileSystemModel.@NonNull Options getOptions() {
return options();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #resolveSymlinks()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getResolveSymlinks() {
return resolveSymlinks();
}
/**
* Overloaded function for {@link #setFilter(io.qt.core.QDir.Filters)}.
*/
@QtUninvokable
public final void setFilter(io.qt.core.QDir.@NonNull Filter @NonNull... filters) {
setFilter(new io.qt.core.QDir.Filters(filters));
}
/**
* Overloaded function for {@link #setOption(io.qt.gui.QFileSystemModel.Option, boolean)}
* with on = true
.
*/
@QtUninvokable
public final void setOption(io.qt.gui.QFileSystemModel.@NonNull Option option) {
setOption(option, (boolean)true);
}
/**
* Overloaded function for {@link #setOptions(io.qt.gui.QFileSystemModel.Options)}.
*/
@QtUninvokable
public final void setOptions(io.qt.gui.QFileSystemModel.@NonNull Option @NonNull... options) {
setOptions(new io.qt.gui.QFileSystemModel.Options(options));
}
}