KTextAddons

textautogeneratehistoryinfo.cpp
1/*
2 SPDX-FileCopyrightText: 2025 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#include "textautogeneratehistoryinfo.h"
8
9using namespace TextAutogenerateText;
10TextAutoGenerateHistoryInfo::TextAutoGenerateHistoryInfo() = default;
11
12TextAutoGenerateHistoryInfo::~TextAutoGenerateHistoryInfo() = default;
13
14QDebug operator<<(QDebug d, const TextAutogenerateText::TextAutoGenerateHistoryInfo &t)
15{
16 d.space() << "subject:" << t.subject();
17 d.space() << "datetime:" << t.dateTime();
18 d.space() << "model" << t.model();
19 d.space() << "engine" << t.engine();
20 d.space() << "referenceUuid" << t.referenceUuid();
21 return d;
22}
23
24QString TextAutoGenerateHistoryInfo::subject() const
25{
26 return mSubject;
27}
28
29void TextAutoGenerateHistoryInfo::setSubject(const QString &newSubject)
30{
31 mSubject = newSubject;
32}
33
34qint64 TextAutoGenerateHistoryInfo::dateTime() const
35{
36 return mDateTime;
37}
38
39void TextAutoGenerateHistoryInfo::setDateTime(qint64 newDateTime)
40{
41 mDateTime = newDateTime;
42}
43
44QString TextAutoGenerateHistoryInfo::model() const
45{
46 return mModel;
47}
48
49void TextAutoGenerateHistoryInfo::setModel(const QString &newModel)
50{
51 mModel = newModel;
52}
53
54QString TextAutoGenerateHistoryInfo::engine() const
55{
56 return mEngine;
57}
58
59void TextAutoGenerateHistoryInfo::setEngine(const QString &newEngine)
60{
61 mEngine = newEngine;
62}
63
64QByteArray TextAutoGenerateHistoryInfo::referenceUuid() const
65{
66 return mReferenceUuid;
67}
68
69void TextAutoGenerateHistoryInfo::setReferenceUuid(const QByteArray &newReferenceUuid)
70{
71 mReferenceUuid = newReferenceUuid;
72}
QDebug & space()
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.