Okular

scripter.h
1 /*
2  SPDX-FileCopyrightText: 2008 Pino Toscano <[email protected]>
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 
12 class QString;
13 
14 namespace Okular
15 {
16 class Document;
17 class DocumentPrivate;
18 class Event;
19 class ScripterPrivate;
20 
21 class Scripter
22 {
23  friend class Document;
24  friend class DocumentPrivate;
25 
26 public:
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 
37 private:
38  friend class ScripterPrivate;
39  ScripterPrivate *d;
40 
41  explicit Scripter(DocumentPrivate *doc);
42 };
43 
44 }
45 
46 #endif
The documentation to the global Okular namespace.
Definition: action.h:16
ScriptType
Describes the possible script types.
Definition: global.h:74
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Mar 23 2023 04:04:24 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.