Messagelib

filehtmlwriter.h
1 /* -*- c++ -*-
2  filehtmlwriter.h
3 
4  This file is part of KMail, the KDE mail client.
5  SPDX-FileCopyrightText: 2003 Marc Mutz <[email protected]>
6 
7  SPDX-License-Identifier: GPL-2.0-or-later
8 */
9 
10 #pragma once
11 
12 #include "messageviewer_export.h"
13 #include <MessageViewer/HtmlWriter>
14 
15 #include <QFile>
16 
17 namespace MessageViewer
18 {
19 /**
20  * @brief The FileHtmlWriter class
21  */
22 class MESSAGEVIEWER_EXPORT FileHtmlWriter : public HtmlWriter
23 {
24 public:
25  explicit FileHtmlWriter(const QString &filename);
26  ~FileHtmlWriter() override;
27 
28  void begin() override;
29  void end() override;
30  void reset() override;
31  Q_REQUIRED_RESULT QIODevice *device() const override;
32  void embedPart(const QByteArray &contentId, const QString &url) override;
33  void setExtraHead(const QString &str) override;
34  void setStyleBody(const QString &styleBody) override;
35 
36 private:
37  QFile mFile;
38 };
39 } // namespace MessageViewer
40 
An interface for HTML sinks.
Definition: htmlwriter.h:28
The FileHtmlWriter class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Dec 6 2021 23:04:57 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.