KNewStuff
entryinternal.cpp
411 QList<KNSCore::EntryInternal::DownloadLinkInformation> KNSCore::EntryInternal::downloadLinkInformationList() const
416 void KNSCore::EntryInternal::appendDownloadLinkInformation(const KNSCore::EntryInternal::DownloadLinkInformation &info)
430 } while(xml->tokenType() == QXmlStreamReader::Comment || (xml->tokenType() == QXmlStreamReader::Characters && xml->text().trimmed().isEmpty()));
469 qCWarning(KNEWSTUFFCORE) << "Parsing Entry from invalid XML. Reader tag name was expected to be \"stuff\", but was found as:" << reader.name();
541 Q_ASSERT_X(reader.tokenType() == QXmlStreamReader::EndElement, Q_FUNC_INFO, QStringLiteral("token name was %1 and the type was %2").arg(reader.name().toString(), reader.tokenString()).toLocal8Bit().data());
746 text.replace(QLatin1String("[li]"), QLatin1String("* ")); // TODO: better replacement for list elements?
QString donationLink() const
A string representing the URL for a website where the user can donate to the author of this entry...
Definition: entryinternal.cpp:338
bool atEnd() const const
void setRating(int rating)
Sets the rating between 0 (worst) and 100 (best).
Definition: entryinternal.cpp:303
int toInt(bool *ok, int base) const const
QStringList tags() const
The set of tags assigned specifically to this content item.
Definition: entryinternal.cpp:148
void setUniqueId(const QString &id)
Set the object's unique ID.
Definition: entryinternal.cpp:133
int numberFans() const
How many people have marked themselves as fans of this entry.
Definition: entryinternal.cpp:328
QString summary() const
Retrieve a (potentially very long) description of the object.
Definition: entryinternal.cpp:198
QString attribute(const QString &name, const QString &defValue) const const
ISODate
void setCategory(const QString &category)
Sets the data category, e.g.
Definition: entryinternal.cpp:163
QString toString() const const
KNEWSTUFFCORE_EXPORT QString replaceBBCode(const QString &unformattedText)
function to remove bb code formatting that opendesktop sends
Definition: entryinternal.cpp:735
int downloadCount() const
Retrieve the download count for the object, which has been determined by its hosting sites and thus m...
Definition: entryinternal.cpp:318
QString shortSummary() const
Retrieve a short description of what the object is all about (should be very short) ...
Definition: entryinternal.cpp:208
Contains the core functionality for handling interaction with NewStuff providers. ...
Definition: atticaprovider.cpp:27
void setUnInstalledFiles(const QStringList &files)
Set the files that have been uninstalled by the uninstall command.
Definition: entryinternal.cpp:396
void setKnowledgebaseLink(const QString &link)
Set the link for the knowledgebase.
Definition: entryinternal.cpp:361
QDate releaseDate() const
Retrieve the date of the object's publication.
Definition: entryinternal.cpp:238
Source
Source of the entry, A entry's data is coming from either cache, or an online provider this helps the...
Definition: entryinternal.h:59
QStringRef value(const QString &namespaceUri, const QString &name) const const
QString & remove(int position, int n)
QImage previewImage(PreviewType type=PreviewSmall1) const
This will not be loaded automatically, instead use Engine to load the actual images.
Definition: entryinternal.cpp:288
QString toString(QUrl::FormattingOptions options) const const
void setShortSummary(const QString &summary)
Sets a short description of what the object is all about (should be very short)
Definition: entryinternal.cpp:213
QStringRef trimmed() const const
QDomNode nextSibling() const const
bool operator==(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
QDomElement toElement() const const
QString tokenString() const const
void setInstalledFiles(const QStringList &files)
Set the files that have been installed by the install command.
Definition: entryinternal.cpp:386
QDate fromString(const QString &string, Qt::DateFormat format)
void setSummary(const QString &summary)
Sets a description (which can potentially be very long)
Definition: entryinternal.cpp:203
QString number(int n, int base)
QString version() const
Retrieve the version string of the object.
Definition: entryinternal.cpp:228
QString text() const const
QUrl homepage() const
A link to a website containing information about this entry.
Definition: entryinternal.cpp:168
QString readElementText(QXmlStreamReader::ReadElementTextBehaviour behaviour)
void setUpdateVersion(const QString &version)
Sets the version number that is available as update.
Definition: entryinternal.cpp:273
QList< DownloadLinkInformation > downloadLinkInformationList() const
A list of downloadable data for this entry.
Definition: entryinternal.cpp:411
void setAttribute(const QString &name, const QString &value)
int toInt(bool *ok, int base) const const
QStringList installedFiles() const
Retrieve the locally installed files.
Definition: entryinternal.cpp:391
int downloadLinkCount() const
The number of available download options for this entry.
Definition: entryinternal.cpp:406
void setLicense(const QString &license)
Sets the license (abbreviation) applicable to the object.
Definition: entryinternal.cpp:193
QString trimmed() const const
QStringList split(const QString &sep, QString::SplitBehavior behavior, Qt::CaseSensitivity cs) const const
void setAuthor(const Author &author)
Sets the author of the object.
Definition: entryinternal.cpp:183
bool setEntryXML(QXmlStreamReader &reader)
set the xml for the entry parses the xml and sets the private members accordingly used to deserialize...
Definition: entryinternal.cpp:466
void setSource(Source source)
The source of this entry can be Cache, Registry or Online -.
Definition: entryinternal.cpp:371
QString category() const
Retrieve the category of the data object.
Definition: entryinternal.cpp:158
void setPreviewUrl(const QString &url, PreviewType type=PreviewSmall1)
Sets the object's preview file, if available.
Definition: entryinternal.cpp:283
void setNumberOfComments(int comments)
Sets the number of comments in the asset.
Definition: entryinternal.cpp:313
QDate updateReleaseDate() const
Retrieve the date of the newer version that is available as update.
Definition: entryinternal.cpp:258
QXmlStreamReader::TokenType readNext()
void setStatus(KNS3::Entry::Status status)
Sets the entry's status.
Definition: entryinternal.cpp:381
QXmlStreamReader::TokenType tokenType() const const
QString previewUrl(PreviewType type=PreviewSmall1) const
Retrieve the file name of an image containing a preview of the object.
Definition: entryinternal.cpp:278
SkipChildElements
bool isNull() const const
QString & replace(int position, int n, QChar after)
TokenType
void setDonationLink(const QString &link)
Set a string representation of the URL for the donation website for this entry.
Definition: entryinternal.cpp:343
void setUpdateReleaseDate(const QDate &releasedate)
Sets the release date that is available as update.
Definition: entryinternal.cpp:263
int numberKnowledgebaseEntries() const
The number of entries in the knowledgebase for this entry.
Definition: entryinternal.cpp:348
QDomNode firstChild() const const
void setTags(const QStringList &tags)
Set the tags for the content item.
Definition: entryinternal.cpp:153
int rating() const
Retrieve the rating for the object, which has been determined by its users and thus might change over...
Definition: entryinternal.cpp:298
int numberOfComments() const
Definition: entryinternal.cpp:308
QStringRef text() const const
bool isEmpty() const const
QStringList uninstalledFiles() const
Retrieve the locally uninstalled files.
Definition: entryinternal.cpp:401
QXmlStreamAttributes attributes() const const
QString updateVersion() const
Retrieve the version string of the object that is available as update.
Definition: entryinternal.cpp:268
void setNumberKnowledgebaseEntries(int num)
Set the number of knowledgebase entries for this entry.
Definition: entryinternal.cpp:352
void setName(const QString &name)
Sets the name for this data object.
Definition: entryinternal.cpp:123
QString tagName() const const
QString knowledgebaseLink() const
The link for the knowledgebase for this entry.
Definition: entryinternal.cpp:357
void setHomepage(const QUrl &page)
Set a link to a website containing information about this entry.
Definition: entryinternal.cpp:173
KNS3::Entry::Status status() const
Retrieves the entry's status.
Definition: entryinternal.cpp:376
void setChangelog(const QString &changelog)
The user written changelog.
Definition: entryinternal.cpp:218
QString providerId() const
The id of the provider this entry belongs to.
Definition: entryinternal.cpp:138
QStringRef name() const const
void clearDownloadLinkInformation()
Remove all download options from this entry.
Definition: entryinternal.cpp:421
void setReleaseDate(const QDate &releasedate)
Sets the release date.
Definition: entryinternal.cpp:243
void appendDownloadLinkInformation(const DownloadLinkInformation &info)
Add a new download option to this entry.
Definition: entryinternal.cpp:416
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
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.