• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

libkdepim

KPIM::MailListMimeData

KPIM::MailListMimeData Class Reference
[Mail drag and drop]

#include <maillistdrag.h>

Inheritance diagram for KPIM::MailListMimeData:

Inheritance graph
[legend]

List of all members.


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:
  • maillistdrag.h
  • maillistdrag.cpp

libkdepim

Skip menu "libkdepim"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal