/* Copyright (c) 2016 Montel Laurent 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 #include #include "messageviewer_export.h" namespace MessageViewer { namespace WebEngineScript { MESSAGEVIEWER_EXPORT QString findAllImages(); MESSAGEVIEWER_EXPORT QString findAllScripts(); MESSAGEVIEWER_EXPORT QString findAllAnchors(); MESSAGEVIEWER_EXPORT QString findAllAnchorsAndForms(); MESSAGEVIEWER_EXPORT QString searchElementPosition(const QString &elementStr); MESSAGEVIEWER_EXPORT QString scrollToPosition(const QPoint &pos); MESSAGEVIEWER_EXPORT QString setElementByIdVisible(const QString &elementStr, bool visibility); MESSAGEVIEWER_EXPORT QString setStyleToElement(const QString &elementStr, const QString &style); MESSAGEVIEWER_EXPORT QString scrollDown(int pixel); MESSAGEVIEWER_EXPORT QString scrollUp(int pixel); MESSAGEVIEWER_EXPORT QString scrollPercentage(int percent); MESSAGEVIEWER_EXPORT QString scrollToRelativePosition(int pos); MESSAGEVIEWER_EXPORT QString removeStyleToElement(const QString &element); MESSAGEVIEWER_EXPORT QString injectAttachments(const QString &delayedHtml, const QString &element); MESSAGEVIEWER_EXPORT QString toggleFullAddressList(const QString &field, const QString &html, bool doShow); } } #endif // WEBENGINESCRIPT_H