MessageViewer::FileHtmlWriter

Search for usage in LXR

MessageViewer::FileHtmlWriter Class Reference

#include <filehtmlwriter.h>

Inheritance diagram for MessageViewer::FileHtmlWriter:

Public Member Functions

 FileHtmlWriter (const QString &filename)
 
void begin () override
 
QIODevicedevice () const override
 
void embedPart (const QByteArray &contentId, const QString &url) override
 
void end () override
 
void reset () override
 
void setExtraHead (const QString &str) override
 
void setStyleBody (const QString &styleBody) override
 
- Public Member Functions inherited from MessageViewer::HtmlWriter
QTextStreamstream () const
 
void write (const QString &html)
 

Detailed Description

The FileHtmlWriter class.

Definition at line 22 of file filehtmlwriter.h.

Constructor & Destructor Documentation

◆ FileHtmlWriter()

FileHtmlWriter::FileHtmlWriter ( const QString & filename)
explicit

Definition at line 15 of file filehtmlwriter.cpp.

◆ ~FileHtmlWriter()

FileHtmlWriter::~FileHtmlWriter ( )
override

Definition at line 20 of file filehtmlwriter.cpp.

Member Function Documentation

◆ begin()

void FileHtmlWriter::begin ( )
overridevirtual

Signal the begin of stuff to write.

Sub-classes should open device() in a writable mode here and then call the base class.

Reimplemented from MessageViewer::HtmlWriter.

Definition at line 29 of file filehtmlwriter.cpp.

◆ device()

QIODevice * FileHtmlWriter::device ( ) const
nodiscardoverridevirtual

Returns the QIODevice backing this HtmlWriter instance.

Before writing to this directly, make sure to flush stream().

Implements MessageViewer::HtmlWriter.

Definition at line 55 of file filehtmlwriter.cpp.

◆ embedPart()

void FileHtmlWriter::embedPart ( const QByteArray & contentId,
const QString & url )
overridevirtual

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

Implements MessageViewer::HtmlWriter.

Definition at line 60 of file filehtmlwriter.cpp.

◆ end()

void FileHtmlWriter::end ( )
overridevirtual

Signal the end of stuff to write.

Sub-classes should call the base class and then close device() here.

Reimplemented from MessageViewer::HtmlWriter.

Definition at line 41 of file filehtmlwriter.cpp.

◆ reset()

void FileHtmlWriter::reset ( )
overridevirtual

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

Sub-classes should call the base class and then reset device() here.

Reimplemented from MessageViewer::HtmlWriter.

Definition at line 47 of file filehtmlwriter.cpp.

◆ setExtraHead()

void FileHtmlWriter::setExtraHead ( const QString & str)
overridevirtual

Implements MessageViewer::HtmlWriter.

Definition at line 65 of file filehtmlwriter.cpp.

◆ setStyleBody()

void FileHtmlWriter::setStyleBody ( const QString & styleBody)
overridevirtual

Implements MessageViewer::HtmlWriter.

Definition at line 69 of file filehtmlwriter.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:05:11 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.