1/*
2 This file is part of KDE.
3
4 SPDX-FileCopyrightText: 2011 Laszlo Papp <djszapi@archlinux.us>
5
6 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7*/
8
9#ifndef ATTICA_TOPIC_H
10#define ATTICA_TOPIC_H
11
12#include "attica_export.h"
13
14#include <QDateTime>
15#include <QSharedDataPointer>
16
17namespace Attica
18{
19
20/**
21 * @class Topic topic.h <Attica/Topic>
22 *
23 * Represents a topic.
24 */
25class ATTICA_EXPORT Topic
26{
27public:
28 typedef QList<Topic> List;
29 class Parser;
30
31 Topic();
32 Topic(const Topic &other);
33 Topic &operator=(const Topic &other);
34 ~Topic();
35
36 void setId(const QString &id);
37 QString id() const;
38
39 void setForumId(const QString &forumId);
40 QString forumId() const;
41
42 void setUser(const QString &user);
43 QString user() const;
44
45 void setDate(const QDateTime &date);
46 QDateTime date() const;
47
48 void setSubject(const QString &subject);
49 QString subject() const;
50
51 void setContent(const QString &content);
52 QString content() const;
53
54 void setComments(const int comments);
55 int comments() const;
56
57 bool isValid() const;
58
59private:
60 class Private;
61 QSharedDataPointer<Private> d;
62};
63
64}
65
66#endif
67

source code of attica/src/topic.h