~ubuntu-branches/debian/jessie/attica-kf5/jessie

« back to all changes in this revision

Viewing changes to src/knowledgebaseentry.h

  • Committer: Package Import Robot
  • Author(s): Maximiliano Curia
  • Date: 2014-07-15 10:53:09 UTC
  • Revision ID: package-import@ubuntu.com-20140715105309-nnjxenwcs6h4qznf
Tags: upstream-5.0.0
ImportĀ upstreamĀ versionĀ 5.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    This file is part of KDE.
 
3
 
 
4
    Copyright (C) 2009 Marco Martin <notmart@gmail.com>
 
5
 
 
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.
 
13
 
 
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.
 
18
 
 
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/>.
 
21
*/
 
22
 
 
23
#ifndef ATTICA_KNOWLEDGEBASEENTRY_H
 
24
#define ATTICA_KNOWLEDGEBASEENTRY_H
 
25
 
 
26
#include "atticaclient_export.h"
 
27
 
 
28
#include <QtCore/QDateTime>
 
29
#include <QtCore/QSharedDataPointer>
 
30
 
 
31
#include <QtCore/QUrl>
 
32
 
 
33
namespace Attica
 
34
{
 
35
 
 
36
class ATTICA_EXPORT KnowledgeBaseEntry
 
37
{
 
38
public:
 
39
    typedef QList<KnowledgeBaseEntry> List;
 
40
    class Parser;
 
41
 
 
42
    KnowledgeBaseEntry();
 
43
    KnowledgeBaseEntry(const KnowledgeBaseEntry &other);
 
44
    KnowledgeBaseEntry &operator=(const KnowledgeBaseEntry &other);
 
45
    ~KnowledgeBaseEntry();
 
46
 
 
47
    void setId(QString id);
 
48
    QString id() const;
 
49
 
 
50
    void setContentId(int id);
 
51
    int contentId() const;
 
52
 
 
53
    void setUser(const QString &user);
 
54
    QString user() const;
 
55
 
 
56
    void setStatus(const QString &status);
 
57
    QString status() const;
 
58
 
 
59
    void setChanged(const QDateTime &changed);
 
60
    QDateTime changed() const;
 
61
 
 
62
    void setName(const QString &name);
 
63
    QString name() const;
 
64
 
 
65
    void setDescription(const QString &description);
 
66
    QString description() const;
 
67
 
 
68
    void setAnswer(const QString &answer);
 
69
    QString answer() const;
 
70
 
 
71
    void setComments(int comments);
 
72
    int comments() const;
 
73
 
 
74
    void setDetailPage(const QUrl &detailPage);
 
75
    QUrl detailPage() const;
 
76
 
 
77
    void addExtendedAttribute(const QString &key, const QString &value);
 
78
    QString extendedAttribute(const QString &key) const;
 
79
 
 
80
    QMap<QString, QString> extendedAttributes() const;
 
81
 
 
82
    bool isValid() const;
 
83
 
 
84
private:
 
85
    class Private;
 
86
    QSharedDataPointer<Private> d;
 
87
};
 
88
 
 
89
}
 
90
 
 
91
#endif
 
92