qspexecwebengineurlschemehandler.h 644 B

12345678910111213141516171819202122232425262728
  1. #ifndef QSPEXECWEBENGINEURLSCHEMEHANDLER_H
  2. #define QSPEXECWEBENGINEURLSCHEMEHANDLER_H
  3. #include <QObject>
  4. #include <QUrl>
  5. #include <QWebEngineUrlRequestJob>
  6. #include <QWebEngineUrlSchemeHandler>
  7. class QspExecWebEngineUrlSchemeHandler : public QWebEngineUrlSchemeHandler
  8. {
  9. Q_OBJECT
  10. public:
  11. explicit QspExecWebEngineUrlSchemeHandler(QObject *parent = 0);
  12. void requestStarted(QWebEngineUrlRequestJob *request);
  13. signals:
  14. void qspLinkClicked(QUrl url);
  15. public slots:
  16. void QspLinkClicked();
  17. private:
  18. void legacyLinkClicked(QWebEngineUrlRequestJob *request);
  19. QUrl url;
  20. };
  21. #endif // QSPEXECWEBENGINEURLSCHEMEHANDLER_H