GrantleeTheme

grantleethemeengine.h
1 /*
2  SPDX-FileCopyrightText: 2016 Daniel Vr├ítil <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6 
7 #pragma once
8 
9 #include <QSharedPointer>
10 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
11 #include <grantlee/engine.h>
12 #else
13 #include <KTextTemplate/engine.h>
14 #endif
15 
16 #include "grantleetheme_export.h"
17 
18 namespace GrantleeTheme
19 {
20 class GrantleeKi18nLocalizer;
21 class EnginePrivate;
22 /**
23  * @brief The Engine class
24  */
25 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
26 class GRANTLEETHEME_EXPORT Engine : public Grantlee::Engine
27 #else
28 class GRANTLEETHEME_EXPORT Engine : public KTextTemplate::Engine
29 #endif
30 {
31  Q_OBJECT
32 
33 public:
34  explicit Engine(QObject *parent = nullptr);
35  ~Engine() override;
36 
37  Q_REQUIRED_RESULT QSharedPointer<GrantleeKi18nLocalizer> localizer() const;
38 
39 private:
40  std::unique_ptr<EnginePrivate> const d;
41 };
42 }
43 
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Wed Sep 28 2022 04:06:59 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.