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;
98 void setAuthor(
const TQString & );
105 TQString author()
const;
110 void setAuthorEmail(
const TQString & );
117 TQString authorEmail()
const;
122 void setLicence(
const TQString & );
129 TQString license()
const;
134 void setSummary(
const TQString &,
const TQString &lang = TQString::null );
142 TQString summary(
const TQString &lang = TQString::null )
const;
147 void setVersion(
const TQString & );
154 TQString version()
const;
160 void setRelease(
int );
172 void setReleaseDate(
const TQDate & );
179 TQDate releaseDate()
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;
213 void setRating(
int );
228 void setDownloads(
int );
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;
TDENewStuff data entry container.
Handles security releated issues, like signing, verifying.