KCalUtils

kcalendargrantleeplugin.h
1 /*
2  * SPDX-FileCopyrightText: 2015 Daniel Vr├ítil <[email protected]>
3  *
4  * SPDX-License-Identifier: LGPL-2.1-or-later
5  *
6  */
7 
8 #pragma once
9 #include <QObject>
10 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
11 #include <grantlee/taglibraryinterface.h>
12 #else
13 #include <KTextTemplate/TagLibraryInterface>
14 #endif
15 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
16 class KCalendarGrantleePlugin : public QObject, public Grantlee::TagLibraryInterface
17 #else
18 class KCalendarGrantleePlugin : public QObject, public KTextTemplate::TagLibraryInterface
19 #endif
20 {
21  Q_OBJECT
22 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
23  Q_INTERFACES(Grantlee::TagLibraryInterface)
24 #else
26 #endif
27  Q_PLUGIN_METADATA(IID "org.kde.KCalendarGrantleePlugin")
28 
29 public:
30  explicit KCalendarGrantleePlugin(QObject *parent = nullptr);
31  ~KCalendarGrantleePlugin() override;
32 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
35 #else
38 #endif
39 };
Q_OBJECTQ_OBJECT
virtual QHash< QString, AbstractNodeFactory * > nodeFactories(const QString &name={})
Q_INTERFACES(...)
virtual QHash< QString, Filter * > filters(const QString &name={})
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Mar 26 2023 04:09:43 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.