Falkon Develop
Cross-platform Qt-based web browser
PIM_plugin.h
Go to the documentation of this file.
1/* ============================================================
2* Personal Information Manager plugin for Falkon
3* Copyright (C) 2012-2014 David Rosca <nowrep@gmail.com>
4* Copyright (C) 2012-2014 Mladen Pejaković <pejakm@autistici.org>
5*
6* This program is free software: you can redistribute it and/or modify
7* it under the terms of the GNU General Public License as published by
8* the Free Software Foundation, either version 3 of the License, or
9* (at your option) any later version.
10*
11* This program is distributed in the hope that it will be useful,
12* but WITHOUT ANY WARRANTY; without even the implied warranty of
13* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14* GNU General Public License for more details.
15*
16* You should have received a copy of the GNU General Public License
17* along with this program. If not, see <http://www.gnu.org/licenses/>.
18* ============================================================ */
19#ifndef PIM_PLUGIN_H
20#define PIM_PLUGIN_H
21
22#include "plugininterface.h"
23
24class WebPage;
25class BrowserWindow;
26class PIM_Handler;
27
28class PIM_Plugin : public QObject, public PluginInterface
29{
30 Q_OBJECT
31 Q_INTERFACES(PluginInterface)
32 Q_PLUGIN_METADATA(IID "Falkon.Browser.plugin.PIM" FILE "PIM.json")
33
34public:
35 PIM_Plugin();
36
37 void init(InitState state, const QString &settingsPath) override;
38 void unload() override;
39 bool testPlugin() override;
40 void showSettings(QWidget *parent) override;
41
42 void populateWebViewMenu(QMenu *menu, WebView *view, const WebHitTestResult &r) override;
43 bool keyPress(Qz::ObjectName type, QObject *obj, QKeyEvent *event) override;
44
45private:
46 PIM_Handler* m_handler;
47};
48
49#endif // PIM_PLUGIN_H
bool keyPress(Qz::ObjectName type, QObject *obj, QKeyEvent *event) override
Definition: PIM_plugin.cpp:67
void populateWebViewMenu(QMenu *menu, WebView *view, const WebHitTestResult &r) override
Definition: PIM_plugin.cpp:62
void showSettings(QWidget *parent) override
Definition: PIM_plugin.cpp:57
bool testPlugin() override
Definition: PIM_plugin.cpp:51
void unload() override
Definition: PIM_plugin.cpp:45
void init(InitState state, const QString &settingsPath) override
Definition: PIM_plugin.cpp:34
ObjectName
Definition: qzcommon.h:89
State state