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