java.lang.Object
io.qt.QtObject
io.qt.core.QMimeDatabase
- All Implemented Interfaces:
QtObjectInterface
Maintains a database of MIME types
Java wrapper for Qt class QMimeDatabase
- Since:
- This class was introduced in Qt 5.0.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal QMimeType
mimeTypeForData
(byte [] data) Overloaded function formimeTypeForData(io.qt.core.QByteArray)
.final 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, byte [] data) Overloaded function formimeTypeForFileNameAndData(java.lang.String, io.qt.core.QByteArray)
.final QMimeType
mimeTypeForFileNameAndData
(String fileName, QByteArray data) final QMimeType
mimeTypeForFileNameAndData
(String fileName, QIODevice device) final QMimeType
mimeTypeForName
(String nameOrAlias) final QMimeType
mimeTypeForUrl
(QUrl url) final QMimeType
mimeTypeForUrl
(String url) Overloaded function formimeTypeForUrl(io.qt.core.QUrl)
.mimeTypesForFileName
(String fileName) final String
suffixForFileName
(String fileName) Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QMimeDatabase
public QMimeDatabase()
-
-
Method Details
-
allMimeTypes
- Returns:
-
mimeTypeForData
- Parameters:
data
-- Returns:
-
mimeTypeForData
- Parameters:
device
-- Returns:
-
mimeTypeForFile
@QtUninvokable public final QMimeType mimeTypeForFile(QFileInfo fileInfo, QMimeDatabase.MatchMode mode) - Parameters:
fileInfo
-mode
-- Returns:
-
mimeTypeForFile
@QtUninvokable public final QMimeType mimeTypeForFile(String fileName, QMimeDatabase.MatchMode mode) - Parameters:
fileName
-mode
-- Returns:
-
mimeTypeForFileNameAndData
- Parameters:
fileName
-data
-- Returns:
-
mimeTypeForFileNameAndData
- Parameters:
fileName
-device
-- Returns:
-
mimeTypeForName
- Parameters:
nameOrAlias
-- Returns:
-
mimeTypeForUrl
- Parameters:
url
-- Returns:
-
mimeTypesForFileName
- Parameters:
fileName
-- Returns:
-
suffixForFileName
- Parameters:
fileName
-- Returns:
-
mimeTypeForData
Overloaded function for
mimeTypeForData(io.qt.core.QByteArray)
. -
mimeTypeForFile
Overloaded function for
mimeTypeForFile(io.qt.core.QFileInfo, io.qt.core.QMimeDatabase.MatchMode)
withmode = io.qt.core.QMimeDatabase.MatchMode.MatchDefault
. -
mimeTypeForFile
Overloaded function for
mimeTypeForFile(java.lang.String, io.qt.core.QMimeDatabase.MatchMode)
withmode = io.qt.core.QMimeDatabase.MatchMode.MatchDefault
. -
mimeTypeForFileNameAndData
Overloaded function for
mimeTypeForFileNameAndData(java.lang.String, io.qt.core.QByteArray)
. -
mimeTypeForUrl
Overloaded function for
mimeTypeForUrl(io.qt.core.QUrl)
.
-