KNewStuff
entry.cpp
36 QString mRequestedUniqueId; // We need to map the entry to the request in the ResultsStream, but invalid entries would have an empty ID
413void KNSCore::Entry::appendDownloadLinkInformation(const KNSCore::Entry::DownloadLinkInformation &info)
427 } while (xml->tokenType() == QXmlStreamReader::Comment || (xml->tokenType() == QXmlStreamReader::Characters && xml->text().trimmed().isEmpty()));
467 qCWarning(KNEWSTUFFCORE) << "Parsing Entry from invalid XML. Reader tag name was expected to be \"stuff\", but was found as:" << reader.name();
545 QStringLiteral("token name was %1 and the type was %2").arg(reader.name().toString(), reader.tokenString()).toLocal8Bit().data());
714 (void)addElement(doc, el, QStringLiteral("releasedate"), d->mReleaseDate.toString(Qt::ISODate));
756 text.replace(QLatin1String("[li]"), QLatin1String("* ")); // TODO: better replacement for list elements?
770 debug.nospace() << "KNSCore::Entry(uniqueId: " << entry.uniqueId() << ", name:" << entry.name() << ", status: " << metaEnum.valueToKey(entry.status())
771 << ", " << (deleted ? "uninstalled" : "installed") << "Files: " // When the entry is installed, it can not have uninstalledFiles
void setInstalledFiles(const QStringList &files)
Set the files that have been installed by the install command.
Definition entry.cpp:388
void setLicense(const QString &license)
Sets the license (abbreviation) applicable to the object.
Definition entry.cpp:185
bool setEntryXML(QXmlStreamReader &reader)
set the xml for the entry parses the xml and sets the private members accordingly used to deserialize...
Definition entry.cpp:464
QList< DownloadLinkInformation > downloadLinkInformationList() const
A list of downloadable data for this entry.
Definition entry.cpp:408
void setHomepage(const QUrl &page)
Set a link to a website containing information about this entry.
Definition entry.cpp:165
QString updateVersion() const
Retrieve the version string of the object that is available as update.
Definition entry.cpp:260
QString knowledgebaseLink() const
The link for the knowledgebase for this entry.
Definition entry.cpp:349
QImage previewImage(PreviewType type=PreviewSmall1) const
This will not be loaded automatically, instead use Engine to load the actual images.
Definition entry.cpp:280
EntryType
Represents whether the current entry is an actual catalog entry, or an entry that represents a set of...
Definition entry.h:133
@ CatalogEntry
These are the main entries that KNewStuff can get the details about and download links for.
Definition entry.h:134
void setSummary(const QString &summary)
Sets a description (which can potentially be very long)
Definition entry.cpp:195
void setShortSummary(const QString &summary)
Sets a short description of what the object is all about (should be very short)
Definition entry.cpp:205
void setUpdateVersion(const QString &version)
Sets the version number that is available as update.
Definition entry.cpp:265
QDate updateReleaseDate() const
Retrieve the date of the newer version that is available as update.
Definition entry.cpp:250
QString previewUrl(PreviewType type=PreviewSmall1) const
Retrieve the file name of an image containing a preview of the object.
Definition entry.cpp:270
int downloadLinkCount() const
The number of available download options for this entry.
Definition entry.cpp:403
void setEntryType(EntryType type)
The entry type is either catalog entry, or group entry.
Definition entry.cpp:363
void setUpdateReleaseDate(const QDate &releasedate)
Sets the release date that is available as update.
Definition entry.cpp:255
void setSource(Source source)
The source of this entry can be Cache, Registry or Online -.
Definition entry.cpp:373
int numberKnowledgebaseEntries() const
The number of entries in the knowledgebase for this entry.
Definition entry.cpp:340
QStringList tags() const
The set of tags assigned specifically to this content item.
Definition entry.cpp:140
void appendDownloadLinkInformation(const DownloadLinkInformation &info)
Add a new download option to this entry.
Definition entry.cpp:413
void setNumberOfComments(int comments)
Sets the number of comments in the asset.
Definition entry.cpp:305
void setNumberKnowledgebaseEntries(int num)
Set the number of knowledgebase entries for this entry.
Definition entry.cpp:344
void clearDownloadLinkInformation()
Remove all download options from this entry.
Definition entry.cpp:418
void setKnowledgebaseLink(const QString &link)
Set the link for the knowledgebase.
Definition entry.cpp:353
Source
Source of the entry, A entry's data is coming from either cache, or an online provider this helps the...
Definition entry.h:94
void setPreviewUrl(const QString &url, PreviewType type=PreviewSmall1)
Sets the object's preview file, if available.
Definition entry.cpp:275
int numberFans() const
How many people have marked themselves as fans of this entry.
Definition entry.cpp:320
void setDonationLink(const QString &link)
Set a string representation of the URL for the donation website for this entry.
Definition entry.cpp:335
Q_SCRIPTABLE CaptureState status()
QString name(StandardShortcut id)
QDate currentDate()
QDate fromString(QStringView string, QStringView format, QCalendar cal)
QDebug & nospace()
QDomElement createElement(const QString &tagName)
QString attribute(const QString &name, const QString &defValue) const const
void setAttribute(const QString &name, const QString &value)
QString tagName() const const
QString text() const const
bool isNull() const const
QDomNode nextSibling() const const
QDomElement toElement() const const
QString & append(QChar ch)
QString number(double n, char format, int precision)
QStringList split(QChar sep, Qt::SplitBehavior behavior, Qt::CaseSensitivity cs) const const
int toInt(bool *ok, int base) const const
QString trimmed() const const
QString toString() const const
ISODate
QStringView value(QAnyStringView namespaceUri, QAnyStringView name) const const
SkipChildElements
TokenType
bool atEnd() const const
QXmlStreamAttributes attributes() const const
QStringView name() const const
QString readElementText(ReadElementTextBehaviour behaviour)
QString tokenString() const const
TokenType tokenType() const const
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
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.