KNS::Entry Class Reference
KNewStuff data entry container. More...
#include <entry.h>
Public Member Functions | |
Entry (const QDomElement &) | |
~Entry () | |
void | setName (const QString &) |
QString | name () const |
void | setType (const QString &) |
QString | type () const |
void | setAuthor (const QString &) |
QString | author () const |
void | setLicence (const QString &) |
QString | license () const |
void | setSummary (const QString &, const QString &lang=QString::null) |
QString | summary (const QString &lang=QString::null) const |
void | setVersion (const QString &) |
QString | version () const |
void | setRelease (int) |
int | release () const |
void | setReleaseDate (const QDate &) |
QDate | releaseDate () const |
void | setPayload (const KURL &, const QString &lang=QString::null) |
KURL | payload (const QString &lang=QString::null) const |
void | setPreview (const KURL &, const QString &lang=QString::null) |
KURL | preview (const QString &lang=QString::null) const |
void | setRating (int) |
int | rating () |
void | setDownloads (int) |
int | downloads () |
QString | fullName () |
QStringList | langs () |
void | parseDomElement (const QDomElement &) |
QDomElement | createDomElement (QDomDocument &, QDomElement &parent) |
Protected Member Functions | |
QDomElement | addElement (QDomDocument &doc, QDomElement &parent, const QString &tag, const QString &value) |
Detailed Description
KNewStuff data entry container.This class provides accessor methods to the data objects as used by KNewStuff. It should probably not be used directly by the application.
- Author:
- Cornelius Schumacher (schumacher@kde.org)
- Maintainer:
- Josef Spillner (spillner@kde.org)
Definition at line 44 of file entry.h.
Constructor & Destructor Documentation
|
Constructor. |
|
Destructor. |
Member Function Documentation
|
Sets the (unique) name for this data object. |
|
Retrieve the name of the data object.
Referenced by KNS::DownloadDialog::addEntry(), and fullName(). |
|
Sets the application type, e.g. 'kdesktop/wallpaper'. Definition at line 55 of file entry.cpp. |
|
Retrieve the type of the data object.
|
|
Sets the full name of the object's author. |
|
Retrieve the author's name of the object.
|
|
Sets the license (abbreviation) applicable to the object. |
|
Retrieve the license name of the object.
|
|
Sets a short description on what the object is all about. |
|
Retrieve a short description about the object.
References langs(). |
|
Sets the version number. |
|
Retrieve the version string of the object.
Referenced by KNS::DownloadDialog::addEntry(), and fullName(). |
|
Sets the release number, which is increased for feature-equal objects with the same version number, but slightly updated contents. |
|
Retrieve the release number of the object.
Referenced by fullName(). |
|
Sets the release date. |
|
Retrieve the date of the object's publication.
Referenced by KNS::DownloadDialog::addEntry(). |
|
Sets the object's file. Definition at line 143 of file entry.cpp. Referenced by KNS::Engine::upload(). |
|
Retrieve the file name of the object.
References langs(), and payload(). Referenced by KNS::Engine::download(), and payload(). |
|
Sets the object's preview file, if available. This should be a picture file. Definition at line 166 of file entry.cpp. |
|
Retrieve the file name of an image containing a preview of the object.
References langs(), and preview(). Referenced by preview(). |
|
Sets the rating between 0 (worst) and 10 (best). |
|
Retrieve the rating for the object, which has been determined by its users and thus might change over time.
Referenced by KNS::DownloadDialog::addEntry(). |
|
Sets the number of downloads. |
|
Retrieve the download count for the object, which has been determined by its hosting sites and thus might change over time.
Referenced by KNS::DownloadDialog::addEntry(). |
|
Return the full name for the meta information. It is constructed as name-version-release. Definition at line 210 of file entry.cpp. References name(), release(), and version(). Referenced by KNewStuffGeneric::downloadDestination(), and KNS::Engine::upload(). |
|
Return the list of languages this object supports. Definition at line 215 of file entry.cpp. Referenced by payload(), preview(), summary(), and KNS::Engine::upload(). |
The documentation for this class was generated from the following files: