9#include "knowledgebaseentry.h"
36KnowledgeBaseEntry::KnowledgeBaseEntry()
52KnowledgeBaseEntry::~KnowledgeBaseEntry()
56void KnowledgeBaseEntry::setId(
QString id)
58 d->m_id = std::move(
id);
61QString KnowledgeBaseEntry::id()
const
66void KnowledgeBaseEntry::setContentId(
int id)
71int KnowledgeBaseEntry::contentId()
const
73 return d->m_contentId;
76void KnowledgeBaseEntry::setUser(
const QString &user)
81QString KnowledgeBaseEntry::user()
const
91QString KnowledgeBaseEntry::status()
const
96void KnowledgeBaseEntry::setChanged(
const QDateTime &changed)
98 d->m_changed = changed;
101QDateTime KnowledgeBaseEntry::changed()
const
106void KnowledgeBaseEntry::setName(
const QString &name)
111QString KnowledgeBaseEntry::name()
const
116void KnowledgeBaseEntry::setDescription(
const QString &description)
118 d->m_description = description;
121QString KnowledgeBaseEntry::description()
const
123 return d->m_description;
126void KnowledgeBaseEntry::setAnswer(
const QString &answer)
128 d->m_answer = answer;
131QString KnowledgeBaseEntry::answer()
const
136void KnowledgeBaseEntry::setComments(
int comments)
141int KnowledgeBaseEntry::comments()
const
143 return d->m_comments;
146void KnowledgeBaseEntry::setDetailPage(
const QUrl &detailPage)
148 d->m_detailPage = detailPage;
151QUrl KnowledgeBaseEntry::detailPage()
const
153 return d->m_detailPage;
156void KnowledgeBaseEntry::addExtendedAttribute(
const QString &key,
const QString &value)
158 d->m_extendedAttributes.insert(key, value);
161QString KnowledgeBaseEntry::extendedAttribute(
const QString &key)
const
163 return d->m_extendedAttributes.value(key);
168 return d->m_extendedAttributes;
171bool KnowledgeBaseEntry::isValid()
const
173 return !(d->m_id.isEmpty());
Represents a knowledge base entry.
Q_SCRIPTABLE CaptureState status()
QString name(StandardAction id)
KEDUVOCDOCUMENT_EXPORT QStringList comments(const QString &language=QString())