1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 | #ifndef INAPPBROWSER_H
|
24 | #define INAPPBROWSER_H
|
25 |
|
26 | #include <QtCore>
|
27 | #include <cplugin.h>
|
28 |
|
29 | class Inappbrowser: public CPlugin {
|
30 | Q_OBJECT
|
31 | public:
|
32 | Inappbrowser(Cordova *cordova);
|
33 |
|
34 | virtual const QString fullName() override {
|
35 | return Inappbrowser::fullID();
|
36 | }
|
37 |
|
38 | virtual const QString shortName() override {
|
39 | return "InAppBrowser";
|
40 | }
|
41 |
|
42 | static const QString fullID() {
|
43 | return "InAppBrowser";
|
44 | }
|
45 |
|
46 | public slots:
|
47 | void open(int cb, int, const QString &url, const QString &windowName, const QString &windowFeatures);
|
48 | void show(int, int);
|
49 | void hide(int, int);
|
50 | void close(int, int);
|
51 | void injectStyleFile(int cb, int, const QString&, bool);
|
52 | void injectStyleCode(int cb, int, const QString&, bool);
|
53 | void injectScriptFile(int cb, int, const QString&, bool);
|
54 | void injectScriptCode(int cb, int, const QString&, bool);
|
55 |
|
56 | void loadFinished(bool status);
|
57 |
|
58 | private:
|
59 | int _eventCb;
|
60 | };
|
61 |
|
62 | #endif
|