KNewStuff

entry.h
1 /*
2  SPDX-FileCopyrightText: 2002 Cornelius Schumacher <[email protected]>
3  SPDX-FileCopyrightText: 2003-2007 Josef Spillner <[email protected]>
4  SPDX-FileCopyrightText: 2009 Jeremy Whiting <[email protected]>
5  SPDX-FileCopyrightText: 2009 Frederik Gladhorn <[email protected]>
6 
7  SPDX-License-Identifier: LGPL-2.1-or-later
8 */
9 
10 #ifndef KNEWSTUFF3_KNEWSTUFFENTRY_H
11 #define KNEWSTUFF3_KNEWSTUFFENTRY_H
12 
13 #include <QStringList>
14 #include <QSharedDataPointer>
15 #include <QLoggingCategory>
16 
17 #include "knewstuff_export.h"
18 namespace KNSCore { class EntryInternal; }
19 namespace KNS3
20 {
21 class EntryPrivate;
32 class KNEWSTUFF_EXPORT Entry
33 {
34 public:
35  typedef QList<Entry> List;
36 
46  enum Status {
47  Invalid,
48  Downloadable,
49  Installed,
50  Updateable,
51  Deleted,
52  Installing,
53  Updating
54  };
55 
56  ~Entry();
57  Entry(const Entry &other);
58  Entry &operator=(const Entry &other);
59 
65  QString name() const;
66 
72  QString category() const;
73 
78  QStringList installedFiles() const;
79 
84  QStringList uninstalledFiles() const;
85 
91  Status status() const;
92 
98  QString license() const;
99 
105  QString summary() const;
106 
114  QString version() const;
115 
122  QString id() const;
123 
129  QString providerId() const;
130 
135  QUrl url() const;
136 
141  QList<QUrl> previewThumbnails() const;
142 
147  QList<QUrl> previewImages() const;
148 
153  quint64 size() const;
154 
159  uint numberOfComments() const;
160 
165  uint rating() const;
166 
171  QString changelog() const;
172 
177  QString shortSummary() const;
178 
188  QString updateVersion() const;
189 
190 private:
191  Entry();
192 
194 
195  friend class KNSCore::EntryInternal;
196  friend class EntryPrivate;
197 };
198 
199 }
200 
201 #endif
Contains the core functionality for handling interaction with NewStuff providers. ...
KNewStuff information about changed entries.
Definition: entry.h:32
Status
Status of the entry.
Definition: entry.h:46
KNewStuff data entry container.
Definition: entryinternal.h:49
Definition: button.cpp:18
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Aug 11 2020 22:43:23 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.