44 #if !(defined(QT_NO_DRAGANDDROP) && defined(QT_NO_CLIPBOARD)) 46 #if defined(Q_OS_WINCE) 59 for (
int idx = 0; idx < fmtetcs.
count(); ++idx) {
77 for (
int idx = 0; idx < lpfmtetcs.
count(); ++idx) {
78 LPFORMATETC srcetc = lpfmtetcs.
at(idx);
94 #if !defined(Q_OS_WINCE) 95 if (CoGetMalloc(MEMCTX_TASK, &pmalloc) == NOERROR) {
97 if (SHGetMalloc(&pmalloc) == NOERROR) {
102 pmalloc->Free(tmpetc->ptd);
120 if (riid == IID_IUnknown || riid == IID_IEnumFORMATETC) {
126 return ResultFromScode(E_NOINTERFACE);
130 QOleEnumFmtEtc::AddRef(
void)
153 return ResultFromScode(E_INVALIDARG);
168 if (pceltFetched != NULL)
172 return ResultFromScode(S_FALSE);
196 return ResultFromScode(S_FALSE);
212 return ResultFromScode(E_INVALIDARG);
219 return ResultFromScode(E_OUTOFMEMORY);
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));
254 #endif // QT_NO_DRAGANDDROP && QT_NO_CLIPBOARD #define QT_END_NAMESPACE
This macro expands to.
STDMETHOD() Next(ULONG celt, LPFORMATETC rgelt, ULONG FAR *pceltFetched)
int count(const T &t) const
Returns the number of occurrences of value in the vector.
QOleEnumFmtEtc(const QVector< FORMATETC > &fmtetcs)
bool copyFormatEtc(LPFORMATETC dest, LPFORMATETC src) const
STDMETHOD() Skip(ULONG celt)
struct tagFORMATETC FORMATETC
QVector< LPFORMATETC > m_lpfmtetcs
The QVector class is a template class that provides a dynamic array.
STDMETHOD() Clone(LPENUMFORMATETC FAR *newEnum)
STDMETHOD() QueryInterface(REFIID riid, void FAR *FAR *ppvObj)
#define QT_BEGIN_NAMESPACE
This macro expands to.
void clear()
Removes all the elements from the vector and releases the memory used by the vector.
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.
virtual ~QOleEnumFmtEtc()