#include <qdnd_p.h>
Definition at line 139 of file qdnd_p.h.
◆ QOleEnumFmtEtc() [1/2]
Definition at line 53 of file qole_win.cpp.
Referenced by Clone().
59 for (
int idx = 0; idx < fmtetcs.
count(); ++idx) {
int count(const T &t) const
Returns the number of occurrences of value in the vector.
bool copyFormatEtc(LPFORMATETC dest, LPFORMATETC src) const
struct tagFORMATETC FORMATETC
QVector< LPFORMATETC > m_lpfmtetcs
void append(const T &t)
Inserts value at the end of the vector.
const T & at(int i) const
Returns the item at index position i in the vector.
◆ QOleEnumFmtEtc() [2/2]
QOleEnumFmtEtc::QOleEnumFmtEtc |
( |
const QVector< LPFORMATETC > & |
lpfmtetcs | ) |
|
|
explicit |
Definition at line 71 of file qole_win.cpp.
77 for (
int idx = 0; idx < lpfmtetcs.
count(); ++idx) {
78 LPFORMATETC srcetc = lpfmtetcs.
at(idx);
int count(const T &t) const
Returns the number of occurrences of value in the vector.
bool copyFormatEtc(LPFORMATETC dest, LPFORMATETC src) const
struct tagFORMATETC FORMATETC
QVector< LPFORMATETC > m_lpfmtetcs
void append(const T &t)
Inserts value at the end of the vector.
const T & at(int i) const
Returns the item at index position i in the vector.
◆ ~QOleEnumFmtEtc()
QOleEnumFmtEtc::~QOleEnumFmtEtc |
( |
| ) |
|
|
virtual |
Definition at line 90 of file qole_win.cpp.
94 #if !defined(Q_OS_WINCE) 95 if (CoGetMalloc(MEMCTX_TASK, &pmalloc) == NOERROR) {
97 if (SHGetMalloc(&pmalloc) == NOERROR) {
102 pmalloc->Free(tmpetc->ptd);
int count(const T &t) const
Returns the number of occurrences of value in the vector.
QVector< LPFORMATETC > m_lpfmtetcs
void clear()
Removes all the elements from the vector and releases the memory used by the vector.
const T & at(int i) const
Returns the item at index position i in the vector.
◆ Clone()
STDMETHODIMP QOleEnumFmtEtc::Clone |
( |
LPENUMFORMATETC FAR * |
newEnum | ) |
|
Definition at line 209 of file qole_win.cpp.
212 return ResultFromScode(E_INVALIDARG);
219 return ResultFromScode(E_OUTOFMEMORY);
QOleEnumFmtEtc(const QVector< FORMATETC > &fmtetcs)
QVector< LPFORMATETC > m_lpfmtetcs
◆ copyFormatEtc()
bool QOleEnumFmtEtc::copyFormatEtc |
( |
LPFORMATETC |
dest, |
|
|
LPFORMATETC |
src |
|
) |
| const |
|
private |
Definition at line 227 of file qole_win.cpp.
Referenced by Next(), and QOleEnumFmtEtc().
229 if (dest == NULL || src == NULL)
237 #if !defined(Q_OS_WINCE) 238 if (CoGetMalloc(MEMCTX_TASK, &pmalloc) != NOERROR)
240 if (SHGetMalloc(&pmalloc) != NOERROR)
244 pmalloc->Alloc(src->ptd->tdSize);
245 memcpy(dest->ptd, src->ptd,
size_t(src->ptd->tdSize));
◆ isNull()
bool QOleEnumFmtEtc::isNull |
( |
| ) |
const |
◆ Next()
STDMETHODIMP QOleEnumFmtEtc::Next |
( |
ULONG |
celt, |
|
|
LPFORMATETC |
rgelt, |
|
|
ULONG FAR * |
pceltFetched |
|
) |
| |
Definition at line 147 of file qole_win.cpp.
153 return ResultFromScode(E_INVALIDARG);
168 if (pceltFetched != NULL)
172 return ResultFromScode(S_FALSE);
int count(const T &t) const
Returns the number of occurrences of value in the vector.
bool copyFormatEtc(LPFORMATETC dest, LPFORMATETC src) const
QVector< LPFORMATETC > m_lpfmtetcs
const T & at(int i) const
Returns the item at index position i in the vector.
◆ QueryInterface()
STDMETHODIMP QOleEnumFmtEtc::QueryInterface |
( |
REFIID |
riid, |
|
|
void FAR *FAR * |
ppvObj |
|
) |
| |
Definition at line 118 of file qole_win.cpp.
120 if (riid == IID_IUnknown || riid == IID_IEnumFORMATETC) {
126 return ResultFromScode(E_NOINTERFACE);
◆ Reset()
STDMETHODIMP QOleEnumFmtEtc::Reset |
( |
void |
| ) |
|
◆ Skip()
STDMETHODIMP QOleEnumFmtEtc::Skip |
( |
ULONG |
celt | ) |
|
Definition at line 178 of file qole_win.cpp.
196 return ResultFromScode(S_FALSE);
int count(const T &t) const
Returns the number of occurrences of value in the vector.
QVector< LPFORMATETC > m_lpfmtetcs
◆ STDMETHOD_() [1/2]
QOleEnumFmtEtc::STDMETHOD_ |
( |
ULONG |
, |
|
|
AddRef |
|
|
) |
| |
◆ STDMETHOD_() [2/2]
QOleEnumFmtEtc::STDMETHOD_ |
( |
ULONG |
, |
|
|
Release |
|
|
) |
| |
◆ m_dwRefs
ULONG QOleEnumFmtEtc::m_dwRefs |
|
private |
◆ m_isNull
bool QOleEnumFmtEtc::m_isNull |
|
private |
◆ m_lpfmtetcs
QVector<LPFORMATETC> QOleEnumFmtEtc::m_lpfmtetcs |
|
private |
◆ m_nIndex
ULONG QOleEnumFmtEtc::m_nIndex |
|
private |
The documentation for this class was generated from the following files: