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 class ATTICA_EXPORT Topic
21 {
22 public:
23  typedef QList<Topic> List;
24  class Parser;
25 
26  Topic();
27  Topic(const Topic &other);
28  Topic &operator=(const Topic &other);
29  ~Topic();
30 
31  void setId(const QString &id);
32  QString id() const;
33 
34  void setForumId(const QString &forumId);
35  QString forumId() const;
36 
37  void setUser(const QString &user);
38  QString user() const;
39 
40  void setDate(const QDateTime &date);
41  QDateTime date() const;
42 
43  void setSubject(const QString &subject);
44  QString subject() const;
45 
46  void setContent(const QString &content);
47  QString content() const;
48 
49  void setComments(const int comments);
50  int comments() const;
51 
52  bool isValid() const;
53 
54 private:
55  class Private;
57 };
58 
59 }
60 
61 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 25 2021 23:06:25 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.