File indexing completed on 2024-11-24 04:41:43
0001 /* 0002 * SPDX-FileCopyrightText: 2015 Daniel Vrátil <dvratil@redhat.com> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.1-or-later 0005 * 0006 */ 0007 0008 #pragma once 0009 #include <KTextTemplate/TagLibraryInterface> 0010 #include <QObject> 0011 class KDEGrantleePlugin : public QObject, public KTextTemplate::TagLibraryInterface 0012 { 0013 Q_OBJECT 0014 Q_INTERFACES(KTextTemplate::TagLibraryInterface) 0015 Q_PLUGIN_METADATA(IID "org.kde.KDEGrantleePlugin") 0016 0017 public: 0018 explicit KDEGrantleePlugin(QObject *parent = nullptr); 0019 ~KDEGrantleePlugin() override; 0020 QHash<QString, KTextTemplate::Filter *> filters(const QString &name) override; 0021 QHash<QString, KTextTemplate::AbstractNodeFactory *> nodeFactories(const QString &name) override; 0022 };