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

messageviewer

  • MessageViewer
  • HtmlWriter
Public Member Functions | List of all members
MessageViewer::HtmlWriter Class Referenceabstract

#include <htmlwriter.h>

Inheritance diagram for MessageViewer::HtmlWriter:
Inheritance graph
[legend]

Public Member Functions

virtual ~HtmlWriter ()
 
virtual void embedPart (const QByteArray &contentId, const QString &url)=0
 
virtual void extraHead (const QString &str)=0
 
virtual void flush ()=0
 
virtual void queue (const QString &str)=0
 
virtual void reset ()=0
 
- Public Member Functions inherited from MessageViewer::Interface::HtmlWriter
virtual void begin (const QString &cssDefinitions)=0
 
virtual void end ()=0
 
virtual void write (const QString &html)=0
 

Detailed Description

An interface to HTML sinks.

Author
Marc Mutz mutz@.nosp@m.kde..nosp@m.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 98 of file htmlwriter.h.

Constructor & Destructor Documentation

virtual MessageViewer::HtmlWriter::~HtmlWriter ( )
inlinevirtual

Reimplemented from MessageViewer::Interface::HtmlWriter.

Definition at line 100 of file htmlwriter.h.

Member Function Documentation

virtual void MessageViewer::HtmlWriter::embedPart ( const QByteArray &  contentId,
const QString &  url 
)
pure virtual

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

Implemented in MessageViewer::TeeHtmlWriter, MessageViewer::WebKitPartHtmlWriter, and MessageViewer::FileHtmlWriter.

virtual void MessageViewer::HtmlWriter::extraHead ( const QString &  str)
pure virtual

Implemented in MessageViewer::TeeHtmlWriter, MessageViewer::WebKitPartHtmlWriter, and MessageViewer::FileHtmlWriter.

virtual void MessageViewer::HtmlWriter::flush ( )
pure virtual

(Start) flushing internal buffers, if any.

Implemented in MessageViewer::TeeHtmlWriter, MessageViewer::WebKitPartHtmlWriter, and MessageViewer::FileHtmlWriter.

virtual void MessageViewer::HtmlWriter::queue ( const QString &  str)
pure virtual

Implemented in MessageViewer::TeeHtmlWriter, MessageViewer::WebKitPartHtmlWriter, and MessageViewer::FileHtmlWriter.

virtual void MessageViewer::HtmlWriter::reset ( )
pure virtual

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

Implemented in MessageViewer::TeeHtmlWriter, MessageViewer::WebKitPartHtmlWriter, and MessageViewer::FileHtmlWriter.


The documentation for this class was generated from the following file:
  • htmlwriter.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

messageviewer

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

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal