Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QWindowsMimeRegistry Class Reference

Manages the list of QWindowsMimeConverter instances. More...

#include <qwindowsmimeregistry.h>

+ Collaboration diagram for QWindowsMimeRegistry:

Public Types

using QWindowsMimeConverter = QWindowsMimeConverter
 

Public Member Functions

 QWindowsMimeRegistry ()
 
 ~QWindowsMimeRegistry ()
 
QWindowsMimeConverterconverterToMime (const QString &mimeType, IDataObject *pDataObj) const
 
QStringList allMimesForFormats (IDataObject *pDataObj) const
 
QWindowsMimeConverterconverterFromMime (const FORMATETC &formatetc, const QMimeData *mimeData) const
 
QList< FORMATETCallFormatsForMime (const QMimeData *mimeData) const
 
QVariant convertToMime (const QStringList &mimeTypes, IDataObject *pDataObj, QMetaType preferredType, QString *format=nullptr) const
 
void registerMime (QWindowsMimeConverter *mime)
 
void unregisterMime (QWindowsMimeConverter *mime)
 

Static Public Member Functions

static int registerMimeType (const QString &mime)
 Registers the MIME type mime, and returns an ID number identifying the format on Windows.
 
static QString clipboardFormatName (int cf)
 

Detailed Description

Manages the list of QWindowsMimeConverter instances.

See also
QWindowsMimeConverter

Definition at line 19 of file qwindowsmimeregistry.h.

Member Typedef Documentation

◆ QWindowsMimeConverter

Constructor & Destructor Documentation

◆ QWindowsMimeRegistry()

QWindowsMimeRegistry::QWindowsMimeRegistry ( )
default

◆ ~QWindowsMimeRegistry()

QWindowsMimeRegistry::~QWindowsMimeRegistry ( )

Definition at line 1276 of file qwindowsmimeregistry.cpp.

References QList< T >::begin(), and qDeleteAll().

+ Here is the call graph for this function:

Member Function Documentation

◆ allFormatsForMime()

QList< FORMATETC > QWindowsMimeRegistry::allFormatsForMime ( const QMimeData * mimeData) const

Definition at line 1331 of file qwindowsmimeregistry.cpp.

References QList< T >::at(), QWindowsMimeConverter::formatsForMime(), QInternalMimeData::formatsHelper(), i, mimeData, Q_UNUSED, and QList< T >::size().

Referenced by QWindowsOleDataObject::EnumFormatEtc().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ allMimesForFormats()

QStringList QWindowsMimeRegistry::allMimesForFormats ( IDataObject * pDataObj) const

Definition at line 1291 of file qwindowsmimeregistry.cpp.

References QList< T >::at(), i, QWindowsMimeConverter::mimeForFormat(), qCDebug, QList< T >::size(), and QWindowsContext::verbose.

Referenced by QWindowsInternalMimeData::formats_sys().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clipboardFormatName()

QString QWindowsMimeRegistry::clipboardFormatName ( int cf)
static

Definition at line 1365 of file qwindowsmimeregistry.cpp.

References QString::fromWCharArray().

Referenced by QLastResortMimes::mimeForFormat(), and operator<<().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ converterFromMime()

QWindowsMimeRegistry::QWindowsMimeConverter * QWindowsMimeRegistry::converterFromMime ( const FORMATETC & formatetc,
const QMimeData * mimeData ) const

Definition at line 1320 of file qwindowsmimeregistry.cpp.

References QList< T >::at(), QWindowsMimeConverter::canConvertFromMime(), i, mimeData, qCDebug, and QList< T >::size().

Referenced by QWindowsOleDataObject::GetData(), and QWindowsOleDataObject::QueryGetData().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ converterToMime()

QWindowsMimeRegistry::QWindowsMimeConverter * QWindowsMimeRegistry::converterToMime ( const QString & mimeType,
IDataObject * pDataObj ) const

Definition at line 1281 of file qwindowsmimeregistry.cpp.

References QList< T >::at(), QWindowsMimeConverter::canConvertToMime(), i, mimeType, and QList< T >::size().

Referenced by convertToMime(), QWindowsInternalMimeData::hasFormat_sys(), and QWindowsInternalMimeData::retrieveData_sys().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ convertToMime()

QVariant QWindowsMimeRegistry::convertToMime ( const QStringList & mimeTypes,
IDataObject * pDataObj,
QMetaType preferredType,
QString * format = nullptr ) const

Definition at line 1372 of file qwindowsmimeregistry.cpp.

References converterToMime(), QMetaType::id(), and qCDebug.

+ Here is the call graph for this function:

◆ registerMime()

void QWindowsMimeRegistry::registerMime ( QWindowsMimeConverter * mime)

Definition at line 1395 of file qwindowsmimeregistry.cpp.

References QList< T >::append(), and mime.

+ Here is the call graph for this function:

◆ registerMimeType()

int QWindowsMimeRegistry::registerMimeType ( const QString & mime)
static

Registers the MIME type mime, and returns an ID number identifying the format on Windows.

A mime type {application/x-qt-windows-mime;value="WindowsType"} will be registered as the clipboard format for WindowsType.

Definition at line 1408 of file qwindowsmimeregistry.cpp.

References customMimeType(), isCustomMimeType(), mime, mimeType, qErrnoWarning(), and qPrintable.

Referenced by QWindowsApplication::registerMimeType().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unregisterMime()

void QWindowsMimeRegistry::unregisterMime ( QWindowsMimeConverter * mime)
inline

Definition at line 38 of file qwindowsmimeregistry.h.

References mime, and QList< T >::removeOne().

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: