Attica

activity.h
1 /*
2  This file is part of KDE.
3 
4  SPDX-FileCopyrightText: 2008 Cornelius Schumacher <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8 #ifndef ATTICA_ACTIVITY_H
9 #define ATTICA_ACTIVITY_H
10 
11 #include <QList>
12 #include <QSharedDataPointer>
13 #include <QUrl>
14 
15 #include "attica_export.h"
16 #include "person.h"
17 
18 class QDateTime;
19 
20 namespace Attica
21 {
22 
26 class ATTICA_EXPORT Activity
27 {
28 public:
29  typedef QList<Activity> List;
30  class Parser;
31 
35  Activity();
36 
41  Activity(const Activity &other);
42 
48  Activity &operator=(const Activity &other);
49 
53  ~Activity();
54 
60  void setId(const QString &id);
61 
67  QString id() const;
68 
73  void setAssociatedPerson(const Person &associatedPerson);
74 
79  Person associatedPerson() const;
80 
85  void setTimestamp(const QDateTime &timestamp);
86 
91  QDateTime timestamp() const;
92 
97  void setMessage(const QString &message);
98 
103  QString message() const;
104 
109  void setLink(const QUrl &link);
110 
115  QUrl link() const;
116 
121  bool isValid() const;
122 
123 private:
124  class Private;
126 };
127 
128 }
129 
130 #endif
Represents a single news item (also known as activity)
Definition: activity.h:26
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 13 2020 23:01:14 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.