libkdepim
KPIM::MailListMimeData Class Reference
[Mail drag and drop]
#include <maillistdrag.h>
Inheritance diagram for KPIM::MailListMimeData:

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.
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 |
Constructor & Destructor Documentation
| MailListMimeData::MailListMimeData | ( | MailTextSource * | src = 0 |
) |
- Parameters:
-
src The callback class for getting the full text of the mail.
If not set, the message/rfc822 mimetype is not available. This object takes ownership of src and deletes it in the destructor.
Definition at line 214 of file maillistdrag.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference