webenginescript.h 1.91 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
  Copyright (c) 2016 Montel Laurent <montel@kde.org>

  This program is free software; you can redistribute it and/or modify it
  under the terms of the GNU General Public License, version 2, as
  published by the Free Software Foundation.

  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, write to the Free Software Foundation, Inc.,
  51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
*/
#ifndef WEBENGINESCRIPT_H
#define WEBENGINESCRIPT_H

#include <QString>
21
#include <QPoint>
22
23
24
25
26
27
28
29
#include "messageviewer_export.h"

namespace MessageViewer
{
namespace WebEngineScript
{
MESSAGEVIEWER_EXPORT QString findAllImages();
MESSAGEVIEWER_EXPORT QString findAllScripts();
30
MESSAGEVIEWER_EXPORT QString findAllAnchors();
Laurent Montel's avatar
Laurent Montel committed
31
MESSAGEVIEWER_EXPORT QString findAllAnchorsAndForms();
32
MESSAGEVIEWER_EXPORT QString searchElementPosition(const QString &elementStr);
33
MESSAGEVIEWER_EXPORT QString scrollToPosition(const QPoint &pos);
Laurent Montel's avatar
Laurent Montel committed
34
35
MESSAGEVIEWER_EXPORT QString setElementByIdVisible(const QString &elementStr, bool visibility);
MESSAGEVIEWER_EXPORT QString setStyleToElement(const QString &elementStr, const QString &style);
Laurent Montel's avatar
Laurent Montel committed
36
37
MESSAGEVIEWER_EXPORT QString scrollDown(int pixel);
MESSAGEVIEWER_EXPORT QString scrollUp(int pixel);
38
MESSAGEVIEWER_EXPORT QString scrollPercentage(int percent);
Laurent Montel's avatar
Laurent Montel committed
39
MESSAGEVIEWER_EXPORT QString scrollToRelativePosition(int pos);
40
MESSAGEVIEWER_EXPORT QString removeStyleToElement(const QString &element);
Laurent Montel's avatar
Laurent Montel committed
41
MESSAGEVIEWER_EXPORT QString injectAttachments(const QString &delayedHtml, const QString &element);
Laurent Montel's avatar
Laurent Montel committed
42
MESSAGEVIEWER_EXPORT QString toggleFullAddressList(const QString &field, const QString &html, bool doShow);
43
44
45
}
}
#endif // WEBENGINESCRIPT_H