Falkon Develop
Cross-platform Qt-based web browser
QmlPluginInterface Class Reference

#include <qmlplugininterface.h>

Inheritance diagram for QmlPluginInterface:
PluginInterface

Signals

void qmlPluginUnloaded ()
 

Public Member Functions

 QmlPluginInterface ()
 
 ~QmlPluginInterface () override
 
void init (InitState state, const QString &settingsPath) override
 
void unload () override
 
bool testPlugin () override
 
void setEngine (QQmlEngine *engine)
 
void setName (const QString &name)
 
void populateWebViewMenu (QMenu *menu, WebView *webview, const WebHitTestResult &webHitTestResult) override
 
void showSettings (QWidget *parent=nullptr) override
 
bool mouseDoubleClick (Qz::ObjectName type, QObject *obj, QMouseEvent *event) override
 
bool mousePress (Qz::ObjectName type, QObject *obj, QMouseEvent *event) override
 
bool mouseRelease (Qz::ObjectName type, QObject *obj, QMouseEvent *event) override
 
bool mouseMove (Qz::ObjectName type, QObject *obj, QMouseEvent *event) override
 
bool wheelEvent (Qz::ObjectName type, QObject *obj, QWheelEvent *event) override
 
bool keyPress (Qz::ObjectName type, QObject *obj, QKeyEvent *event) override
 
bool keyRelease (Qz::ObjectName type, QObject *obj, QKeyEvent *event) override
 
bool acceptNavigationRequest (WebPage *page, const QUrl &url, QWebEnginePage::NavigationType type, bool isMainFrame) override
 
- Public Member Functions inherited from PluginInterface
virtual ~PluginInterface ()=default
 
virtual void init (InitState state, const QString &settingsPath)=0
 
virtual void unload ()=0
 
virtual bool testPlugin ()=0
 
virtual void showSettings (QWidget *parent=nullptr)
 
virtual void populateWebViewMenu (QMenu *menu, WebView *view, const WebHitTestResult &r)
 
virtual void populateExtensionsMenu (QMenu *menu)
 
virtual bool mouseDoubleClick (Qz::ObjectName type, QObject *obj, QMouseEvent *event)
 
virtual bool mousePress (Qz::ObjectName type, QObject *obj, QMouseEvent *event)
 
virtual bool mouseRelease (Qz::ObjectName type, QObject *obj, QMouseEvent *event)
 
virtual bool mouseMove (Qz::ObjectName type, QObject *obj, QMouseEvent *event)
 
virtual bool wheelEvent (Qz::ObjectName type, QObject *obj, QWheelEvent *event)
 
virtual bool keyPress (Qz::ObjectName type, QObject *obj, QKeyEvent *event)
 
virtual bool keyRelease (Qz::ObjectName type, QObject *obj, QKeyEvent *event)
 
virtual bool acceptNavigationRequest (WebPage *page, const QUrl &url, QWebEnginePage::NavigationType type, bool isMainFrame)
 

Properties

QJSValue init
 
QJSValue unload
 
QJSValue testPlugin
 
QJSValue populateWebViewMenu
 
QQmlComponent * settingsWindow
 
QJSValue mouseDoubleClick
 
QJSValue mousePress
 
QJSValue mouseRelease
 
QJSValue mouseMove
 
QJSValue wheelEvent
 
QJSValue keyPress
 
QJSValue keyRelease
 
QJSValue acceptNavigationRequest
 
QQmlListProperty< QObject > childItems
 

Additional Inherited Members

- Public Types inherited from PluginInterface
enum  InitState { StartupInitState , LateInitState }
 

Detailed Description

Definition at line 29 of file qmlplugininterface.h.

Constructor & Destructor Documentation

◆ QmlPluginInterface()

QmlPluginInterface::QmlPluginInterface ( )
explicit

Definition at line 40 of file qmlplugininterface.cpp.

◆ ~QmlPluginInterface()

QmlPluginInterface::~QmlPluginInterface ( )
override

Definition at line 45 of file qmlplugininterface.cpp.

Member Function Documentation

◆ acceptNavigationRequest()

bool QmlPluginInterface::acceptNavigationRequest ( WebPage page,
const QUrl &  url,
QWebEnginePage::NavigationType  type,
bool  isMainFrame 
)
overridevirtual

Reimplemented from PluginInterface.

Definition at line 226 of file qmlplugininterface.cpp.

◆ init()

void QmlPluginInterface::init ( InitState  state,
const QString &  settingsPath 
)
overridevirtual

Implements PluginInterface.

Definition at line 50 of file qmlplugininterface.cpp.

◆ keyPress()

bool QmlPluginInterface::keyPress ( Qz::ObjectName  type,
QObject *  obj,
QKeyEvent *  event 
)
overridevirtual

Reimplemented from PluginInterface.

Definition at line 196 of file qmlplugininterface.cpp.

◆ keyRelease()

bool QmlPluginInterface::keyRelease ( Qz::ObjectName  type,
QObject *  obj,
QKeyEvent *  event 
)
overridevirtual

Reimplemented from PluginInterface.

Definition at line 211 of file qmlplugininterface.cpp.

◆ mouseDoubleClick()

bool QmlPluginInterface::mouseDoubleClick ( Qz::ObjectName  type,
QObject *  obj,
QMouseEvent *  event 
)
overridevirtual

Reimplemented from PluginInterface.

Definition at line 121 of file qmlplugininterface.cpp.

◆ mouseMove()

bool QmlPluginInterface::mouseMove ( Qz::ObjectName  type,
QObject *  obj,
QMouseEvent *  event 
)
overridevirtual

Reimplemented from PluginInterface.

Definition at line 166 of file qmlplugininterface.cpp.

◆ mousePress()

bool QmlPluginInterface::mousePress ( Qz::ObjectName  type,
QObject *  obj,
QMouseEvent *  event 
)
overridevirtual

Reimplemented from PluginInterface.

Definition at line 136 of file qmlplugininterface.cpp.

◆ mouseRelease()

bool QmlPluginInterface::mouseRelease ( Qz::ObjectName  type,
QObject *  obj,
QMouseEvent *  event 
)
overridevirtual

Reimplemented from PluginInterface.

Definition at line 151 of file qmlplugininterface.cpp.

◆ populateWebViewMenu()

void QmlPluginInterface::populateWebViewMenu ( QMenu *  menu,
WebView webview,
const WebHitTestResult webHitTestResult 
)
overridevirtual

Reimplemented from PluginInterface.

Definition at line 90 of file qmlplugininterface.cpp.

◆ qmlPluginUnloaded

void QmlPluginInterface::qmlPluginUnloaded ( )
signal

◆ setEngine()

void QmlPluginInterface::setEngine ( QQmlEngine *  engine)

Definition at line 270 of file qmlplugininterface.cpp.

◆ setName()

void QmlPluginInterface::setName ( const QString &  name)

Definition at line 275 of file qmlplugininterface.cpp.

◆ showSettings()

void QmlPluginInterface::showSettings ( QWidget *  parent = nullptr)
overridevirtual

Reimplemented from PluginInterface.

Definition at line 107 of file qmlplugininterface.cpp.

◆ testPlugin()

bool QmlPluginInterface::testPlugin ( )
overridevirtual

Implements PluginInterface.

◆ unload()

void QmlPluginInterface::unload ( )
overridevirtual

Implements PluginInterface.

◆ wheelEvent()

bool QmlPluginInterface::wheelEvent ( Qz::ObjectName  type,
QObject *  obj,
QWheelEvent *  event 
)
overridevirtual

Reimplemented from PluginInterface.

Definition at line 181 of file qmlplugininterface.cpp.

Property Documentation

◆ acceptNavigationRequest

QJSValue QmlPluginInterface::acceptNavigationRequest
readwrite

Definition at line 1 of file qmlplugininterface.h.

◆ childItems

QQmlListProperty< QObject > QmlPluginInterface::childItems
read

Definition at line 1 of file qmlplugininterface.h.

◆ init

QJSValue QmlPluginInterface::init
readwrite

Definition at line 1 of file qmlplugininterface.h.

◆ keyPress

QJSValue QmlPluginInterface::keyPress
readwrite

Definition at line 1 of file qmlplugininterface.h.

◆ keyRelease

QJSValue QmlPluginInterface::keyRelease
readwrite

Definition at line 1 of file qmlplugininterface.h.

◆ mouseDoubleClick

QJSValue QmlPluginInterface::mouseDoubleClick
readwrite

Definition at line 1 of file qmlplugininterface.h.

◆ mouseMove

QJSValue QmlPluginInterface::mouseMove
readwrite

Definition at line 1 of file qmlplugininterface.h.

◆ mousePress

QJSValue QmlPluginInterface::mousePress
readwrite

Definition at line 1 of file qmlplugininterface.h.

◆ mouseRelease

QJSValue QmlPluginInterface::mouseRelease
readwrite

Definition at line 1 of file qmlplugininterface.h.

◆ populateWebViewMenu

QJSValue QmlPluginInterface::populateWebViewMenu
readwrite

Definition at line 1 of file qmlplugininterface.h.

◆ settingsWindow

QQmlComponent* QmlPluginInterface::settingsWindow
readwrite

Definition at line 1 of file qmlplugininterface.h.

◆ testPlugin

bool QmlPluginInterface::testPlugin
readwrite

Definition at line 1 of file qmlplugininterface.h.

◆ unload

void QmlPluginInterface::unload
readwrite

Definition at line 1 of file qmlplugininterface.h.

◆ wheelEvent

QJSValue QmlPluginInterface::wheelEvent
readwrite

Definition at line 1 of file qmlplugininterface.h.


The documentation for this class was generated from the following files: