repoindex/gui/webpage.h

31 lines
511 B
C
Raw Permalink Normal View History

2016-02-27 21:00:58 +01:00
#ifndef WEBPAGE_H
#define WEBPAGE_H
2019-06-10 15:39:56 +02:00
#include "./gui/webviewdefs.h"
#include "./gui/webviewincludes.h"
2016-02-27 21:00:58 +01:00
namespace RepoIndex {
2019-06-10 15:39:56 +02:00
class WebPage : public REPOINDEX_WEB_PAGE
2016-02-27 21:00:58 +01:00
{
Q_OBJECT
public:
2019-06-10 15:39:56 +02:00
WebPage(REPOINDEX_WEB_VIEW *view = nullptr);
2016-02-27 21:00:58 +01:00
2020-03-08 14:12:22 +01:00
public Q_SLOTS:
2016-02-27 21:00:58 +01:00
void openUrlExternal(const QUrl &url);
protected:
2019-06-10 15:39:56 +02:00
REPOINDEX_WEB_PAGE *createWindow(WebWindowType type);
2016-02-27 21:00:58 +01:00
2020-03-08 14:12:22 +01:00
private Q_SLOTS:
2016-02-27 21:00:58 +01:00
void delegateToExternalBrowser(const QUrl &url);
private:
2019-06-10 15:39:56 +02:00
REPOINDEX_WEB_VIEW *m_view;
2016-02-27 21:00:58 +01:00
};
}
#endif // WEBPAGE_H