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{
12class TEXTAUTOGENERATETEXT_EXPORT TextAutogenerateTextContext
13{
14public:
15 TextAutogenerateTextContext();
16 ~TextAutogenerateTextContext();
17
18 [[nodiscard]] QVariant contextData() const;
19 void setContextData(const QVariant &newContextData);
20
21 [[nodiscard]] bool operator==(const TextAutogenerateTextContext &other) const;
22
23 [[nodiscard]] QJsonValue toJson() const;
24
25private:
26 QVariant mContextData;
27};
28}
29TEXTAUTOGENERATETEXT_EXPORT QDebug operator<<(QDebug d, const TextAutogenerateText::TextAutogenerateTextContext &t);
bool operator==(const StyleDelim &l, const StyleDelim &r)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Apr 18 2025 12:00:52 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.