cutelyst  3.9.1
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
cutelystgrantlee.h
1 /*
2  * SPDX-FileCopyrightText: (C) 2017-2022 Daniel Nicoletti <dantti12@gmail.com>
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 #ifndef CUTELYSTGRANTLEE_H
6 #define CUTELYSTGRANTLEE_H
7 
8 #ifndef DOXYGEN_SHOULD_SKIP_THIS
9 
10 # include <grantlee/taglibraryinterface.h>
11 
12 # if defined(cutelyst_grantlee_urifor_EXPORTS)
13 # define CUTELYST_GRANTLEE_URIFOR_EXPORT Q_DECL_EXPORT
14 # else
15 # define CUTELYST_GRANTLEE_URIFOR_EXPORT Q_DECL_IMPORT
16 # endif
17 
18 class CutelystGrantlee final
19  : public QObject
20  , public Grantlee::TagLibraryInterface
21 {
22  Q_OBJECT
23  Q_PLUGIN_METADATA(IID "org.grantlee.TagLibraryInterface/1.0")
24  Q_INTERFACES(Grantlee::TagLibraryInterface)
25 public:
26  explicit CutelystGrantlee(QObject *parent = nullptr);
27 
29  nodeFactories(const QString &name = QString()) override;
30 
31  virtual QHash<QString, Grantlee::Filter *> filters(const QString &name = QString()) override;
32 };
33 
34 #endif
35 
36 #endif // CUTELYSTGRANTLEE_H
Q_INTERFACES(...)