java.lang.Object
io.qt.internal.NativeUtility.Object
io.qt.QtObject
io.qt.core.QMimeDatabase
- All Implemented Interfaces:
QtObjectInterface
Maintains a database of MIME types
Java wrapper for Qt's class QMimeDatabase
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal QMimeType
mimeTypeForData
(QByteArray data) final QMimeType
mimeTypeForData
(QIODevice device) final QMimeType
mimeTypeForFile
(QFileInfo fileInfo) Overloaded function formimeTypeForFile(io.qt.core.QFileInfo, io.qt.core.QMimeDatabase.MatchMode)
withmode = io.qt.core.QMimeDatabase.MatchMode.MatchDefault
.final QMimeType
mimeTypeForFile
(QFileInfo fileInfo, QMimeDatabase.MatchMode mode) final QMimeType
mimeTypeForFile
(String fileName) Overloaded function formimeTypeForFile(java.lang.String, io.qt.core.QMimeDatabase.MatchMode)
withmode = io.qt.core.QMimeDatabase.MatchMode.MatchDefault
.final QMimeType
mimeTypeForFile
(String fileName, QMimeDatabase.MatchMode mode) final QMimeType
mimeTypeForFileNameAndData
(String fileName, QByteArray data) final QMimeType
mimeTypeForFileNameAndData
(String fileName, QIODevice device) final QMimeType
mimeTypeForName
(String nameOrAlias) final QMimeType
mimeTypeForUrl
(QUrl url) mimeTypesForFileName
(String fileName) final String
suffixForFileName
(String fileName) Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QMimeDatabase
public QMimeDatabase() -
QMimeDatabase
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
allMimeTypes
-
mimeTypeForData
-
mimeTypeForData
-
mimeTypeForFile
Overloaded function for
mimeTypeForFile(io.qt.core.QFileInfo, io.qt.core.QMimeDatabase.MatchMode)
withmode = io.qt.core.QMimeDatabase.MatchMode.MatchDefault
. -
mimeTypeForFile
@QtUninvokable public final QMimeType mimeTypeForFile(QFileInfo fileInfo, QMimeDatabase.MatchMode mode) -
mimeTypeForFile
Overloaded function for
mimeTypeForFile(java.lang.String, io.qt.core.QMimeDatabase.MatchMode)
withmode = io.qt.core.QMimeDatabase.MatchMode.MatchDefault
. -
mimeTypeForFile
@QtUninvokable public final QMimeType mimeTypeForFile(String fileName, QMimeDatabase.MatchMode mode) -
mimeTypeForFileNameAndData
-
mimeTypeForFileNameAndData
-
mimeTypeForName
-
mimeTypeForUrl
-
mimeTypesForFileName
-
suffixForFileName
-