• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdenewstuff
 

tdenewstuff

  • tdenewstuff
entry.h
1 /*
2  This file is part of KOrganizer.
3  Copyright (c) 2002 Cornelius Schumacher <schumacher@kde.org>
4  Copyright (c) 2014 Timothy Pearson <kb9vqf@pearsoncomputing.net>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License as published by the Free Software Foundation; either
9  version 2 of the License, or (at your option) any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Library General Public License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 */
21 #ifndef KNEWSTUFF_ENTRY_H
22 #define KNEWSTUFF_ENTRY_H
23 
24 #include <tqdatetime.h>
25 #include <tqdom.h>
26 #include <tqmap.h>
27 #include <tqstring.h>
28 #include <tqstringlist.h>
29 
30 #include <kurl.h>
31 
32 namespace KNS {
33 
45 class TDE_EXPORT Entry
46 {
47  public:
48  Entry();
52  Entry( const TQDomElement & );
53 
57  ~Entry();
58 
62  void setName( const TQString & );
63 
67  void setName( const TQString &, const TQString & );
68 
74  TQString name() const;
75 
81  TQString name( const TQString &lang ) const;
82 
86  void setType( const TQString & );
87 
93  TQString type() const;
94 
98  void setAuthor( const TQString & );
99 
105  TQString author() const;
106 
110  void setAuthorEmail( const TQString & );
111 
117  TQString authorEmail() const;
118 
122  void setLicence( const TQString & );
123 
129  TQString license() const;
130 
134  void setSummary( const TQString &, const TQString &lang = TQString::null );
135 
142  TQString summary( const TQString &lang = TQString::null ) const;
143 
147  void setVersion( const TQString & );
148 
154  TQString version() const;
155 
160  void setRelease( int );
161 
167  int release() const;
168 
172  void setReleaseDate( const TQDate & );
173 
179  TQDate releaseDate() const;
180 
184  void setPayload( const KURL &, const TQString &lang = TQString::null );
185 
192  KURL payload( const TQString &lang = TQString::null ) const;
193 
198  void setPreview( const KURL &, const TQString &lang = TQString::null );
199 
206  KURL preview( const TQString &lang = TQString::null ) const;
207 
213  void setRating( int );
214 
221  int rating();
222 
228  void setDownloads( int );
229 
236  int downloads();
237 
242  TQString fullName();
243 
247  TQStringList langs();
248 
252  void parseDomElement( const TQDomElement & );
253 
257  TQDomElement createDomElement( TQDomDocument &, TQDomElement &parent );
258 
259  protected:
260  TQDomElement addElement( TQDomDocument &doc, TQDomElement &parent,
261  const TQString &tag, const TQString &value );
262 
263  private:
264  TQString mName;
265  TQString mType;
266  TQString mAuthor;
267  TQString mLicence;
268  TQMap<TQString,TQString> mSummaryMap;
269  TQString mVersion;
270  int mRelease;
271  TQDate mReleaseDate;
272  TQMap<TQString,KURL> mPayloadMap;
273  TQMap<TQString,KURL> mPreviewMap;
274  int mRating;
275  int mDownloads;
276 
277  TQStringList mLangs;
278 };
279 
280 }
281 
282 #endif
KNS::Entry
TDENewStuff data entry container.
Definition: entry.h:46
KNS
Handles security releated issues, like signing, verifying.
Definition: downloaddialog.h:37

tdenewstuff

Skip menu "tdenewstuff"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

tdenewstuff

Skip menu "tdenewstuff"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdenewstuff by doxygen 1.9.1
This website is maintained by Timothy Pearson.