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

knewstuff

  • knewstuff
entry.h
1 /*
2  This file is part of KOrganizer.
3  Copyright (c) 2002 Cornelius Schumacher <schumacher@kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 #ifndef KNEWSTUFF_ENTRY_H
21 #define KNEWSTUFF_ENTRY_H
22 
23 #include <tqdatetime.h>
24 #include <tqdom.h>
25 #include <tqmap.h>
26 #include <tqstring.h>
27 #include <tqstringlist.h>
28 
29 #include <kurl.h>
30 
31 namespace KNS {
32 
44 class KDE_EXPORT Entry
45 {
46  public:
47  Entry();
51  Entry( const TQDomElement & );
52 
56  ~Entry();
57 
61  void setName( const TQString & );
62 
66  void setName( const TQString &, const TQString & );
67 
73  TQString name() const;
74 
80  TQString name( const TQString &lang ) const;
81 
85  void setType( const TQString & );
86 
92  TQString type() const;
93 
97  void setAuthor( const TQString & );
98 
104  TQString author() const;
105 
109  void setAuthorEmail( const TQString & );
110 
116  TQString authorEmail() const;
117 
121  void setLicence( const TQString & );
122 
128  TQString license() const;
129 
133  void setSummary( const TQString &, const TQString &lang = TQString::null );
134 
141  TQString summary( const TQString &lang = TQString::null ) const;
142 
146  void setVersion( const TQString & );
147 
153  TQString version() const;
154 
159  void setRelease( int );
160 
166  int release() const;
167 
171  void setReleaseDate( const TQDate & );
172 
178  TQDate releaseDate() const;
179 
183  void setPayload( const KURL &, const TQString &lang = TQString::null );
184 
191  KURL payload( const TQString &lang = TQString::null ) const;
192 
197  void setPreview( const KURL &, const TQString &lang = TQString::null );
198 
205  KURL preview( const TQString &lang = TQString::null ) const;
206 
212  void setRating( int );
213 
220  int rating();
221 
227  void setDownloads( int );
228 
235  int downloads();
236 
241  TQString fullName();
242 
246  TQStringList langs();
247 
251  void parseDomElement( const TQDomElement & );
252 
256  TQDomElement createDomElement( TQDomDocument &, TQDomElement &parent );
257 
258  protected:
259  TQDomElement addElement( TQDomDocument &doc, TQDomElement &parent,
260  const TQString &tag, const TQString &value );
261 
262  private:
263  TQString mName;
264  TQString mType;
265  TQString mAuthor;
266  TQString mLicence;
267  TQMap<TQString,TQString> mSummaryMap;
268  TQString mVersion;
269  int mRelease;
270  TQDate mReleaseDate;
271  TQMap<TQString,KURL> mPayloadMap;
272  TQMap<TQString,KURL> mPreviewMap;
273  int mRating;
274  int mDownloads;
275 
276  TQStringList mLangs;
277 };
278 
279 }
280 
281 #endif
KNS::Entry
KNewStuff data entry container.
Definition: entry.h:44
KNS
Handles security releated issues, like signing, verifying.
Definition: downloaddialog.h:36

knewstuff

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

knewstuff

Skip menu "knewstuff"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for knewstuff by doxygen 1.8.11
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |