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

KNewStuff

KNS::Feed

KNS::Feed Class Reference

KNewStuff feed. More...

#include <feed.h>

List of all members.


Public Member Functions

void addEntry (Entry *entry)
KTranslatable description () const
Entry::List entries () const
 Feed ()
KUrl feedUrl () const
KTranslatable name () const
void removeEntry (Entry *entry)
void setDescription (const KTranslatable &type)
void setFeedUrl (const KUrl &feedurl)
void setName (const KTranslatable &name)
 ~Feed ()

Detailed Description

KNewStuff feed.

A feed represents a collection of entries for download. One or more feeds are offered by a provider, each of which has a different characteristics. Usually, GHNS providers offer three feeds, for the most popular, highest rated and latest entries. Simple providers might offer no special feeds at all, only one default feed will be available in this case. Entries might appear in different feeds at the same time.

Author:
Josef Spillner (spillner@kde.org)

For internal use only.

Definition at line 45 of file feed.h.


Constructor & Destructor Documentation

Feed::Feed (  ) 

Constructor.

Definition at line 32 of file feed.cpp.

Feed::~Feed (  ) 

Destructor.

Definition at line 37 of file feed.cpp.


Member Function Documentation

void Feed::addEntry ( Entry *  entry  ) 

Adds an association to an entry.

Ownership of the entry will remain with the caller.

Parameters:
entry Entry to link to this feed

Definition at line 72 of file feed.cpp.

KTranslatable Feed::description (  )  const

Retrieve the description of the feed.

Returns:
feed description

Definition at line 57 of file feed.cpp.

Entry::List Feed::entries (  )  const

Retrieves the list of associated entries.

If the feed loading hasn't completed yet, this method may return the empty list.

Returns:
List of entries associated with this feed

Definition at line 84 of file feed.cpp.

KUrl Feed::feedUrl (  )  const

Retrieve the URL of the feed.

Returns:
URL of this feed

Definition at line 67 of file feed.cpp.

KTranslatable Feed::name (  )  const

Retrieve the name of the feed.

Returns:
feed name (potentially translated)

Definition at line 47 of file feed.cpp.

void Feed::removeEntry ( Entry *  entry  ) 

Removes an association to an entry.

Parameters:
entry Entry to remove from this feed

Definition at line 78 of file feed.cpp.

void Feed::setDescription ( const KTranslatable &  type  ) 

Sets the feed description.

Definition at line 52 of file feed.cpp.

void Feed::setFeedUrl ( const KUrl &  feedurl  ) 

Sets the URL for this feed.

Definition at line 62 of file feed.cpp.

void Feed::setName ( const KTranslatable &  name  ) 

Sets the name for this feed.

Definition at line 42 of file feed.cpp.


The documentation for this class was generated from the following files:
  • feed.h
  • feed.cpp

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