KNS::Entry Class Reference
KNewStuff data entry container. More...
#include <entry.h>
Public Member Functions | |
Entry () | |
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.
Definition at line 34 of file entry.cpp. References parseDomElement(). |
|
Destructor.
|
Member Function Documentation
|
Sets the (unique) name for this data object.
Definition at line 45 of file entry.cpp. Referenced by parseDomElement(), and KNS::UploadDialog::slotOk(). |
|
Retrieve the name of the data object.
Definition at line 50 of file entry.cpp. Referenced by createDomElement(), and fullName(). |
|
Sets the application type, e.g. 'kdesktop/wallpaper'. |
|
Retrieve the type of the data object.
|
|
Sets the full name of the object's author.
Definition at line 67 of file entry.cpp. Referenced by parseDomElement(), and KNS::UploadDialog::slotOk(). |
|
Retrieve the author's name of the object.
Definition at line 72 of file entry.cpp. Referenced by createDomElement(). |
|
Sets the license (abbreviation) applicable to the object.
Definition at line 78 of file entry.cpp. Referenced by parseDomElement(), and KNS::UploadDialog::slotOk(). |
|
Retrieve the license name of the object.
Definition at line 83 of file entry.cpp. Referenced by createDomElement(). |
|
Sets a short description on what the object is all about.
Definition at line 89 of file entry.cpp. References QMap::insert(). Referenced by parseDomElement(), and KNS::UploadDialog::slotOk(). |
|
Retrieve a short description about the object.
Definition at line 96 of file entry.cpp. References QMap::begin(), QMap::isEmpty(), and langs(). Referenced by createDomElement(). |
|
Sets the version number.
Definition at line 111 of file entry.cpp. Referenced by parseDomElement(), and KNS::UploadDialog::slotOk(). |
|
Retrieve the version string of the object.
Definition at line 116 of file entry.cpp. Referenced by createDomElement(), and fullName(). |
|
Sets the release number, which is increased for feature-equal objects with the same version number, but slightly updated contents.
Definition at line 122 of file entry.cpp. Referenced by parseDomElement(), and KNS::UploadDialog::slotOk(). |
|
Retrieve the release number of the object.
Definition at line 127 of file entry.cpp. Referenced by createDomElement(), and fullName(). |
|
Sets the release date.
Definition at line 133 of file entry.cpp. Referenced by parseDomElement(). |
|
Retrieve the date of the object's publication.
Definition at line 138 of file entry.cpp. Referenced by createDomElement(). |
|
Sets the object's file.
Definition at line 144 of file entry.cpp. References QMap::insert(). Referenced by parseDomElement(). |
|
Retrieve the file name of the object.
Definition at line 151 of file entry.cpp. References QMap::begin(), QMap::isEmpty(), and langs(). Referenced by createDomElement(). |
|
Sets the object's preview file, if available. This should be a picture file. Definition at line 167 of file entry.cpp. References QMap::insert(). Referenced by parseDomElement(), and KNS::UploadDialog::slotOk(). |
|
Retrieve the file name of an image containing a preview of the object.
Definition at line 174 of file entry.cpp. References QMap::begin(), QMap::isEmpty(), and langs(). Referenced by createDomElement(). |
|
Sets the rating between 0 (worst) and 10 (best).
Definition at line 190 of file entry.cpp. Referenced by parseDomElement(). |
|
Retrieve the rating for the object, which has been determined by its users and thus might change over time.
Definition at line 195 of file entry.cpp. Referenced by createDomElement(). |
|
Sets the number of downloads.
Definition at line 201 of file entry.cpp. Referenced by parseDomElement(). |
|
Retrieve the download count for the object, which has been determined by its hosting sites and thus might change over time.
Definition at line 206 of file entry.cpp. Referenced by createDomElement(). |
|
Return the full name for the meta information. It is constructed as name-version-release. Definition at line 211 of file entry.cpp. References name(), QString::number(), release(), and version(). |
|
Return the list of languages this object supports.
Definition at line 216 of file entry.cpp. Referenced by createDomElement(), payload(), preview(), and summary(). |
The documentation for this class was generated from the following files: