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

KNewStuff

  • KNS
  • Feed
Public Member Functions | List of all members
KNS::Feed Class Reference

#include <feed.h>

Public Member Functions

 Feed ()
 
 ~Feed ()
 
void addEntry (Entry *entry)
 
KTranslatable description () const
 
Entry::List entries () const
 
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)
 

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 (spill.nosp@m.ner@.nosp@m.kde.o.nosp@m.rg)

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
entryEntry 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
entryEntry 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
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:44 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KNewStuff

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal