2015-05-27 19:16:19 +02:00
|
|
|
/* ============================================================
|
|
|
|
* QupZilla - WebKit based browser
|
|
|
|
* Copyright (C) 2015 David Rosca <nowrep@gmail.com>
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
* ============================================================ */
|
|
|
|
|
|
|
|
#ifndef SCRIPTS_H
|
|
|
|
#define SCRIPTS_H
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
#include "qzcommon.h"
|
|
|
|
|
2015-08-30 14:44:00 +02:00
|
|
|
class QWebEngineView;
|
|
|
|
|
2015-05-27 19:16:19 +02:00
|
|
|
class QUPZILLA_EXPORT Scripts
|
|
|
|
{
|
|
|
|
public:
|
2015-08-28 19:25:45 +02:00
|
|
|
static QString setupWebChannel();
|
2015-08-31 18:56:52 +02:00
|
|
|
static QString setupFormObserver();
|
|
|
|
|
2015-08-30 15:36:34 +02:00
|
|
|
static QString setCss(const QString &css);
|
|
|
|
static QString sendPostData(const QUrl &url, const QByteArray &data);
|
2015-08-31 18:56:52 +02:00
|
|
|
static QString completeFormData(const QByteArray &data);
|
2015-09-25 17:41:46 +02:00
|
|
|
static QString getOpenSearchLinks();
|
2015-09-25 18:31:05 +02:00
|
|
|
static QString getAllImages();
|
|
|
|
static QString getAllMetaAttributes();
|
2015-05-27 19:16:19 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SCRIPTS_H
|