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

#include <pluginproxy.h>

Inheritance diagram for PluginProxy:
Plugins

Public Types

enum  EventHandlerType {
  MouseDoubleClickHandler , MousePressHandler , MouseReleaseHandler , MouseMoveHandler ,
  KeyPressHandler , KeyReleaseHandler , WheelEventHandler
}
 

Signals

void webPageCreated (WebPage *page)
 
void webPageDeleted (WebPage *page)
 
void mainWindowCreated (BrowserWindow *window)
 
void mainWindowDeleted (BrowserWindow *window)
 
- Signals inherited from Plugins
void pluginUnloaded (PluginInterface *plugin)
 
void availablePluginsChanged ()
 

Public Member Functions

 PluginProxy (QObject *parent=nullptr)
 
void registerAppEventHandler (EventHandlerType type, PluginInterface *obj)
 
void populateWebViewMenu (QMenu *menu, WebView *view, const WebHitTestResult &r)
 
void populateExtensionsMenu (QMenu *menu)
 
bool processMouseDoubleClick (Qz::ObjectName type, QObject *obj, QMouseEvent *event)
 
bool processMousePress (Qz::ObjectName type, QObject *obj, QMouseEvent *event)
 
bool processMouseRelease (Qz::ObjectName type, QObject *obj, QMouseEvent *event)
 
bool processMouseMove (Qz::ObjectName type, QObject *obj, QMouseEvent *event)
 
bool processWheelEvent (Qz::ObjectName type, QObject *obj, QWheelEvent *event)
 
bool processKeyPress (Qz::ObjectName type, QObject *obj, QKeyEvent *event)
 
bool processKeyRelease (Qz::ObjectName type, QObject *obj, QKeyEvent *event)
 
bool acceptNavigationRequest (WebPage *page, const QUrl &url, QWebEnginePage::NavigationType type, bool isMainFrame)
 
void emitWebPageCreated (WebPage *page)
 
void emitWebPageDeleted (WebPage *page)
 
void emitMainWindowCreated (BrowserWindow *window)
 
void emitMainWindowDeleted (BrowserWindow *window)
 
- Public Member Functions inherited from Plugins
 Plugins (QObject *parent=nullptr)
 
QList< PluginavailablePlugins ()
 
bool loadPlugin (Plugin *plugin)
 
void unloadPlugin (Plugin *plugin)
 
void removePlugin (Plugin *plugin)
 
bool addPlugin (const QString &id)
 
void shutdown ()
 
SpeedDialspeedDial ()
 

Additional Inherited Members

- Public Slots inherited from Plugins
void loadSettings ()
 
void loadPlugins ()
 
- Static Public Member Functions inherited from Plugins
static PluginSpec createSpec (const QJsonObject &metaData)
 
static PluginSpec createSpec (const DesktopFile &metaData)
 
- Protected Attributes inherited from Plugins
QList< PluginInterface * > m_loadedPlugins
 

Detailed Description

Definition at line 29 of file pluginproxy.h.

Member Enumeration Documentation

◆ EventHandlerType

Enumerator
MouseDoubleClickHandler 
MousePressHandler 
MouseReleaseHandler 
MouseMoveHandler 
KeyPressHandler 
KeyReleaseHandler 
WheelEventHandler 

Definition at line 33 of file pluginproxy.h.

Constructor & Destructor Documentation

◆ PluginProxy()

PluginProxy::PluginProxy ( QObject *  parent = nullptr)
explicit

Definition at line 25 of file pluginproxy.cpp.

Member Function Documentation

◆ acceptNavigationRequest()

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

Definition at line 206 of file pluginproxy.cpp.

◆ emitMainWindowCreated()

void PluginProxy::emitMainWindowCreated ( BrowserWindow window)

Definition at line 229 of file pluginproxy.cpp.

◆ emitMainWindowDeleted()

void PluginProxy::emitMainWindowDeleted ( BrowserWindow window)

Definition at line 234 of file pluginproxy.cpp.

◆ emitWebPageCreated()

void PluginProxy::emitWebPageCreated ( WebPage page)

Definition at line 219 of file pluginproxy.cpp.

◆ emitWebPageDeleted()

void PluginProxy::emitWebPageDeleted ( WebPage page)

Definition at line 224 of file pluginproxy.cpp.

◆ mainWindowCreated

void PluginProxy::mainWindowCreated ( BrowserWindow window)
signal

◆ mainWindowDeleted

void PluginProxy::mainWindowDeleted ( BrowserWindow window)
signal

◆ populateExtensionsMenu()

void PluginProxy::populateExtensionsMenu ( QMenu *  menu)

Definition at line 104 of file pluginproxy.cpp.

◆ populateWebViewMenu()

void PluginProxy::populateWebViewMenu ( QMenu *  menu,
WebView view,
const WebHitTestResult r 
)

Definition at line 93 of file pluginproxy.cpp.

◆ processKeyPress()

bool PluginProxy::processKeyPress ( Qz::ObjectName  type,
QObject *  obj,
QKeyEvent *  event 
)

Definition at line 180 of file pluginproxy.cpp.

◆ processKeyRelease()

bool PluginProxy::processKeyRelease ( Qz::ObjectName  type,
QObject *  obj,
QKeyEvent *  event 
)

Definition at line 193 of file pluginproxy.cpp.

◆ processMouseDoubleClick()

bool PluginProxy::processMouseDoubleClick ( Qz::ObjectName  type,
QObject *  obj,
QMouseEvent *  event 
)

Definition at line 115 of file pluginproxy.cpp.

◆ processMouseMove()

bool PluginProxy::processMouseMove ( Qz::ObjectName  type,
QObject *  obj,
QMouseEvent *  event 
)

Definition at line 154 of file pluginproxy.cpp.

◆ processMousePress()

bool PluginProxy::processMousePress ( Qz::ObjectName  type,
QObject *  obj,
QMouseEvent *  event 
)

Definition at line 128 of file pluginproxy.cpp.

◆ processMouseRelease()

bool PluginProxy::processMouseRelease ( Qz::ObjectName  type,
QObject *  obj,
QMouseEvent *  event 
)

Definition at line 141 of file pluginproxy.cpp.

◆ processWheelEvent()

bool PluginProxy::processWheelEvent ( Qz::ObjectName  type,
QObject *  obj,
QWheelEvent *  event 
)

Definition at line 167 of file pluginproxy.cpp.

◆ registerAppEventHandler()

void PluginProxy::registerAppEventHandler ( PluginProxy::EventHandlerType  type,
PluginInterface obj 
)

Definition at line 31 of file pluginproxy.cpp.

◆ webPageCreated

void PluginProxy::webPageCreated ( WebPage page)
signal

◆ webPageDeleted

void PluginProxy::webPageDeleted ( WebPage page)
signal

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