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

KNewStuff

KNS::Feed

KNS::Feed Class Reference

#include <feed.h>

List of all members.


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)

Definition at line 47 of file feed.h.


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 ()

Constructor & Destructor Documentation

Feed::Feed (  ) 

Constructor.

Definition at line 34 of file feed.cpp.

Feed::~Feed (  ) 

Destructor.

Definition at line 39 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 74 of file feed.cpp.

KTranslatable Feed::description (  )  const

Retrieve the description of the feed.

Returns:
feed description

Definition at line 59 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 86 of file feed.cpp.

KUrl Feed::feedUrl (  )  const

Retrieve the URL of the feed.

Returns:
URL of this feed

Definition at line 69 of file feed.cpp.

KTranslatable Feed::name (  )  const

Retrieve the name of the feed.

Returns:
feed name (potentially translated)

Definition at line 49 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 80 of file feed.cpp.

void Feed::setDescription ( const KTranslatable &  type  ) 

Sets the feed description.

Definition at line 54 of file feed.cpp.

void Feed::setFeedUrl ( const KUrl &  feedurl  ) 

Sets the URL for this feed.

Definition at line 64 of file feed.cpp.

void Feed::setName ( const KTranslatable &  name  ) 

Sets the name for this feed.

Definition at line 44 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
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
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