kdegrantleeplugin.h 738 Bytes
Newer Older
1
/*
2
 * SPDX-FileCopyrightText: 2015 Daniel Vrátil <dvratil@redhat.com>
3
 *
4
 * SPDX-License-Identifier: LGPL-2.1-or-later
5
6
7
8
9
10
11
12
 *
 */

#ifndef KDEGRANTLEEPLUGIN_H
#define KDEGRANTLEEPLUGIN_H

#include <grantlee/taglibraryinterface.h>

Laurent Montel's avatar
Laurent Montel committed
13
class KDEGrantleePlugin : public QObject, public Grantlee::TagLibraryInterface
14
15
16
17
18
19
{
    Q_OBJECT
    Q_INTERFACES(Grantlee::TagLibraryInterface)
    Q_PLUGIN_METADATA(IID "org.kde.KDEGrantleePlugin")

public:
Laurent Montel's avatar
Laurent Montel committed
20
    explicit KDEGrantleePlugin(QObject *parent = nullptr);
21
    ~KDEGrantleePlugin() override;
22

Laurent Montel's avatar
Laurent Montel committed
23
    QHash<QString, Grantlee::Filter *> filters(const QString &name) override;
24
    QHash<QString, Grantlee::AbstractNodeFactory *> nodeFactories(const QString &name) override;
25
26
27
};

#endif // KDEGRANTLEEPLUGIN_H