9 #include "knowledgebaseentry.h" 14 class KnowledgeBaseEntry::Private :
public QSharedData 37 KnowledgeBaseEntry::KnowledgeBaseEntry()
42 KnowledgeBaseEntry::KnowledgeBaseEntry(
const KnowledgeBaseEntry &other)
47 KnowledgeBaseEntry &KnowledgeBaseEntry::operator=(
const Attica::KnowledgeBaseEntry &other)
53 KnowledgeBaseEntry::~KnowledgeBaseEntry()
57 void KnowledgeBaseEntry::setId(
QString id)
59 d->m_id = std::move(
id);
62 QString KnowledgeBaseEntry::id()
const 67 void KnowledgeBaseEntry::setContentId(
int id)
72 int KnowledgeBaseEntry::contentId()
const 74 return d->m_contentId;
77 void KnowledgeBaseEntry::setUser(
const QString &user)
82 QString KnowledgeBaseEntry::user()
const 87 void KnowledgeBaseEntry::setStatus(
const QString &status)
92 QString KnowledgeBaseEntry::status()
const 97 void KnowledgeBaseEntry::setChanged(
const QDateTime &changed)
99 d->m_changed = changed;
102 QDateTime KnowledgeBaseEntry::changed()
const 107 void KnowledgeBaseEntry::setName(
const QString &name)
112 QString KnowledgeBaseEntry::name()
const 117 void KnowledgeBaseEntry::setDescription(
const QString &description)
119 d->m_description = description;
122 QString KnowledgeBaseEntry::description()
const 124 return d->m_description;
127 void KnowledgeBaseEntry::setAnswer(
const QString &answer)
129 d->m_answer = answer;
132 QString KnowledgeBaseEntry::answer()
const 137 void KnowledgeBaseEntry::setComments(
int comments)
139 d->m_comments = comments;
142 int KnowledgeBaseEntry::comments()
const 144 return d->m_comments;
147 void KnowledgeBaseEntry::setDetailPage(
const QUrl &detailPage)
149 d->m_detailPage = detailPage;
152 QUrl KnowledgeBaseEntry::detailPage()
const 154 return d->m_detailPage;
157 void KnowledgeBaseEntry::addExtendedAttribute(
const QString &key,
const QString &value)
159 d->m_extendedAttributes.insert(key, value);
162 QString KnowledgeBaseEntry::extendedAttribute(
const QString &key)
const 164 return d->m_extendedAttributes.value(key);
169 return d->m_extendedAttributes;
172 bool KnowledgeBaseEntry::isValid()
const 174 return !(d->m_id.isEmpty());