#include <klfmime.h>
Public Member Functions | |
KLFMimeData (const QString &exportProfileName, const KLFBackend::klfOutput &output) | |
virtual | ~KLFMimeData () |
QStringList | formats () const |
Protected Member Functions | |
QVariant | retrieveData (const QString &mimetype, QVariant::Type type) const |
A QMimeData subclass for Copy and Drag operations in KLFMainWin, that supports delayed data processing, ie. that actually creates the requested data only on drop or paste, and not when the operation is initiated.
This function can be used as a regular QMimeData object to copy or drag any KLFBackend::klfOutput data, with a given export profile.
KLFMimeData::KLFMimeData | ( | const QString & | exportProfileName, |
const KLFBackend::klfOutput & | output | ||
) |
Definition at line 528 of file klfmime.cpp.
References __klf_init_the_macpasteboardmime(), KLF_DEBUG_BLOCK, and KLF_FUNC_NAME.
KLFMimeData::~KLFMimeData | ( | ) | [virtual] |
Definition at line 540 of file klfmime.cpp.
References KLF_DEBUG_BLOCK, and KLF_FUNC_NAME.
QStringList KLFMimeData::formats | ( | ) | const |
Definition at line 570 of file klfmime.cpp.
References KLFMimeExportProfile::availableExporterMimeTypes(), QStringList::contains(), QMimeData::formats(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, and klfDbg.
QVariant KLFMimeData::retrieveData | ( | const QString & | mimetype, |
QVariant::Type | type | ||
) | const [protected] |
Definition at line 585 of file klfmime.cpp.
References QStringList::contains(), KLFMimeExporter::data(), QMimeData::data(), KLFMimeExportProfile::exporterLookupFor(), KLFMimeExportProfile::indexOfMimeType(), KLF_ASSERT_NOT_NULL, KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfDbg, KLFMimeExportProfile::profileName(), QMimeData::retrieveData(), and QString::size().