21#ifndef KNEWSTUFF_ENTRY_H
22#define KNEWSTUFF_ENTRY_H
24#include <tqdatetime.h>
28#include <tqstringlist.h>
52 Entry(
const TQDomElement & );
62 void setName(
const TQString & );
67 void setName(
const TQString &,
const TQString & );
74 TQString
name()
const;
81 TQString
name(
const TQString &lang )
const;
86 void setType(
const TQString & );
93 TQString
type()
const;
134 void setSummary(
const TQString &,
const TQString &lang = TQString::null );
142 TQString
summary(
const TQString &lang = TQString::null )
const;
184 void setPayload(
const KURL &,
const TQString &lang = TQString::null );
192 KURL
payload(
const TQString &lang = TQString::null )
const;
198 void setPreview(
const KURL &,
const TQString &lang = TQString::null );
206 KURL
preview(
const TQString &lang = TQString::null )
const;
247 TQStringList
langs();
252 void parseDomElement(
const TQDomElement & );
257 TQDomElement createDomElement( TQDomDocument &, TQDomElement &parent );
260 TQDomElement addElement( TQDomDocument &doc, TQDomElement &parent,
261 const TQString &tag,
const TQString &value );
268 TQMap<TQString,TQString> mSummaryMap;
272 TQMap<TQString,KURL> mPayloadMap;
273 TQMap<TQString,KURL> mPreviewMap;
TQString authorEmail() const
Retrieve the author's email address of the object.
TQString fullName()
Return the full name for the meta information.
int rating()
Retrieve the rating for the object, which has been determined by its users and thus might change over...
int downloads()
Retrieve the download count for the object, which has been determined by its hosting sites and thus m...
TQString name() const
Retrieve the name of the data object.
void setSummary(const TQString &, const TQString &lang=TQString::null)
Sets a short description on what the object is all about.
TQDate releaseDate() const
Retrieve the date of the object's publication.
void setLicence(const TQString &)
Sets the license (abbreviation) applicable to the object.
void setName(const TQString &)
Sets the (unique) name for this data object.
KURL payload(const TQString &lang=TQString::null) const
Retrieve the file name of the object.
TQStringList langs()
Return the list of languages this object supports.
void setDownloads(int)
Sets the number of downloads.
void setAuthorEmail(const TQString &)
Sets the email address of the object's author.
KURL preview(const TQString &lang=TQString::null) const
Retrieve the file name of an image containing a preview of the object.
void setRating(int)
Sets the rating between 0 (worst) and 10 (best).
int release() const
Retrieve the release number of the object.
void setReleaseDate(const TQDate &)
Sets the release date.
TQString type() const
Retrieve the type of the data object.
TQString author() const
Retrieve the author's name of the object.
TQString summary(const TQString &lang=TQString::null) const
Retrieve a short description about the object.
void setRelease(int)
Sets the release number, which is increased for feature-equal objects with the same version number,...
void setType(const TQString &)
Sets the application type, e.g.
TQString version() const
Retrieve the version string of the object.
TQString license() const
Retrieve the license name of the object.
void setPayload(const KURL &, const TQString &lang=TQString::null)
Sets the object's file.
void setVersion(const TQString &)
Sets the version number.
void setPreview(const KURL &, const TQString &lang=TQString::null)
Sets the object's preview file, if available.
void setAuthor(const TQString &)
Sets the full name of the object's author.
Handles security releated issues, like signing, verifying.