Messagelib

webenginemanagescript.h
1 /*
2  SPDX-FileCopyrightText: 2016-2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "webengineviewer_export.h"
10 #include <QObject>
11 #include <QWebEngineScript>
12 
13 class QWebEngineProfile;
14 namespace WebEngineViewer
15 {
16 /**
17  * @brief The WebEngineManageScript class
18  * @author Laurent Montel <[email protected]>
19  */
20 class WEBENGINEVIEWER_EXPORT WebEngineManageScript : public QObject
21 {
22  Q_OBJECT
23 public:
24  explicit WebEngineManageScript(QObject *parent = nullptr);
25  ~WebEngineManageScript() override;
26  void addScript(QWebEngineProfile *profile, const QString &source, const QString &scriptName, QWebEngineScript::InjectionPoint injectionPoint);
27 
28  static quint32 scriptWordId()
29  {
30  return QWebEngineScript::UserWorld + 1;
31  }
32 };
33 }
The WebEngineManageScript class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Nov 26 2021 23:16:44 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.