![]() |
Qt 6.x
The Qt SDK
|
Public Member Functions | |
QLastResortMimes () | |
bool | canConvertFromMime (const FORMATETC &formatetc, const QMimeData *mimeData) const override |
Returns true if the converter can convert from the mimeData to the format specified in formatetc. | |
bool | convertFromMime (const FORMATETC &formatetc, const QMimeData *mimeData, STGMEDIUM *pmedium) const override |
Convert the mimeData to the format specified in formatetc. | |
QList< FORMATETC > | formatsForMime (const QString &mimeType, const QMimeData *mimeData) const override |
Returns a QList of FORMATETC structures representing the different windows clipboard formats that can be provided for the mimeType from the mimeData. | |
bool | canConvertToMime (const QString &mimeType, IDataObject *pDataObj) const override |
Returns true if the converter can convert to the mimeType from the available formats in pDataObj. | |
QVariant | convertToMime (const QString &mime, IDataObject *pDataObj, QMetaType preferredType) const override |
Returns a QVariant containing the converted data for mimeType from pDataObj. | |
QString | mimeForFormat (const FORMATETC &formatetc) const override |
Returns the mime type that will be created form the format specified in formatetc, or an empty string if this converter does not support formatetc. | |
![]() | |
QWindowsMimeConverter () | |
Constructs a QWindowsMimeConverter instance. | |
virtual | ~QWindowsMimeConverter () |
Constructs a QWindowsMimeConverter instance. | |
virtual bool | canConvertFromMime (const FORMATETC &formatetc, const QMimeData *mimeData) const =0 |
Returns true if the converter can convert from the mimeData to the format specified in formatetc. | |
virtual bool | convertFromMime (const FORMATETC &formatetc, const QMimeData *mimeData, STGMEDIUM *pmedium) const =0 |
Convert the mimeData to the format specified in formatetc. | |
virtual QList< FORMATETC > | formatsForMime (const QString &mimeType, const QMimeData *mimeData) const =0 |
Returns a QList of FORMATETC structures representing the different windows clipboard formats that can be provided for the mimeType from the mimeData. | |
virtual bool | canConvertToMime (const QString &mimeType, IDataObject *pDataObj) const =0 |
Returns true if the converter can convert to the mimeType from the available formats in pDataObj. | |
virtual QVariant | convertToMime (const QString &mimeType, IDataObject *pDataObj, QMetaType preferredType) const =0 |
Returns a QVariant containing the converted data for mimeType from pDataObj. | |
virtual QString | mimeForFormat (const FORMATETC &formatetc) const =0 |
Returns the mime type that will be created form the format specified in formatetc, or an empty string if this converter does not support formatetc. | |
Additional Inherited Members | |
![]() | |
static int | registerMimeType (const QString &mimeType) |
Registers the MIME type mimeType, and returns an ID number identifying the format on Windows. | |
Definition at line 1078 of file qwindowsmimeregistry.cpp.
QLastResortMimes::QLastResortMimes | ( | ) |
Definition at line 1102 of file qwindowsmimeregistry.cpp.
|
overridevirtual |
Returns true
if the converter can convert from the mimeData to the format specified in formatetc.
All subclasses must reimplement this pure virtual function.
Implements QWindowsMimeConverter.
Definition at line 1128 of file qwindowsmimeregistry.cpp.
References QInternalMimeData::hasFormatHelper(), mimeData, and Q_UNUSED.
Referenced by convertFromMime().
|
overridevirtual |
Returns true
if the converter can convert to the mimeType from the available formats in pDataObj.
All subclasses must reimplement this pure virtual function.
Implements QWindowsMimeConverter.
Definition at line 1196 of file qwindowsmimeregistry.cpp.
References canGetData(), customMimeType(), isCustomMimeType(), mimeType, QWindowsMimeConverter::registerMimeType(), and QString::utf16().
Referenced by convertToMime().
|
overridevirtual |
Convert the mimeData to the format specified in formatetc.
The converted data should then be placed in pmedium structure.
Return true if the conversion was successful.
All subclasses must reimplement this pure virtual function.
Implements QWindowsMimeConverter.
Definition at line 1143 of file qwindowsmimeregistry.cpp.
References canConvertFromMime(), getCf(), mimeData, Q_UNUSED, QInternalMimeData::renderDataHelper(), and setData().
|
overridevirtual |
Returns a QVariant containing the converted data for mimeType from pDataObj.
If possible the QVariant should be of the preferredType to avoid needless conversions.
All subclasses must reimplement this pure virtual function.
Implements QWindowsMimeConverter.
Definition at line 1210 of file qwindowsmimeregistry.cpp.
References canConvertToMime(), customMimeType(), getData(), isCustomMimeType(), mimeType, Q_UNUSED, QWindowsMimeConverter::registerMimeType(), and QString::utf16().
|
overridevirtual |
Returns a QList of FORMATETC structures representing the different windows clipboard formats that can be provided for the mimeType from the mimeData.
All subclasses must reimplement this pure virtual function.
Implements QWindowsMimeConverter.
Definition at line 1156 of file qwindowsmimeregistry.cpp.
References Qt::CaseInsensitive, QList< T >::isEmpty(), mimeType, qCDebug, QWindowsMimeConverter::registerMimeType(), and setCf().
Returns the mime type that will be created form the format specified in formatetc, or an empty string if this converter does not support formatetc.
All subclasses must reimplement this pure virtual function.
Implements QWindowsMimeConverter.
Definition at line 1232 of file qwindowsmimeregistry.cpp.
References QInternalMimeData::canReadData(), Qt::CaseInsensitive, QWindowsMimeRegistry::clipboardFormatName(), getCf(), i, QString::isEmpty(), QString::startsWith(), and x_qt_windows_mime.