konq_aboutpage.h 668 Bytes
Newer Older
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 27 28 29 30 31 32 33 34 35
#ifndef __konq_aboutpage_h__
#define __konq_aboutpage_h__

#include <QWebEngineUrlSchemeHandler>


class KonqAboutPageSingleton
{
public:
    QString launch();
    QString intro();
    QString specs();
    QString tips();
    QString plugins();

private:
    QString m_launch_html, m_intro_html, m_specs_html, m_tips_html, m_plugins_html;
};

class KonqUrlSchemeHandler : public QWebEngineUrlSchemeHandler
{
    Q_OBJECT
public:
    KonqUrlSchemeHandler(QObject *parent=Q_NULLPTR);
    ~KonqUrlSchemeHandler() Q_DECL_OVERRIDE;
    
    void requestStarted(QWebEngineUrlRequestJob *req) Q_DECL_OVERRIDE;

private:

    QString m_htmlDoc;
    QString m_what;
};

#endif