KTextAddons

textautogeneratetextcontext.h
1/*
2 SPDX-FileCopyrightText: 2025 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6#pragma once
7#include "textautogeneratetext_export.h"
8#include <QJsonValue>
9#include <QVariant>
10namespace TextAutogenerateText
11{
12/**
13 * @brief The TextAutogenerateTextContext class
14 * @author Laurent Montel <montel@kde.org>
15 */
16class TEXTAUTOGENERATETEXT_EXPORT TextAutogenerateTextContext
17{
18public:
19 TextAutogenerateTextContext();
20 ~TextAutogenerateTextContext();
21
22 [[nodiscard]] QVariant contextData() const;
23 void setContextData(const QVariant &newContextData);
24
25 [[nodiscard]] bool operator==(const TextAutogenerateTextContext &other) const;
26
27 [[nodiscard]] QJsonValue toJson() const;
28
29private:
30 QVariant mContextData;
31};
32}
33TEXTAUTOGENERATETEXT_EXPORT QDebug operator<<(QDebug d, const TextAutogenerateText::TextAutogenerateTextContext &t);
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Apr 25 2025 12:06:13 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.