1
/***************************************************************************
2
* This file is part of KDE. *
3
* Copyright (C) 2009 Marco Martin <notmart@gmail.com> *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 2 of the License, or *
8
* (at your option) any later version. *
10
* This program is distributed in the hope that it will be useful, *
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13
* GNU General Public License for more details. *
15
* You should have received a copy of the GNU General Public License *
16
* along with this program; if not, write to the *
17
* Free Software Foundation, Inc., *
18
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
19
***************************************************************************/
23
#include "knowledgebase.h"
25
using namespace Attica;
27
KnowledgeBase::KnowledgeBase()
35
void KnowledgeBase::setId(QString id)
40
QString KnowledgeBase::id() const
46
void KnowledgeBase::setContentId(int id)
51
int KnowledgeBase::contentId() const
57
void KnowledgeBase::setUser(const QString &user)
62
QString KnowledgeBase::user() const
68
void KnowledgeBase::setStatus(const QString status)
73
QString KnowledgeBase::status() const
79
void KnowledgeBase::setChanged(const QDateTime &changed)
84
QDateTime KnowledgeBase::changed() const
90
void KnowledgeBase::setName(const QString &name)
95
QString KnowledgeBase::name() const
101
void KnowledgeBase::setDescription(const QString &description)
103
m_description = description;
106
QString KnowledgeBase::description() const
108
return m_description;
112
void KnowledgeBase::setAnswer(const QString &answer)
117
QString KnowledgeBase::answer() const
123
void KnowledgeBase::setComments(int comments)
125
m_comments = comments;
128
int KnowledgeBase::comments() const
134
void KnowledgeBase::setDetailPage(const KUrl &detailPage)
136
m_detailPage = detailPage;
139
KUrl KnowledgeBase::detailPage() const
144
void KnowledgeBase::addExtendedAttribute( const QString &key, const QString &value )
146
m_extendedAttributes.insert( key, value );
149
QString KnowledgeBase::extendedAttribute( const QString &key ) const
151
return m_extendedAttributes.value( key );
154
QMap<QString,QString> KnowledgeBase::extendedAttributes() const
156
return m_extendedAttributes;