KTextAddons

textautogeneratehistoryinfo.h
1/*
2 SPDX-FileCopyrightText: 2025 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "textautogeneratetext_export.h"
10#include <QDebug>
11namespace TextAutogenerateText
12{
13class TEXTAUTOGENERATETEXT_EXPORT TextAutoGenerateHistoryInfo
14{
15public:
16 TextAutoGenerateHistoryInfo();
17 ~TextAutoGenerateHistoryInfo();
18
19 [[nodiscard]] QString subject() const;
20 void setSubject(const QString &newTitle);
21
22 [[nodiscard]] qint64 dateTime() const;
23 void setDateTime(qint64 newDateTime);
24
25 [[nodiscard]] QString model() const;
26 void setModel(const QString &newModel);
27
28 [[nodiscard]] QString engine() const;
29 void setEngine(const QString &newEngine);
30
31 [[nodiscard]] QByteArray referenceUuid() const;
32 void setReferenceUuid(const QByteArray &newReferenceUuid);
33
34private:
35 QByteArray mReferenceUuid;
36 QString mEngine;
37 QString mModel;
38 QString mSubject;
39 qint64 mDateTime = -1;
40};
41}
42Q_DECLARE_TYPEINFO(TextAutogenerateText::TextAutoGenerateHistoryInfo, Q_RELOCATABLE_TYPE);
43TEXTAUTOGENERATETEXT_EXPORT QDebug operator<<(QDebug d, const TextAutogenerateText::TextAutoGenerateHistoryInfo &t);
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.