KCalUtils

kcalendargrantleeplugin.cpp
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#include "kcalendargrantleeplugin.h"
9#include "datetimefilters.h"
10#include "icon.h"
11
12KCalendarGrantleePlugin::KCalendarGrantleePlugin(QObject *parent)
13 : QObject(parent)
14 , KTextTemplate::TagLibraryInterface()
15{
16}
17
18KCalendarGrantleePlugin::~KCalendarGrantleePlugin()
19{
20}
21QHash<QString, KTextTemplate::AbstractNodeFactory *> KCalendarGrantleePlugin::nodeFactories(const QString &name)
22{
23 Q_UNUSED(name)
25 nodeFactories[QStringLiteral("icon")] = new IconTag();
26
27 return nodeFactories;
28}
29QHash<QString, KTextTemplate::Filter *> KCalendarGrantleePlugin::filters(const QString &name)
30{
31 Q_UNUSED(name)
33 filters[QStringLiteral("kdate")] = new KDateFilter();
34 filters[QStringLiteral("ktime")] = new KTimeFilter();
35 filters[QStringLiteral("kdatetime")] = new KDateTimeFilter();
36
37 return filters;
38}
39
40#include "moc_kcalendargrantleeplugin.cpp"
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:09:16 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.