11#ifndef KNEWSTUFF3_ENTRY
12#define KNEWSTUFF3_ENTRY
20#include "knewstuffcore_export.h"
28static const int PreviewWidth = 96;
29static const int PreviewHeight = 72;
35KNEWSTUFFCORE_EXPORT
QString replaceBBCode(
const QString &unformattedText);
52 Q_PROPERTY(
QString providerId READ providerId)
53 Q_PROPERTY(
QString uniqueId READ uniqueId)
57 Q_PROPERTY(
QString name READ name)
59 Q_PROPERTY(
QString shortSummary READ shortSummary)
60 Q_PROPERTY(
QString summary READ summary)
62 Q_PROPERTY(
QUrl homepage READ homepage)
63 Q_PROPERTY(
QString donationLink READ donationLink)
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,
147 bool operator==(
const Entry &other)
const;
148 bool operator<(
const Entry &other)
const;
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);
283 void setReleaseDate(
const QDate &releasedate);
290 QDate releaseDate()
const;
295 void setUpdateVersion(
const QString &version);
307 void setUpdateReleaseDate(
const QDate &releasedate);
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;
556 friend class Installation;
557 friend class AtticaProvider;
558 friend class AtticaRequester;
560 friend class TransactionPrivate;
562 KNEWSTUFFCORE_NO_EXPORT
void setEntryRequestedId(
const QString &
id);
570 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 Fri Dec 6 2024 12:13:34 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.