Attica

knowledgebaseentry.h
1 /*
2  This file is part of KDE.
3 
4  SPDX-FileCopyrightText: 2009 Marco Martin <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8 
9 #ifndef ATTICA_KNOWLEDGEBASEENTRY_H
10 #define ATTICA_KNOWLEDGEBASEENTRY_H
11 
12 #include "attica_export.h"
13 
14 #include <QDateTime>
15 #include <QSharedDataPointer>
16 #include <QMap>
17 
18 #include <QUrl>
19 
20 namespace Attica
21 {
22 
23 class ATTICA_EXPORT KnowledgeBaseEntry
24 {
25 public:
26  typedef QList<KnowledgeBaseEntry> List;
27  class Parser;
28 
29  KnowledgeBaseEntry();
30  KnowledgeBaseEntry(const KnowledgeBaseEntry &other);
31  KnowledgeBaseEntry &operator=(const KnowledgeBaseEntry &other);
32  ~KnowledgeBaseEntry();
33 
34  void setId(QString id);
35  QString id() const;
36 
37  void setContentId(int id);
38  int contentId() const;
39 
40  void setUser(const QString &user);
41  QString user() const;
42 
43  void setStatus(const QString &status);
44  QString status() const;
45 
46  void setChanged(const QDateTime &changed);
47  QDateTime changed() const;
48 
49  void setName(const QString &name);
50  QString name() const;
51 
52  void setDescription(const QString &description);
53  QString description() const;
54 
55  void setAnswer(const QString &answer);
56  QString answer() const;
57 
58  void setComments(int comments);
59  int comments() const;
60 
61  void setDetailPage(const QUrl &detailPage);
62  QUrl detailPage() const;
63 
64  void addExtendedAttribute(const QString &key, const QString &value);
65  QString extendedAttribute(const QString &key) const;
66 
67  QMap<QString, QString> extendedAttributes() const;
68 
69  bool isValid() const;
70 
71 private:
72  class Private;
74 };
75 
76 }
77 
78 #endif
79 
QString name(const QVariant &location)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 25 2021 23:06:24 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.