Attica

forum.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_FORUM_H
10 #define ATTICA_FORUM_H
11 
12 #include "attica_export.h"
13 
14 #include "topic.h"
15 
16 #include <QDateTime>
17 #include <QSharedDataPointer>
18 #include <QUrl>
19 
20 namespace Attica
21 {
22 
23 class ATTICA_EXPORT Forum
24 {
25 public:
26  typedef QList<Forum> List;
27  class Parser;
28 
29  Forum();
30  Forum(const Forum &other);
31  Forum &operator=(const Forum &other);
32  ~Forum();
33 
34  void setId(const QString &id);
35  QString id() const;
36 
37  void setName(const QString &name);
38  QString name() const;
39 
40  void setDescription(const QString &description);
41  QString description() const;
42 
43  void setDate(const QDateTime &date);
44  QDateTime date() const;
45 
46  void setIcon(const QUrl &icon);
47  QUrl icon() const;
48 
49  void setChildCount(const int childCount);
50  int childCount() const;
51 
52  void setTopics(const int topics);
53  int topics() const;
54 
55  void setChildren(QList<Forum> comments);
56  QList<Forum> children() const;
57 
58  bool isValid() const;
59 
60 private:
61  class Private;
63 };
64 
65 }
66 
67 #endif
QString name(const QVariant &location)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jan 23 2021 03:59:44 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.