Attica

topic.h
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 */
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;
62};
63
64}
65
66#endif
Represents an item post job.
Definition itemjob.h:66
Represents a topic.
Definition topic.h:26
The Attica namespace,.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:48 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.