KCalUtils

datetimefilters.h
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#pragma once
9#include <KTextTemplate/Filter>
10#include <QObject>
11class KDateFilter : public KTextTemplate::Filter
12{
13public:
14 KDateFilter();
15 ~KDateFilter() override;
16
17 QVariant doFilter(const QVariant &input, const QVariant &argument = QVariant(), bool autoescape = false) const override;
18 bool isSafe() const override;
19
20private:
21 Q_DISABLE_COPY(KDateFilter)
22};
23class KTimeFilter : public KTextTemplate::Filter
24{
25public:
26 KTimeFilter();
27 ~KTimeFilter() override;
28
29 QVariant doFilter(const QVariant &input, const QVariant &argument = QVariant(), bool autoescape = false) const override;
30 bool isSafe() const override;
31
32private:
33 Q_DISABLE_COPY(KTimeFilter)
34};
35class KDateTimeFilter : public KTextTemplate::Filter
36{
37public:
38 KDateTimeFilter();
39 ~KDateTimeFilter() override;
40
41 QVariant doFilter(const QVariant &input, const QVariant &argument = QVariant(), bool autoescape = false) const override;
42 bool isSafe() const override;
43
44private:
45 Q_DISABLE_COPY(KDateTimeFilter)
46};
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.