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

kmail

KMail::HtmlWriter

KMail::HtmlWriter Class Reference

#include <htmlwriter.h>

Inheritance diagram for KMail::HtmlWriter:

Inheritance graph
[legend]

List of all members.


Detailed Description

An interface to HTML sinks.

Author:
Marc Mutz <mutz@kde.org>
Deprecated:
KMail should be ported to Interface::HtmlWriter. This interface exposes internal working models. The queuing vs. writing() issues exposed here should be hidden by using two different implementations of KHTMLPartHtmlWriter: one for queuing, and one for writing. This should be fixed before the release, so we an keep the plugin interface stable.
Operate this interface in one and only one of the following two modes:

Mode

In sync mode, use begin() to initiate a session, then write() some chunks of HTML code and finally end() the session.

Mode

In async mode, use begin() to initialize a session, then queue() some chunks of HTML code and finally end the session by calling flush().

Queued HTML code is fed to the html sink using a timer. For this to work, control must return to the event loop so timer events are delivered.

mode

You may combine the two modes in the following way only. Any number of write() calls can precede queue() calls, but once a chunk has been queued, you must not write() more data, only queue() it.

Naturally, whenever you queued data in a given session, that session must be ended by calling flush(), not end().

Definition at line 99 of file htmlwriter.h.


Public Member Functions

virtual void embedPart (const QByteArray &contentId, const QString &url)=0
virtual void flush ()=0
virtual void queue (const QString &str)=0
virtual void reset ()=0
virtual ~HtmlWriter ()

Constructor & Destructor Documentation

virtual KMail::HtmlWriter::~HtmlWriter (  )  [inline, virtual]

Reimplemented from KMail::Interface::HtmlWriter.

Definition at line 101 of file htmlwriter.h.


Member Function Documentation

virtual void KMail::HtmlWriter::embedPart ( const QByteArray &  contentId,
const QString &  url 
) [pure virtual]

Embed a part with Content-ID contentId, using url url.

Implemented in KMail::FileHtmlWriter, KMail::KHtmlPartHtmlWriter, and KMail::TeeHtmlWriter.

virtual void KMail::HtmlWriter::flush (  )  [pure virtual]

(Start) flushing internal buffers, if any.

Implemented in KMail::FileHtmlWriter, KMail::KHtmlPartHtmlWriter, and KMail::TeeHtmlWriter.

virtual void KMail::HtmlWriter::queue ( const QString &  str  )  [pure virtual]

Implemented in KMail::FileHtmlWriter, KMail::KHtmlPartHtmlWriter, and KMail::TeeHtmlWriter.

virtual void KMail::HtmlWriter::reset (  )  [pure virtual]

Stop all possibly pending processing in order to be able to call begin() again.

Implemented in KMail::FileHtmlWriter, KMail::KHtmlPartHtmlWriter, and KMail::TeeHtmlWriter.


The documentation for this class was generated from the following file:
  • htmlwriter.h

kmail

Skip menu "kmail"
  • Main Page
  • 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