blob: 3835cecc0e3fa99d998c3d8e177d9e591c21d0d2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef GOPHERMAPRENDERER_HPP
#define GOPHERMAPRENDERER_HPP
#include "documentstyle.hpp"
#include <memory>
#include <QTextDocument>
struct GophermapRenderer
{
GophermapRenderer() = delete;
//! Renders the given byte sequence into a GeminiDocument.
//! @param input The utf8 encoded input string
//! @param root_url The url that is used to resolve relative links
//! @param style The style which is used to render the document
//! @param outline The extracted outline from the document
static std::unique_ptr<QTextDocument> render(
QByteArray const & input,
QUrl const & root_url,
DocumentStyle const & style
);
};
#endif // GOPHERMAPRENDERER_HPP
|