Okular

scripter.h
1/*
2 SPDX-FileCopyrightText: 2008 Pino Toscano <pino@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#ifndef OKULAR_SCRIPTER_H
8#define OKULAR_SCRIPTER_H
9
10#include "global.h"
11
12class QString;
13
14namespace Okular
15{
16class Document;
17class DocumentPrivate;
18class Event;
19class ScripterPrivate;
20
21class Scripter
22{
23 friend class Document;
24 friend class DocumentPrivate;
25
26public:
27 ~Scripter();
28
29 Scripter(const Scripter &) = delete;
30 Scripter &operator=(const Scripter &) = delete;
31
32 void execute(ScriptType type, const QString &script);
33
34 void setEvent(Event *event);
35 Event *event() const;
36
37private:
38 friend class ScripterPrivate;
39 ScripterPrivate *d;
40
41 explicit Scripter(DocumentPrivate *doc);
42};
43
44}
45
46#endif
global.h
Definition action.h:17
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 26 2024 11:51:37 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.