2
This file is part of KDE.
4
Copyright (C) 2009 Marco Martin <notmart@gmail.com>
6
This library is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Lesser General Public
8
License as published by the Free Software Foundation; either
9
version 2.1 of the License, or (at your option) version 3, or any
10
later version accepted by the membership of KDE e.V. (or its
11
successor approved by the membership of KDE e.V.), which shall
12
act as a proxy defined in Section 6 of version 3 of the license.
14
This library is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
Lesser General Public License for more details.
19
You should have received a copy of the GNU Lesser General Public
20
License along with this library. If not, see <http://www.gnu.org/licenses/>.
23
#ifndef ATTICA_KNOWLEDGEBASEENTRY_H
24
#define ATTICA_KNOWLEDGEBASEENTRY_H
26
#include "atticaclient_export.h"
28
#include <QtCore/QDateTime>
29
#include <QtCore/QSharedDataPointer>
31
#include <QtCore/QUrl>
36
class ATTICA_EXPORT KnowledgeBaseEntry
39
typedef QList<KnowledgeBaseEntry> List;
43
KnowledgeBaseEntry(const KnowledgeBaseEntry &other);
44
KnowledgeBaseEntry &operator=(const KnowledgeBaseEntry &other);
45
~KnowledgeBaseEntry();
47
void setId(QString id);
50
void setContentId(int id);
51
int contentId() const;
53
void setUser(const QString &user);
56
void setStatus(const QString &status);
57
QString status() const;
59
void setChanged(const QDateTime &changed);
60
QDateTime changed() const;
62
void setName(const QString &name);
65
void setDescription(const QString &description);
66
QString description() const;
68
void setAnswer(const QString &answer);
69
QString answer() const;
71
void setComments(int comments);
74
void setDetailPage(const QUrl &detailPage);
75
QUrl detailPage() const;
77
void addExtendedAttribute(const QString &key, const QString &value);
78
QString extendedAttribute(const QString &key) const;
80
QMap<QString, QString> extendedAttributes() const;
86
QSharedDataPointer<Private> d;