KNewStuff
11 #ifndef KNEWSTUFF3_ENTRYINTERNAL_P_H 12 #define KNEWSTUFF3_ENTRYINTERNAL_P_H 15 #include <QDomElement> 25 #include "knewstuffcore_export.h" 31 static const int PreviewWidth = 96;
32 static const int PreviewHeight = 72;
74 struct DownloadLinkInformation {
80 bool isDownloadtypeLink;
87 StatusChangedEvent = 1,
89 DetailsLoadedEvent = 3,
108 bool isValid()
const;
113 void setName(
const QString &name);
128 void setUniqueId(
const QString &
id);
142 void setCategory(
const QString &category);
159 void setHomepage(
const QUrl &page);
165 QUrl homepage()
const;
170 void setAuthor(
const Author &author);
182 void setLicense(
const QString &license);
194 void setSummary(
const QString &summary);
206 void setShortSummary(
const QString &summary);
218 void setChangelog(
const QString &changelog);
224 void setVersion(
const QString &version);
236 void setReleaseDate(
const QDate &releasedate);
243 QDate releaseDate()
const;
248 void setUpdateVersion(
const QString &version);
260 void setUpdateReleaseDate(
const QDate &releasedate);
267 QDate updateReleaseDate()
const;
272 void setPayload(
const QString &url);
285 void setPreviewUrl(
const QString &url, PreviewType type = PreviewSmall1);
292 QString previewUrl(PreviewType type = PreviewSmall1)
const;
297 QImage previewImage(PreviewType type = PreviewSmall1)
const;
298 void setPreviewImage(
const QImage &image, PreviewType type = PreviewSmall1);
317 void setUnInstalledFiles(
const QStringList &files);
331 void setRating(
int rating);
346 void setNumberOfComments(
int comments);
351 int numberOfComments()
const;
358 void setDownloadCount(
int downloads);
366 int downloadCount()
const;
374 int numberFans()
const;
383 void setNumberFans(
int fans);
389 int numberKnowledgebaseEntries()
const;
394 void setNumberKnowledgebaseEntries(
int num);
399 QString knowledgebaseLink()
const;
405 void setKnowledgebaseLink(
const QString &link);
411 int downloadLinkCount()
const;
422 void appendDownloadLinkInformation(
const DownloadLinkInformation &info);
426 void clearDownloadLinkInformation();
439 void setDonationLink(
const QString &link);
461 void setProviderId(
const QString &
id);
466 void setSource(
Source source);
494 KNEWSTUFFCORE_DEPRECATED_VERSION(5, 36,
"Use EntryInternal::setEntryXML(QXmlStreamReader &)")
QString uniqueId() const
Get the object's unique ID.
KNEWSTUFFCORE_EXPORT QString replaceBBCode(const QString &unformattedText)
function to remove bb code formatting that opendesktop sends
Contains the core functionality for handling interaction with NewStuff providers. ...
Source
Source of the entry, A entry's data is coming from either cache, or an online provider this helps the...
KNewStuff author information.
KNewStuff information about changed entries.
Status
Status of the entry.
KCALENDARCORE_EXPORT uint qHash(const KCalendarCore::Period &key)
KNewStuff data entry container.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 18 2021 22:43:49 by
doxygen 1.8.11 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.