KNewStuff
11#ifndef KNEWSTUFF3_ENTRY
12#define KNEWSTUFF3_ENTRY
20#include "knewstuffcore_export.h"
28static const int PreviewWidth = 96;
29static const int PreviewHeight = 72;
62 Q_PROPERTY(
QUrl homepage
READ homepage)
64 Q_PROPERTY(
int numberOfComments
READ numberOfComments)
65 Q_PROPERTY(
int rating
READ rating)
66 Q_PROPERTY(
int downloadCount
READ downloadCount)
109 struct DownloadLinkInformation {
115 bool isDownloadtypeLink;
122 StatusChangedEvent = 1,
124 DetailsLoadedEvent = 3,
155 bool isValid()
const;
160 void setName(
const QString &name);
175 void setUniqueId(
const QString &
id);
189 void setCategory(
const QString &category);
206 void setHomepage(
const QUrl &page);
212 QUrl homepage()
const;
217 void setAuthor(
const Author &author);
229 void setLicense(
const QString &license);
241 void setSummary(
const QString &summary);
253 void setShortSummary(
const QString &summary);
265 void setChangelog(
const QString &changelog);
271 void setVersion(
const QString &version);
290 QDate releaseDate()
const;
295 void setUpdateVersion(
const QString &version);
314 QDate updateReleaseDate()
const;
319 void setPayload(
const QString &url);
332 void setPreviewUrl(
const QString &url, PreviewType type = PreviewSmall1);
339 QString previewUrl(PreviewType type = PreviewSmall1)
const;
344 QImage previewImage(PreviewType type = PreviewSmall1)
const;
345 void setPreviewImage(
const QImage &image, PreviewType type = PreviewSmall1);
371 void setRating(
int rating);
386 void setNumberOfComments(
int comments);
391 int numberOfComments()
const;
398 void setDownloadCount(
int downloads);
406 int downloadCount()
const;
414 int numberFans()
const;
423 void setNumberFans(
int fans);
429 int numberKnowledgebaseEntries()
const;
434 void setNumberKnowledgebaseEntries(
int num);
439 QString knowledgebaseLink()
const;
445 void setKnowledgebaseLink(
const QString &link);
451 int downloadLinkCount()
const;
462 void appendDownloadLinkInformation(
const DownloadLinkInformation &info);
466 void clearDownloadLinkInformation();
479 void setDonationLink(
const QString &link);
501 void setProviderId(
const QString &
id);
506 void setSource(
Source source);
550 void setEntryDeleted();
553 friend class StaticXmlProvider;
555 friend class Installation;
556 friend class AtticaProvider;
566 return qHash(entry.uniqueId(), seed);
KNewStuff author information.
KNewStuff data entry container.
EntryType
Represents whether the current entry is an actual catalog entry, or an entry that represents a set of...
Status
Status of the entry.
Source
Source of the entry, A entry's data is coming from either cache, or an online provider this helps the...
Q_SCRIPTABLE CaptureState status()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:21:35 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.