libkdepim
#include <maillistdrag.h>
Public Member Functions | |
MailListMimeData (MailTextSource *src=0) | |
~MailListMimeData () | |
Protected Member Functions | |
virtual QStringList | formats () const |
virtual bool | hasFormat (const QString &mimeType) const |
virtual QVariant | retrieveData (const QString &mimeType, QVariant::Type type) const |
Detailed Description
This special QMimeData has the ability to be associated with a MailTextSource.
This automatically adds another mimetype, "message/rfc822", which has the text of all mails as data. The class is needed because the new mimetype is only read on-demand when dropped, so no unnecessary mail copying is done when doing drag & drop inside of KMail.
For this to work, MailList::populateMimeData() needs to be called for the drag object so the mimedata for the MailSummarys is available, which is needed to read the serial numbers of the mails.
You only need to use this class when starting a drag with mails.
Definition at line 142 of file maillistdrag.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:04 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.