Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QWindowsOleDataObject Class Reference

OLE data container. More...

#include <qwindowsole.h>

+ Inheritance diagram for QWindowsOleDataObject:
+ Collaboration diagram for QWindowsOleDataObject:

Public Member Functions

 QWindowsOleDataObject (QMimeData *mimeData)
 
 ~QWindowsOleDataObject () override
 
void releaseQt ()
 
QMimeDatamimeData () const
 
DWORD reportedPerformedEffect () const
 
STDMETHOD() GetData (LPFORMATETC pformatetcIn, LPSTGMEDIUM pmedium) override
 
STDMETHOD() GetDataHere (LPFORMATETC pformatetc, LPSTGMEDIUM pmedium) override
 
STDMETHOD() QueryGetData (LPFORMATETC pformatetc) override
 
STDMETHOD() GetCanonicalFormatEtc (LPFORMATETC pformatetc, LPFORMATETC pformatetcOut) override
 
STDMETHOD() SetData (LPFORMATETC pformatetc, STGMEDIUM FAR *pmedium, BOOL fRelease) override
 
STDMETHOD() EnumFormatEtc (DWORD dwDirection, LPENUMFORMATETC FAR *ppenumFormatEtc) override
 
STDMETHOD() DUnadvise (DWORD dwConnection) override
 
STDMETHOD() EnumDAdvise (LPENUMSTATDATA FAR *ppenumAdvise) override
 
- Public Member Functions inherited from QWindowsComBase< IDataObject >
 QWindowsComBase (ULONG initialRefCount=1)
 
virtual ~QWindowsComBase ()=default
 
HRESULT STDMETHODCALLTYPE QueryInterface (REFIID id, LPVOID *iface) override
 
ULONG STDMETHODCALLTYPE AddRef () override
 
ULONG STDMETHODCALLTYPE Release () override
 

Public Attributes

FORMATETC FAR * pFormatetc
 
FORMATETC FAR DWORD advf
 
FORMATETC FAR DWORD LPADVISESINK pAdvSink
 
FORMATETC FAR DWORD LPADVISESINK DWORD FAR *pdwConnection override
 

Detailed Description

OLE data container.

The following methods are NOT supported for data transfer using the clipboard or drag-drop: \list

  • IDataObject::SetData – return E_NOTIMPL
  • IDataObject::DAdvise – return OLE_E_ADVISENOTSUPPORTED
  • DUnadvise
  • EnumDAdvise
  • IDataObject::GetCanonicalFormatEtc – return E_NOTIMPL (NOTE: must set pformatetcOut->ptd = NULL) \endlist

Definition at line 21 of file qwindowsole.h.

Constructor & Destructor Documentation

◆ QWindowsOleDataObject()

QWindowsOleDataObject::QWindowsOleDataObject ( QMimeData mimeData)
explicit

Definition at line 39 of file qwindowsole.cpp.

References QMimeData::formats(), mimeData(), and qCDebug.

+ Here is the call graph for this function:

◆ ~QWindowsOleDataObject()

QWindowsOleDataObject::~QWindowsOleDataObject ( )
overridedefault

Member Function Documentation

◆ DUnadvise()

STDMETHODIMP QWindowsOleDataObject::DUnadvise ( DWORD  dwConnection)
override

Definition at line 179 of file qwindowsole.cpp.

◆ EnumDAdvise()

STDMETHODIMP QWindowsOleDataObject::EnumDAdvise ( LPENUMSTATDATA FAR *  ppenumAdvise)
override

Definition at line 185 of file qwindowsole.cpp.

◆ EnumFormatEtc()

STDMETHODIMP QWindowsOleDataObject::EnumFormatEtc ( DWORD  dwDirection,
LPENUMFORMATETC FAR *  ppenumFormatEtc 
)
override

Definition at line 135 of file qwindowsole.cpp.

References QWindowsMimeRegistry::allFormatsForMime(), QList< T >::append(), QWindowsContext::instance(), QWindowsContext::mimeConverter(), qCDebug, and QWindowsContext::verbose.

+ Here is the call graph for this function:

◆ GetCanonicalFormatEtc()

STDMETHODIMP QWindowsOleDataObject::GetCanonicalFormatEtc ( LPFORMATETC  pformatetc,
LPFORMATETC  pformatetcOut 
)
override

Definition at line 106 of file qwindowsole.cpp.

◆ GetData()

STDMETHODIMP QWindowsOleDataObject::GetData ( LPFORMATETC  pformatetcIn,
LPSTGMEDIUM  pmedium 
)
override

Definition at line 64 of file qwindowsole.cpp.

References QWindowsMimeRegistry::converterFromMime(), Qt::hex(), QWindowsContext::instance(), QWindowsContext::mimeConverter(), qCDebug, Qt::showbase(), and QWindowsContext::verbose.

Referenced by QWindowsDropDataObject::GetData().

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

◆ GetDataHere()

STDMETHODIMP QWindowsOleDataObject::GetDataHere ( LPFORMATETC  pformatetc,
LPSTGMEDIUM  pmedium 
)
override

Definition at line 82 of file qwindowsole.cpp.

◆ mimeData()

QMimeData * QWindowsOleDataObject::mimeData ( ) const

Definition at line 53 of file qwindowsole.cpp.

References QMimeData::data().

Referenced by QWindowsOleDataObject(), QWindowsClipboard::mimeData(), and QWindowsClipboard::setMimeData().

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

◆ QueryGetData()

STDMETHODIMP QWindowsOleDataObject::QueryGetData ( LPFORMATETC  pformatetc)
override

Definition at line 88 of file qwindowsole.cpp.

References QWindowsMimeRegistry::converterFromMime(), Qt::hex(), QWindowsContext::instance(), QWindowsContext::mimeConverter(), qCDebug, and QWindowsContext::verbose.

Referenced by QWindowsDropDataObject::QueryGetData().

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

◆ releaseQt()

void QWindowsOleDataObject::releaseQt ( )

Definition at line 48 of file qwindowsole.cpp.

◆ reportedPerformedEffect()

DWORD QWindowsOleDataObject::reportedPerformedEffect ( ) const

Definition at line 58 of file qwindowsole.cpp.

◆ SetData()

STDMETHODIMP QWindowsOleDataObject::SetData ( LPFORMATETC  pformatetc,
STGMEDIUM FAR *  pmedium,
BOOL  fRelease 
)
override

Definition at line 113 of file qwindowsole.cpp.

References Qt::hex(), pFormatetc, qCDebug, and QWindowsContext::verbose.

+ Here is the call graph for this function:

Member Data Documentation

◆ advf

FORMATETC FAR DWORD QWindowsOleDataObject::advf

Definition at line 39 of file qwindowsole.h.

◆ override

FORMATETC FAR DWORD LPADVISESINK DWORD FAR* pdwConnection QWindowsOleDataObject::override

Definition at line 40 of file qwindowsole.h.

◆ pAdvSink

FORMATETC FAR DWORD LPADVISESINK QWindowsOleDataObject::pAdvSink

Definition at line 39 of file qwindowsole.h.

◆ pFormatetc

FORMATETC FAR* QWindowsOleDataObject::pFormatetc

Definition at line 39 of file qwindowsole.h.

Referenced by SetData().


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