• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KNewStuff

entry.h

Go to the documentation of this file.
00001 /*
00002     This file is part of KNewStuff2.
00003     Copyright (c) 2002 Cornelius Schumacher <schumacher@kde.org>
00004     Copyright (c) 2003 - 2007 Josef Spillner <spillner@kde.org>
00005 
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Lesser General Public
00008     License as published by the Free Software Foundation; either
00009     version 2.1 of the License, or (at your option) any later version.
00010 
00011     This library is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014     Lesser General Public License for more details.
00015 
00016     You should have received a copy of the GNU Lesser General Public
00017     License along with this library.  If not, see <http://www.gnu.org/licenses/>.
00018 */
00019 #ifndef KNEWSTUFF2_ENTRY_H
00020 #define KNEWSTUFF2_ENTRY_H
00021 
00022 #include <knewstuff2/core/author.h>
00023 #include <knewstuff2/core/ktranslatable.h>
00024 
00025 #include <kurl.h>
00026 
00027 #include <QtCore/QDate>
00028 #include <QtCore/QString>
00029 
00030 namespace KNS
00031 {
00032 
00033 struct EntryPrivate;
00034 
00046 class KNEWSTUFF_EXPORT Entry
00047 {
00048 public:
00049     typedef QList<Entry*> List;
00050 
00054     Entry();
00055 
00056     Entry(const Entry& other);
00057     Entry& operator=(const Entry& other);
00058 
00062     ~Entry();
00063 
00067     void setName(const KTranslatable& name);
00068 
00074     KTranslatable name() const;
00075 
00079     void setCategory(const QString& category);
00080 
00086     QString category() const;
00087 
00091     void setAuthor(const Author& author);
00092 
00098     Author author() const;
00099 
00103     void setLicense(const QString& license);
00104 
00110     QString license() const;
00111 
00115     void setSummary(const KTranslatable& summary);
00116 
00122     KTranslatable summary() const;
00123 
00127     void setVersion(const QString& version);
00128 
00134     QString version() const;
00135 
00140     void setRelease(int release);
00141 
00147     int release() const;
00148 
00152     void setReleaseDate(const QDate& releasedate);
00153 
00159     QDate releaseDate() const;
00160 
00164     void setPayload(const KTranslatable& url);
00165 
00171     KTranslatable payload() const;
00172 
00177     void setPreview(const KTranslatable& url);
00178 
00184     KTranslatable preview() const;
00185 
00190     void setInstalledFiles(const QStringList& files);
00191 
00197     void setUnInstalledFiles(const QStringList& files);
00198 
00199 
00204     QStringList installedFiles() const;
00205 
00211     QStringList uninstalledFiles() const;
00212 
00213 
00214 
00220     void setRating(int rating);
00221 
00228     int rating() const;
00229 
00235     void setDownloads(int downloads);
00236 
00243     int downloads() const;
00244 
00245     // FIXME: below here, everything under consideration
00246 
00253     void setChecksum(const QString& checksum);
00254 
00261     void setSignature(const QString& signature);
00262 
00270     QString checksum() const;
00271 
00279     QString signature() const;
00280 
00290     enum Status {
00291         Invalid,
00292         Downloadable,
00293         Installed,
00294         Updateable,
00295         Deleted
00296     };
00297 
00304     void setStatus(Status status);
00305 
00311     // FIXME KDE5 make it const
00312     Status status();
00313 
00319     enum Source {
00320         Cache,
00321         Online,
00322         Registry
00323     };
00324 
00325     void setSource(Source source);
00326     // FIXME KDE5 make it const
00327     Source source();
00328 
00329     void setIdNumber(int number);
00330     int idNumber() const;
00331 
00332 private:
00333     EntryPrivate * const d;
00334 };
00335 
00336 }
00337 
00338 #endif

KNewStuff

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal