File indexing completed on 2024-05-12 04:33:31

0001 /*
0002     SPDX-FileCopyrightText: 2008 Pino Toscano <pino@kde.org>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef OKULAR_SCRIPT_EXECUTOR_JS_P_H
0008 #define OKULAR_SCRIPT_EXECUTOR_JS_P_H
0009 
0010 class QString;
0011 
0012 namespace Okular
0013 {
0014 class DocumentPrivate;
0015 class ExecutorJSPrivate;
0016 class Event;
0017 
0018 class ExecutorJS
0019 {
0020 public:
0021     explicit ExecutorJS(DocumentPrivate *doc);
0022     ~ExecutorJS();
0023 
0024     ExecutorJS(const ExecutorJS &) = delete;
0025     ExecutorJS &operator=(const ExecutorJS &) = delete;
0026 
0027     void execute(const QString &script, Event *event);
0028 
0029 private:
0030     friend class ExecutorJSPrivate;
0031     ExecutorJSPrivate *d;
0032 };
0033 
0034 }
0035 
0036 #endif