All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.core.QMimeDatabase Maven / Gradle / Ivy

The newest version!
package io.qt.core;


/**
 * 

Maintains a database of MIME types

*

Java wrapper for Qt class QMimeDatabase

*/ public class QMimeDatabase extends io.qt.QtObject { static { QtJambi_LibraryUtilities.initialize(); } /** *

Java wrapper for Qt enum QMimeDatabase::MatchMode

*/ public enum MatchMode implements io.qt.QtEnumerator { MatchDefault(0), MatchExtension(1), MatchContent(2); private MatchMode(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 MatchMode resolve(int value) { switch (value) { case 0: return MatchDefault; case 1: return MatchExtension; case 2: return MatchContent; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

See QMimeDatabase::QMimeDatabase()

*/ public QMimeDatabase(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QMimeDatabase instance); /** *

See QMimeDatabase::allMimeTypes()const

*/ @io.qt.QtUninvokable public final io.qt.core.QList allMimeTypes(){ return allMimeTypes_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QList allMimeTypes_native_constfct(long __this__nativeId); /** *

See QMimeDatabase::mimeTypeForData(QIODevice*)const

*/ @io.qt.QtUninvokable public final io.qt.core.QMimeType mimeTypeForData(io.qt.core.QIODevice device){ return mimeTypeForData_native_QIODevice_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(device)); } @io.qt.QtUninvokable private native io.qt.core.QMimeType mimeTypeForData_native_QIODevice_ptr_constfct(long __this__nativeId, long device); /** *

See QMimeDatabase::mimeTypeForData(QByteArray)const

*/ @io.qt.QtUninvokable public final io.qt.core.QMimeType mimeTypeForData(io.qt.core.QByteArray data){ return mimeTypeForData_native_cref_QByteArray_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(data)); } @io.qt.QtUninvokable private native io.qt.core.QMimeType mimeTypeForData_native_cref_QByteArray_constfct(long __this__nativeId, long data); /** *

Overloaded function for {@link #mimeTypeForFile(io.qt.core.QFileInfo, io.qt.core.QMimeDatabase.MatchMode)} * with mode = io.qt.core.QMimeDatabase.MatchMode.MatchDefault.

*/ @io.qt.QtUninvokable public final io.qt.core.QMimeType mimeTypeForFile(io.qt.core.QFileInfo fileInfo) { return mimeTypeForFile(fileInfo, io.qt.core.QMimeDatabase.MatchMode.MatchDefault); } /** *

See QMimeDatabase::mimeTypeForFile(QFileInfo,QMimeDatabase::MatchMode)const

*/ @io.qt.QtUninvokable public final io.qt.core.QMimeType mimeTypeForFile(io.qt.core.QFileInfo fileInfo, io.qt.core.QMimeDatabase.MatchMode mode){ return mimeTypeForFile_native_cref_QFileInfo_QMimeDatabase_MatchMode_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(fileInfo), mode.value()); } @io.qt.QtUninvokable private native io.qt.core.QMimeType mimeTypeForFile_native_cref_QFileInfo_QMimeDatabase_MatchMode_constfct(long __this__nativeId, long fileInfo, int mode); /** *

Overloaded function for {@link #mimeTypeForFile(java.lang.String, io.qt.core.QMimeDatabase.MatchMode)} * with mode = io.qt.core.QMimeDatabase.MatchMode.MatchDefault.

*/ @io.qt.QtUninvokable public final io.qt.core.QMimeType mimeTypeForFile(java.lang.String fileName) { return mimeTypeForFile(fileName, io.qt.core.QMimeDatabase.MatchMode.MatchDefault); } /** *

See QMimeDatabase::mimeTypeForFile(QString,QMimeDatabase::MatchMode)const

*/ @io.qt.QtUninvokable public final io.qt.core.QMimeType mimeTypeForFile(java.lang.String fileName, io.qt.core.QMimeDatabase.MatchMode mode){ return mimeTypeForFile_native_cref_QString_QMimeDatabase_MatchMode_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), fileName, mode.value()); } @io.qt.QtUninvokable private native io.qt.core.QMimeType mimeTypeForFile_native_cref_QString_QMimeDatabase_MatchMode_constfct(long __this__nativeId, java.lang.String fileName, int mode); /** *

See QMimeDatabase::mimeTypeForFileNameAndData(QString,QIODevice*)const

*/ @io.qt.QtUninvokable public final io.qt.core.QMimeType mimeTypeForFileNameAndData(java.lang.String fileName, io.qt.core.QIODevice device){ return mimeTypeForFileNameAndData_native_cref_QString_QIODevice_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), fileName, QtJambi_LibraryUtilities.internal.checkedNativeId(device)); } @io.qt.QtUninvokable private native io.qt.core.QMimeType mimeTypeForFileNameAndData_native_cref_QString_QIODevice_ptr_constfct(long __this__nativeId, java.lang.String fileName, long device); /** *

See QMimeDatabase::mimeTypeForFileNameAndData(QString,QByteArray)const

*/ @io.qt.QtUninvokable public final io.qt.core.QMimeType mimeTypeForFileNameAndData(java.lang.String fileName, io.qt.core.QByteArray data){ return mimeTypeForFileNameAndData_native_cref_QString_cref_QByteArray_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), fileName, QtJambi_LibraryUtilities.internal.checkedNativeId(data)); } @io.qt.QtUninvokable private native io.qt.core.QMimeType mimeTypeForFileNameAndData_native_cref_QString_cref_QByteArray_constfct(long __this__nativeId, java.lang.String fileName, long data); /** *

See QMimeDatabase::mimeTypeForName(QString)const

*/ @io.qt.QtUninvokable public final io.qt.core.QMimeType mimeTypeForName(java.lang.String nameOrAlias){ return mimeTypeForName_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), nameOrAlias); } @io.qt.QtUninvokable private native io.qt.core.QMimeType mimeTypeForName_native_cref_QString_constfct(long __this__nativeId, java.lang.String nameOrAlias); /** *

See QMimeDatabase::mimeTypeForUrl(QUrl)const

*/ @io.qt.QtUninvokable public final io.qt.core.QMimeType mimeTypeForUrl(io.qt.core.QUrl url){ return mimeTypeForUrl_native_cref_QUrl_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(url)); } @io.qt.QtUninvokable private native io.qt.core.QMimeType mimeTypeForUrl_native_cref_QUrl_constfct(long __this__nativeId, long url); /** *

See QMimeDatabase::mimeTypesForFileName(QString)const

*/ @io.qt.QtUninvokable public final io.qt.core.QList mimeTypesForFileName(java.lang.String fileName){ return mimeTypesForFileName_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), fileName); } @io.qt.QtUninvokable private native io.qt.core.QList mimeTypesForFileName_native_cref_QString_constfct(long __this__nativeId, java.lang.String fileName); /** *

See QMimeDatabase::suffixForFileName(QString)const

*/ @io.qt.QtUninvokable public final java.lang.String suffixForFileName(java.lang.String fileName){ return suffixForFileName_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), fileName); } @io.qt.QtUninvokable private native java.lang.String suffixForFileName_native_cref_QString_constfct(long __this__nativeId, java.lang.String fileName); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QMimeDatabase(QPrivateConstructor p) { super(p); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy