Attica

topic.h
1 /*
2  This file is part of KDE.
3 
4  SPDX-FileCopyrightText: 2011 Laszlo Papp <[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_TOPIC_H
10 #define ATTICA_TOPIC_H
11 
12 #include "attica_export.h"
13 
14 #include <QDateTime>
15 #include <QSharedDataPointer>
16 
17 namespace Attica
18 {
19 
20 /**
21  * @class Topic topic.h <Attica/Topic>
22  *
23  * Represents a topic.
24  */
25 class ATTICA_EXPORT Topic
26 {
27 public:
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 
59 private:
60  class Private;
62 };
63 
64 }
65 
66 #endif
The Attica namespace,.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Dec 3 2023 04:08:16 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.